🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.os.misc
Article #5

Re: [386BSD] Help tty 8bit. (In Japanese/Kanji)

#5
From: Ishii Masahiro
Date: Wed, 28 Oct 1992 15:22
79 lines
3335 bytes
  $@@P0f!w5~Bg%^%$%3%s%/%i%V$G$9!#(J

In article <318@teugw.cntr.teu.ac.jp> u89a126@teugw.cntr.teu.ac.jp
(Satoshi Yoshida) writes:
>   $@!!(Jstty $@$J$I$r;H$C$F!"(Jtty $@$r(J8bit$@$K$7$?$$$N$G$9$,!"(J
	:
>   $@CN9g$$$+$i!"%+!<%M%k$N(J /sys/kern/tt_compat.c $@$,!"$*$+$7$$(J
>   $@$i$7$$$H$$$&$3$H$rJ9$$$?$N$G$9$,(J$@!"6qBNE*$K$I$3$r(J
>   $@$I$N$h$&$K$J$*$7$?$i$h$$$N$+!"$*2r$j$NJ}$,!"$*$i$l$^$7$?$i(J
>   $@65$($F$/$@$5$$!#(J

  $@$*$C$7$c$kDL$j(J /sys/kern/tt_compat.c $@$,$^$:$$$G$9!#(J
  386BSD(98)$@$GF|K\8l(J(8bit)$@$rDL$9$?$a$K(Jpatch$@$rEv(J$@$F$^$7$?$,!"(JIBM-PC$@HG$G(J
$@$bLdBj$J$$$O$:$G$9!#(J

  $@$^$?!"(Jgetty(8)$@$b(Jlogin(1)$@$r5/$3$9A0$K(Jkernel$@$N(Jdefault$@$N@_(J$@Dj$KLa$7$F$7(J
$@$^$$$^$9$N$G!"(Jgettytab$@$G(J8bit$@$K$9$k>l9g$O(Jgetty$@$K$b(Jpatch$@$,I,MW$G$9!#(J

  $@:G8e$K%Q%C%A$r$D$1(J$@$^$9!#(J386BSD(98)$@$K$O$9$G$KEv$?$C$F$$$^$9$N$GEv$F$k(J
$@I,MW$O$"$j$^$;$s!#(J

-----------------------------------------------------------------
$@5~ETBg3X(J $@EE;R9)3X@l96(J $@;3ED8&(J M2 ishii@kuee.kyoto-u.ac.jp
$@5~Bg%^%$(J$@%3%s%/%i%V(J              ishii@kmc.kyoto-u.ac.jp  $@@P0f@59((J
---- cut here ---- 8< ---- cut here ---- 8< ---- cut here ---- 8< ----
*** ../../sys.386bsd.ibmpc/kern/tty_compat.c	Wed Dec 25 07:24:09 1991
--- ./tty_compat.c	Fri Sep  4 03:36:39 1992
***************
*** 82,87 ****
--- 82,90 ----
  	caddr_t data;
  {
  
+ #if 1	/* patch by lic */
+     	tp->t_flags = ttcompatgetflags(tp);
+ #endif
  	switch (com) {
  	case TIOCGETP: {
  		register struct sgttyb *sg = (struct sgttyb *)data;
***************
*** 321,328 ****
--- 324,333 ----
  		else
  			iflag &= ~ISTRIP;
  	} else {
+ #if 0 /* patched by KMC for 8 bit through tty */
  		cflag &= ~CSIZE;
  		cflag |= CS7|PARENB;
+ #endif
  		iflag |= ISTRIP;
  	}
  	if ((flags&(EVENP|ODDP)) == EVENP) {
***************
*** 386,393 ****
--- 391,400 ----
  		if ((flags&(PASS8|RAW)) == 0)
  			iflag |= ISTRIP;
  	} else if ((flags&RAW) == 0) {
+ #if 0 /* patched by KMC for 8 bit through tty */
  		cflag &= ~CSIZE;
  		cflag |= CS7|PARENB;
+ #endif
  		oflag |= OPOST;
  	}
  	t->c_iflag = iflag;
*** src/libexec/getty/main.c.org	Fri Sep  4 04:27:13 1992
--- src/libexec/getty/main.c	Fri Sep  4 04:28:28 1992
***************
*** 272,278 ****
--- 272,280 ----
  			 * this is what login was doing anyway.
  			 * soon we rewrite getty completely.
  			 */
+ #if 0 /* remain stty of gettytab to login for pass8 by KMC */
  			set_ttydefaults(0);
+ #endif
  			execle(LO, "login", "-p", name, (char *) 0, env);
  			syslog(LOG_ERR, "%s: %m", LO);
  			exit(1);
Technical Details
Message-ID: <ISHII.92Oct29002243@kuro.kmc.kyoto-u.ac.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!news.hawaii.edu!sh.wide!wnoc-kyo!kuis!kmc-box2!nntp!ishii
References: <318@teugw.cntr.teu.ac.jp>

Show Full Headers
Complete Article Headers
Newsgroups: fj.os.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!news.hawaii.edu!sh.wide!wnoc-kyo!kuis!kmc-box2!nntp!ishii
From: ishii@kmc.kyoto-u.ac.jp (Ishii Masahiro)
Subject: Re: [386BSD] Help tty 8bit. (In Japanese/Kanji)
In-Reply-To: u89a126@teugw.cntr.teu.ac.jp's message of 28 Oct 92 02:53:22 GMT
Message-ID: <ISHII.92Oct29002243@kuro.kmc.kyoto-u.ac.jp>
Sender: news@box2.kmc.kyoto-u.ac.jp (News system Manager #2)
Nntp-Posting-Host: kuro
Organization: Kyoto University Microcomputer Club, Kyoto, Japan
References: <318@teugw.cntr.teu.ac.jp>
Distribution: fj
Date: Wed, 28 Oct 1992 15:22:43 GMT
Lines: 79