screen-devel
[Top][All Lists]
Advanced

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

Re: [screen-devel] Need help reading MarkProcess()


From: Sadrul Habib Chowdhury
Subject: Re: [screen-devel] Need help reading MarkProcess()
Date: Fri, 26 Feb 2010 15:46:54 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

* address@hidden had this to say on [24 Feb 2010, 19:56:57 -0700]:
> 
> 
> On Wed, 24 Feb 2010 03:45:04 -0500 Sadrul Habib Chowdhury
> <address@hidden> writes:
> > * address@hidden had this to say on [22 Feb 2010, 22:19:51 -0700]:
> > > 
> > > 
> > > I see 'ku' in term.c, and I understand that that is the termcap 
> > name for
> > > Cursor Up . I see that KMAPMDEF ties 0220 to that termcap. But I'm 
> > still
> > > not seeing why 0220? Why not 258 or 31337?
> > 
> > I can't say I know for sure, but I think the purpose is to keep the
> > likewise values similar, e.g. ctrl+p is 020, and up arrow is '0220' 
> > (i.e.
> > 020 with the eighth bit set). Similarly, down arrow is '0216' (which 
> > is
> > ctrl+n with the eighth bit set), 'end' is '0205' (ctrl+e with eighth 
> > bit
> > set), 'home' is '0201' (ctrl+a with eighth bit set) etc.
> 
> I appreciate your patience, but there's still something I not getting.
> Let me ask this: In your brand new list_window.c file, there is
> gl_Window_input(). Inside is a switch where one of the cases is:
> 
>    case 0177:  /* Backspace */
> 
> 177 isn't in term.c. So how did you know 0177 corresponds to the
> backspace key?

That value comes from the 'kbs'/'kb' entry in terminfo/termcap. Most
(all?) terminals set it to 0177.

Cheers.
Sadrul





reply via email to

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