more development questions

From: Julien Claassen <julien_at_c-lab.de>
Date: Mon Jul 09 2007 - 21:50:43 CEST
Hi again!
  I now try to get the output of print captured.
Where does print actually print?
Or do the tracklist chanlist functions output their results somewhere, where I 
can get them directly?
  I think I'm too stupid for this. Just so you know what I did:
  I send the command print [tracklist] to midish with sendline. Then I kind of 
copied the wait_ready function:
for (;;) {
  if (fgets(linebuf,LINELENGTH,midish_stdout) == NULL) {
    exit(0);
  }
  sprintf(result,"%s",linebuf); /* trying to capture output in result */
  if (strcmp(linebuf,"+ready\n") == 0) {
    break;
  }
}
  And now I'm lost, for I can't find the output and there's even no output to 
the screen...
  Thanks again!
  Kindest regards
        Julien

--------
Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de
Received on Mon, 9 Jul 2007 21:50:43 +0200 (CEST)

This archive was generated by hypermail 2.1.8 : Wed Nov 08 2017 - 16:32:19 CET