Subject: Re: bin/10116: vi somewhat easily confused by suspension
To: None <email@example.com, firstname.lastname@example.org,>
From: Andrew Brown <email@example.com>
Date: 05/17/2000 09:16:21
>> the arrow keys stop working in vi if i suspend it, run another
>> program (eg, vi or man, probably others), and then resume.
>I think the immediate workaround is not to use curses keypad() function
>(undef HAVE_CURSES_KEYPAD). Nvi version of the function is different
>from that of curses.
>I think the traditional curses had an exported function "tstp()",
>which does suspend and all the troublesome things about it
>in place of the userland programmer.
>What is the correct way to suspend a process with modern curses?
>__stop_signal_handler() does it, but it doesn't seem exported....
please note that it's not *just* being suspended that messes up vi.
if i suspend it and then resume, i'm fine. it's only if the other
thing that i do in between also involves the "alternate" screen, which
for me is the difference between 'printf "\e[?47h"' and 'printf
"\e[?47l"' (in an xterm). i dunno what that's really called. maybe
it's actually a bug in curses...
|-----< "CODE WARRIOR" >-----|
firstname.lastname@example.org * "ah! i see you have the internet
email@example.com (Andrew Brown) that goes *ping*!"
firstname.lastname@example.org * "information is power -- share the wealth."