bug-zile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-zile] Proper fix to #33907 which reads kbs to find out what to


From: Gary V. Vaughan
Subject: Re: [Bug-zile] Proper fix to #33907 which reads kbs to find out what to do with KEY_BACKSPACE.
Date: Sun, 21 Aug 2011 18:08:58 +0700

Hi Reuben,

Nice catch!

However, I can't port it to the lua branch because there is no wrapping
for tigetstr (et. al.) in lcurses.  Worse actually, because even if we
add them, we'll trip over the lack of fdopen when trying to run Lua Zile
on a newer version.

That aside, this opens the door to a full and proper fix for term_ungetkey:
Provided we keep track of the terminfo cap names for the keys we accept,
then we can look up the escape string with tigetstr, and push that back in
to key_buf, so that a subsequent quoted-insert will behave identically
whether invoked interactively, or with a kbd-macro =)O|

If you can figure out how to handle the fdopen removal FIXME in the Lua
branch, I'll make a patch to wrap tiget{bool,num,str} in lcurses, port
your new C Zile patch and then fix term_ungetkey to DTRT in the face of
a non-ascii keypress...

Cheers,
-- 
Gary V. Vaughan (gary AT gnu DOT org)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]