[lsb-discuss] regarding ncurses

subhranshu patel spatel1482 at yahoo.co.in
Wed Jul 12 00:36:26 PDT 2006


hello,
  In order to test API'S of libncurses library ,I have taken an output dump of the API which contains the various escape sequence. But the testing procedure would be very tedious and time-consuming . 
   
  #include<ncurses.h>
int main(void)
{
        FILE *fp=freopen("file","w",stdout);
        initscr();
        endwin();
}

  After compiling and running the program, here is the contents of the file which contains the escape sequence(for initscr() and endwin() ).
   
  ^[(B^[)0^[[1;40r^[[m^O^[[?7h^[[40;1H^M^[[?1l^[>
   
  Is this the correct strategy for testing libncurses API ? If not ,can anybody suggest some other method.
   
  REGARDS,
  Subranshu Patel
   

 				
---------------------------------
 Find out what India is talking about on  Yahoo! Answers India.
 So, what’s NEW about the NEW Yahoo! Messenger? Find out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux-foundation.org/pipermail/lsb-discuss/attachments/20060712/e2454fe6/attachment.htm 


More information about the lsb-discuss mailing list