[ resending this message - first copy apparently got lost ]

---------- Forwarded message ----------
Date: Tue, 14 Mar 2000 16:59:41 -0600 (CST)
From: Klaus Weide <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: lynx-dev ^g is a menace

On Thu, 2 Mar 2000, Henry Nelson wrote:

> > PS to my longer message today, the introduction of  ^g  seems to occur
> > only when my editor & Most are called as daughters: cp diffs:
> [...]
> > (6)  Most at UNIX prompt  vs  Most from Lynx Print screen
> > 
> > [snipped]

> Really fascinating!  (Wonder if there is any way to use this procedure to
> find out what programs switch me from insert mode to overwrite mode?)

Unfortunately, no.  Whether the terminal (emulator) is in insert mode or
not is a matter between the terminal (emulator) and the application (including
curses or whatever library) - the kernel / tty driver is not involved and
doesn't know about it, so stty cannot show it.

There is no way to inquire the current state, but you could try to modify
(reset) it from another session while lynx or another app is running.
Something like
   tput exit_insert_mode >/dev/ttya0
or
   tput rmir >/dev/ttya0
or
   echo -n -e '\033[4l' >/dev/ttya0  # for VTxxx-like terminals
should work, in place of the "stty -a </dev/ttya0".
That way you may narrow down where it happens.

Is this a problem specific to CJK display?  I have finally started to
actually play around with a Japanese-character environment (using kterm),
so I can see Japanese...  I have noticed something like this somtimes,
where the terminal seems to get stuck in insert mode.

   Klaus

Reply via email to