*BSD News Article 16857


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!torn!nott!bnrgate!bnr.co.uk!uknet!mcsun!fuug!kiae!bitcom!kiae!relcom!newsserv
From: "Andrew A. Chernov, Black Mage" <ache@astral.msk.su>
Newsgroups: comp.os.386bsd.development
Subject: Need your opinion (TTYDEF 8-bit clean state)
Date: Sat, 05 Jun 93 22:50:30 +0400
Distribution: world
Organization: Ha-olahm Yetzirah
Message-ID: <eLshE4iGSD@astral.msk.su>
Sender: news-service@newcom.kiae.su
Reply-To: ache@astral.msk.su
Lines: 42

It is strong problem with clean 8-bit environment:
many programs (stty [sane mode], getty, etc.) will reset
terminal state to "default" value, but this value is dependent
on your 7-bit or 8-bit code table. For Russians it needs
always be 8-bit clean, but for others it may be different...
This fix provide "default" state always to 8-bit clean,
but I doubt, that it is correct for Non-russians too...
I hope, better solution for both 8-bit & 7-bit default
states is possible, but I don't know how...
If you have any ideas about this, it will be very nice.

*** /sys/sys/ttydefaults.h.bak	Wed Dec 25 00:24:19 1991
--- /sys/sys/ttydefaults.h	Sat Jun  5 16:31:17 1993
***************
*** 42,51 ****
  /*
   * Defaults on "first" open.
   */
! #define	TTYDEF_IFLAG	(BRKINT | ISTRIP | ICRNL | IMAXBEL | IXON | IXANY)
  #define TTYDEF_OFLAG	(OPOST | ONLCR | OXTABS)
  #define TTYDEF_LFLAG	(ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
! #define TTYDEF_CFLAG	(CREAD | CS7 | PARENB | HUPCL)
  #define TTYDEF_SPEED	(B9600)
 
  /*
--- 42,51 ----
  /*
   * Defaults on "first" open.
   */
! #define TTYDEF_IFLAG    (BRKINT | ICRNL | IMAXBEL | IXON | IXANY)
  #define TTYDEF_OFLAG	(OPOST | ONLCR | OXTABS)
  #define TTYDEF_LFLAG	(ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
! #define TTYDEF_CFLAG    (CREAD | CS8 | HUPCL)
  #define TTYDEF_SPEED	(B9600)
 
  /*
-- 
In-This-Life:    Andrew A. Chernov      | "Hay mas dicha, mas contento
Internet:        ache@astral.msk.su     | "Que adorar una hermosura
FIDOnet:         2:5020/23.34           | "Brujuleada entre los lejos
RELCOM Development Team, Moscow, Russia | "De lo imposible?!" (Calderon)