[Top][All Lists]

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

Re: [Bug-zile] C-h under GNU screen

From: Micah Cowan
Subject: Re: [Bug-zile] C-h under GNU screen
Date: Thu, 05 Jun 2008 12:54:53 -0700
User-agent: Thunderbird (X11/20080505)

Hash: SHA1

Reuben Thomas wrote:
> On Wed, 4 Jun 2008, Micah Cowan wrote:
>> Hash: SHA1
>> Reuben Thomas wrote:
>>> On Wed, 4 Jun 2008, Micah Cowan wrote:
>>>> Looking at the history of src/terminfo/screeninfo.src, it appears that
>>>> ^H (written as \b here) is from the original screen terminfo file, but
>>>> was removed in version 4.0.0. Probably for problems just like this one.
>>> In that case, I'm happy to treat it as a bug in old versions of screen.
>> Yes, but possibly screen isn't the only terminal with kbs set to ^H?
> So it's an ncurses bug, you're saying :)

Well, not necessarily. Perhaps a bug in the definitions for more than
one kind of terminal... AFAICT, the whole idea of the "kbs" terminal
definition is somewhat broken, so long as there's an "erase" control key
defined by the termios structure. Or, perhaps kbs ought to have
reflected the default setting of that control for new ptys, I dunno.

> Zile's only solution in that case is to rebind the commands.

Even if you do that, though, wouldn't Zile still treat C-h as identical
to backspace (in which case, you'd have to rebind something else to act
as erase)?

I did get around to peeking at Emacs... it looks like it handles
control-sequence mappings itself, and uses straight read() to get the
typed characters (Vim does this also). That certainly allows it to have
fine-grained control over things like this, but obviously isn't the
route you'll want to go (at least, at this time).

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer,
and GNU Wget Project Maintainer.
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


reply via email to

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