: Our curses application on SCO unix needs to system() an editor.
: When I start up vi, it comes up in a weird mode where the lines
: in the text file don't begin at the left margin, but begin where
: the previous one left off. No "backslash R" type stuff.
: When I start up MicroEmacs it works fine.
: However, when I quit the editor the screen is not updated and sometimes
: the char set turns egyptian.
: Do I need to somehow save & restore the curses screen and settings?
: Is there a way to do this with curses?
: Our app is just plan ANSI C compiled with gcc.
: best regards,
: P. Meulmeester
You are in raw mode in curses, you need to be cooked. Do a :
savetty(); /* save current setting */
resetterm(); /* Set tty modes to "out of curses" state */
resetty(); /* Reset tty flags to stored value */
Dan Mercer ClearSystems, Inc
All opinions expressed are my own and do not reflect the opinions of
my employer or my employer's clients, in particular 3M Company.
All advice or software offered or presented is provided As Is with no
warranty either expressed or implied. Follow at your own risk.
Objects in the mirror are closer than they appear.