Newsgroups: fj.sources.d,fj.sys.news,fj.unix
Path: galaxy.trc.rwcp.or.jp!jaist-news!cs.titech!wnoc-tyo-news!sh.wide!wnoc-snd-ss2!sakunami!ayashi!kaneko
From: kaneko@cc.sendai-ct.ac.jp (Yutaka Kaneko)
Subject: screen 3.5
Message-ID: <CBH0D5.Jxr@sendai-ct.ac.jp>
Followup-To: fj.sources.d
Lines: 90
Sender: news@sendai-ct.ac.jp (SNCT News System)
Nntp-Posting-Host: saikachi
Organization: Sendai National College of Technology, Sendai JAPAN.
X-Newsreader: mnews [version 1.16]
Date: Mon, 9 Aug 1993 02:31:52 GMT
Xref: galaxy.trc.rwcp.or.jp fj.sources.d:2572 fj.sys.news:2620 fj.unix:4376
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.unix&nb=4376&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.


  $B6b;R!w@gBfEEGH$G$9!#(B

  Followup-to $B$O(B fj.sources.d$B$K$7$F$"$j$^$9!#(B

  $B@hF|(Bcomp.sources.unix$B$K(Bscreen 3.5$B$,(Bpost$B$5$l$F$$$^$7$?$N(B
$B$G!";n$7$F$_$^$7$?!#(B

  SONY NEWS$B$K$*$$$F$O(B configure $B$NEG$$$?(B config.h $B$G(B
`MIPS'$B!"(B`TERMIO'$B$,$=$l$>$l(B define $B$5$l$F$7$^$&$N$G$=$l$i$r(B
undef $B$9$l$PF0$-$^$9!#$^$?!"%*%j%8%J%k$N$^$^$G$O(B $B?7$?$JAk$N(B
tty$B$N4A;z%3!<%I$,@_Dj$5$l$^$;$s$N$G!"8e$K$D$1$k(Bpatch$B$r$"$F$F(B
$B$/$@$5$$!#(B

  $B4A;z$^$o$j$G$9$,!"(B8bit$BL\$,$?$C$?%3!<%I$OAGDL$j$9$k$h$&$J$N(B
$B$G!"(BEUC$B4A;z%3!<%I$O$=$N$^$^$GDL$j$^$9!#(B2byte code$B$G$"$k$3$H(B
$B$O9MN8$5$l$F$$$J$$$N$G!"9TKvEy$G$O2=$1$^$9$,DL>o$NMxMQ$K$OBQ(B
$B$($i$l$k$H;W$$$^$9!#(BShift JIS$B4A;z%3!<%I$O;n$7$F$$$^$;$s$,B?(B
$BJ,$H$*$k$G$7$g$&!#(B

  $B:#=58eH>$O5">J$9$k$D$b$j$J$N$G!"$^$H$b$JF|K\8lBP1~HG!"$*$h(B
$B$S!"(Bskkfep$BAH9~$_HG$O$7$P$i$/@h$K$J$j$^$9!#$G$O$G$O!#(B


--- cut here --- cut here --- cut here ---
diff -cr ../screen-3.5/screen.h ./screen.h
*** ../screen-3.5/screen.hWed Jul 28 13:43:28 1993
--- ./screen.hWed Aug  4 18:24:42 1993
***************
*** 112,117 ****
--- 112,121 ----
    int m_lmode;
  # endif /* TERMIO */
  #endif /* POSIX */
+ #ifdef NEWSOS
+   struct jtchars m_jtchars;
+   int m_knjmode;
+ #endif
  };
  
  #include "display.h"
diff -cr ../screen-3.5/tty.sh ./tty.sh
*** ../screen-3.5/tty.shWed Jul 28 13:44:17 1993
--- ./tty.shWed Aug  4 18:51:49 1993
***************
*** 302,307 ****
--- 302,313 ----
  ;
  # endif /* TERMIO */
  #endif /* POSIX */
+ 
+ #ifdef NEWSOS /* NEWS OS 4.2C's defaults */
+   m->m_jtchars.t_ascii = 'J';
+   m->m_jtchars.t_kanji = 'B';
+   m->m_knjmode         = KM_ASCII | KM_SYSSJIS;
+ #endif
  }
  
  void 
***************
*** 327,332 ****
--- 333,342 ----
    ioctl(fd, TIOCSLTC, &mp->m_ltchars); /* moved here for apollo. jw */
  # endif
  #endif
+ #ifdef NEWSOS
+   ioctl(fd, TIOCKSETC, &mp->m_jtchars);
+   ioctl(fd, TIOCKSET, &mp->m_knjmode);
+ #endif
    if (errno)
      Msg(errno, "SetTTY (fd %d): ioctl failed", fd);
  }
***************
*** 352,357 ****
--- 362,371 ----
    ioctl(fd, TIOCLGET, &mp->m_lmode);
    ioctl(fd, TIOCGETD, &mp->m_ldisc);
  # endif
+ #endif
+ #ifdef NEWSOS
+   ioctl(fd, TIOCKGETC, &mp->m_jtchars);
+   ioctl(fd, TIOCKGET, &mp->m_knjmode);
  #endif
    if (errno)
      Msg(errno, "GetTTY (fd %d): ioctl failed", fd);



--- cut here --- cut here --- cut here ---

main(i,j){j=time(0);do for(i /*       $B6b;R(B $BM5(B(Yutaka Kaneko)           */
=0;i<79;i++)printf(j%512>>4? /*  Sendai National College of Technology */
" ":"*"),j=j*331+113;while(  /*     kaneko@cc.sendai-ct.ac.jp          */
printf("\n\033[H\033[1L"));} /*   or kaneko@rcais.tohoku.ac.jp         */
