Newsgroups: fj.os.misc
Path: galaxy.trc.rwcp.or.jp!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
Xref: galaxy.trc.rwcp.or.jp fj.os.misc:240
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.os.misc&nb=240&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

  $B@P0f!w5~Bg%^%$%3%s%/%i%V$G$9!#(B

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

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

  $B$^$?!"(Bgetty(8)$B$b(Blogin(1)$B$r5/$3$9A0$K(Bkernel$B$N(Bdefault$B$N@_Dj$KLa$7$F$7(B
$B$^$$$^$9$N$G!"(Bgettytab$B$G(B8bit$B$K$9$k>l9g$O(Bgetty$B$K$b(Bpatch$B$,I,MW$G$9!#(B

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

-----------------------------------------------------------------
$B5~ETBg3X(B $BEE;R9)3X@l96(B $B;3ED8&(B M2 ishii@kuee.kyoto-u.ac.jp
$B5~Bg%^%$%3%s%/%i%V(B              ishii@kmc.kyoto-u.ac.jp  $B@P0f@59((B
---- cut here ---- 8< ---- cut here ---- 8< ---- cut here ---- 8< ----
*** ../../sys.386bsd.ibmpc/kern/tty_compat.cWed Dec 25 07:24:09 1991
--- ./tty_compat.cFri 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.orgFri Sep  4 04:27:13 1992
--- src/libexec/getty/main.cFri 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);
