bug-ncurses
[Top][All Lists]
Advanced

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

Re: terminfo trouble


From: Lars Brinkhoff
Subject: Re: terminfo trouble
Date: 19 Aug 2001 13:28:34 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Daniel Weaver <address@hidden> writes:
> At 09:00 PM 8/17/01 +0200, Lars Brinkhoff wrote:
> >1. The terminal uses byte values in the range 128 - 153 (decimal) as
> >   control codes.  However, some applications, for example Emacs, seem
> >   to clear the most significant bit.  The version of vi installed on
> >   my machine doesn't do that.
> km identifies a meta key.  I wouldn't expect it to change the input
> character width.  Your problem is more likely with you tty driver
> settings.  Check out the STTY command and see if 8-bit is set.  (cs8)

Yes, cs8 is enabled.

> >3. The row and column addresses are start from zero.  But sending a
> >   null byte with %c doesn't work.  Nothing is sent.
> That should have worked.  Post you terminfo and I will check it out.

temporary|test entry,
        km, npc, clear=CLEAR, cup=\201(%p2%c;%p1%c),
        el=CLR, cuu1=UP,

Here's the output that Emacs generates when starting:

0000000   C   L   E   A   R 001   (   ; 026   )   L   o   a   d   i   n
0000020   g       0   0   d   e   b   i   a   n   -   v   a   r   s   .
0000040   .   . 001   (   ;   ) 001   ( 030   ; 026   )   d   o   n   e
0000060 001   (   ;   ) 001   (  \b   ; 026   )   5 001   (  \n   ; 026

and from vi:

0000000 201   (   ; 026   )   C   L   R 201   (   ; 026   )       "   [
0000020   N   O       F   I   L   E   ]   "           1       l   i   n
0000040   e   ,       1       c   h   a   r       C   L   R 201   (   ;
0000060   )   C   L   R  \n  \r 201   (   ;   )   C   L   R  \n  \r   ~

-- 
Lars Brinkhoff          http://lars.nocrew.org/     Linux, GCC, PDP-10
Brinkhoff Consulting    http://www.brinkhoff.se/    programming



reply via email to

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