screen-devel
[Top][All Lists]
Advanced

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

Re: [screen-devel] Regarding bug #34200: Log misses first character


From: Juergen Weigert
Subject: Re: [screen-devel] Regarding bug #34200: Log misses first character
Date: Wed, 21 Sep 2011 19:01:41 +0200

On Sep 19, 11 12:41:05 -0700, hiren panchasara wrote:
> On Fri, Sep 16, 2011 at 3:29 PM, hiren panchasara <
> address@hidden> wrote:
> 
> >
> > > How do I know/set the terminal in packet mode? How can we conclude that
> >> > reporter didn't have terminal in packet mode? (I am just trying to
> >> > learn/understand here).
> >>
> >> window.c:OpenDevice() does that. Should be fully automatic.
> >>
> > My question was more in terms of - who tells OpenDevice() that.
> > Who sets  #ifdef TIOCPKT to true?
> >

Nothing magic there. 
It is brought in through standard system header files:

/usr/include/asm-arm/ioctls.h:#define TIOCPKT           0x5420
/usr/include/asm-generic/ioctls.h:#define TIOCPKT               0x5420
/usr/include/asm-ia64/ioctls.h:#define TIOCPKT          0x5420
/usr/include/asm-parisc/ioctls.h:#define TIOCPKT                0x5420
/usr/include/asm-powerpc/ioctls.h:#define TIOCPKT               0x5420
/usr/include/asm-s390/ioctls.h:#define TIOCPKT          0x5420
/usr/include/asm-sparc/ioctls.h:#define TIOCPKT         _IOW('t', 112, int)

... at least for linux.

> Just to be clearer, I am on  Linux, 2.6.32-26-generic.
> 
> I am still trying to find out how "TIOCPKT" is set when I start a shell
> (start a terminal) on my Linux box.

window.c OpenDevice() on /dev/[pt]ty* always sets TIOCPKT mode, 
if that symbol is defined.
ansi.c DoCSI() DoESC() code reacts differently with or without having
TIOCPKT defined.

Can you verify that both files see the same definition?
Missing include somewhere?

        cheers,
                JW-

-- 
 o \  Juergen Weigert  paint it green!    __/ _=======.=======_
<V> | address@hidden       back to ascii!  __/        _---|____________\/
 \  | 0911 74053-508                __/          (____/            /\
(/) | _____________________________/              _/ \_ vim:set sw=2 wm=8
SUSE LINUX Products GmbH, GF: Jeff Hawn, J.Guild, F.Imendoerffer, HRB 16746 
(AG Nuernberg), Maxfeldstrasse 5, 90409 Nuernberg, Germany

SuSE. Supporting Linux since 1992.



reply via email to

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