Carriage return with ncurses

bridged with qdn.public.qnxrtp.applications
Post Reply
William Morris

Carriage return with ncurses

Post by William Morris » Wed Oct 02, 2002 4:48 pm

Does anyone know how to get ncurses to append a CR
to every newline? I got the impresson from the man page
that the nl() function would set that up, but it doesn't.

To explain, I am using ncurses to set the terminal in raw
mode and allow me to do getch() and ungetch(). Some
functions that get called (including some I can't change)
use printf, and their output gets staircased because they
just print \n not \n\r

Thanks for any suggestions.
Regards
William Morris

Post Reply

Return to “qdn.public.qnxrtp.applications”