🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #959

getty ignores flags in /etc/gettydef

#959
From: Roger Collins
Date: Wed, 18 Jan 1989 20:38
29 lines
1384 bytes
Why can't a gettydef author have full control of the initial
tty settings on a terminal by munging the gettydef entry? More specifically,
try setting IGNPAR in the initial settings field of a gettydef entry.
Then (after spawning getty) do "stty -a </dev/ttyNN."  You will see
"-ignpar" in the output.  The IGNPAR was ignored.

Here's why.  The following line of source in getty is executed after
the initial settings field have already been read and stored in
gptr->g_iflags (struct termio).

	gptr->g_iflags.c_iflag &= (ICRNL | ISTRIP | IXON | IXANY);

In V.3.2, the line is

	gptr->g_iflags.c_iflag  &= ICRNL;

This says ignore ALL initial settings except for ICRNL ISTRIP IXON and IXANY.
Or, in V.3.2, ignore all except ICRNL.  Why?

Am I missing something here?

Why doesn't it do the pure and simple:  Turn on the flags that
are in the field -- don't turn on the ones that aren't.  I'm
pretty sure that's what is documented.

--
Roger Collins
NCR - E&M Columbia
rogerc@ncrcae.Columbia.NCR.COM
Technical Details
Message-ID: <4082@ncrcae.Columbia.NCR.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncrcae!rogerc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncrcae!rogerc
From: rogerc@ncrcae.Columbia.NCR.COM (Roger Collins)
Newsgroups: comp.bugs.sys5
Subject: getty ignores flags in /etc/gettydef
Message-ID: <4082@ncrcae.Columbia.NCR.COM>
Date: 18 Jan 89 20:38:31 GMT
Reply-To: rogerc@ncrcae.Columbia.NCR.COM (Roger Collins)
Organization: NCR - E & M Columbia
Lines: 29