This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Porting Escape Sequences


Andrey Danilevich wrote:
> Can somebody please help? I am porting unix application on NT4. My code
> uses
> escape sequences to manipulate cursor movements, to set and use
> scrolling area,
> to clean lines etc. printf("\033[ .... doesn't work on NT properly.
> How can I make it working?

You should really use the termcap/terminfo libraries for portability...
you are assuming ANSI escape sequences.  Not all tty devices obey ANSI
sequences.  (Termcap is provided with Cygwin.  Terminfo is part of the
ncurses package.)

How exactly is it not working?  (I can only guess without
compiling/running your code myself.)

--
Jeff Sturm
jsturm@sigma6.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]