From owner-FreeBSD-users-jp@jp.freebsd.org  Sat Jul 13 15:24:33 1996
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) id PAA21089
	Sat, 13 Jul 1996 15:24:33 +0900 (JST)
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) with SMTP id PAA21084
	for <FreeBSD-users-jp@jp.freebsd.org>; Sat, 13 Jul 1996 15:24:31 +0900 (JST)
Received: from uucp1.iij.ad.jp (uucp1.iij.ad.jp [192.244.176.73]) by mail0.iij.ad.jp (8.6.12+2.4W/3.3W9-MAIL) with ESMTP id PAA12085 for <FreeBSD-users-jp@jp.freebsd.org>; Sat, 13 Jul 1996 15:24:30 +0900
Received: (from uucp@localhost) by uucp1.iij.ad.jp (8.6.12+2.4W/3.3W9-UUCP) with UUCP id PAA07704 for FreeBSD-users-jp@jp.freebsd.org; Sat, 13 Jul 1996 15:24:30 +0900
Received: from xxx.fct.kgc.co.jp by yyy.kgc.co.jp (8.7.5/3.4W:95122611) id PAA15627; Sat, 13 Jul 1996 15:06:09 +0900 (JST)
Received: from localhost by xxx.fct.kgc.co.jp (8.6.12/3.3W8:95062916) id PAA14750; Sat, 13 Jul 1996 15:06:08 +0900
Message-Id: <199607130606.PAA14750@xxx.fct.kgc.co.jp>
To: FreeBSD-users-jp@jp.freebsd.org
In-reply-to: hosokawa@mt.cs.keio.ac.jp's message of 13 Jul 1996 13:29:22 +0900
References: Your message of Sat, 13 Jul 1996 12:28:46 +0900. <199607130328.MAA11094@s64.saskg.semicon.sony.co.jp>
	<199607130400.NAA26630@frig.mt.cs.keio.ac.jp>
Date: Sat, 13 Jul 1996 15:06:07 +0900
From: Toshihiro Kanda <candy@fct.kgc.co.jp>
Reply-To: FreeBSD-users-jp@jp.freebsd.org
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=19]
X-Sequence: FreeBSD-users-jp 2977
Subject: [FreeBSD-users-jp 2977] Re: For Japanese FD, 1.2MB is enough!
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

> http://www.mt.cs.keio.ac.jp/person/hosokawa/freebsd-jpinst/
> 
> $B$b:n$C$F$$$^$9!#(B

  $BF|K\8l(B boot.flp $B%A%g%Y%j%0$G$9$M!A!A(B(^^) $B@5<0%j%j!<%9$X$N%^!<%8$r4|(B
$BBT$7$F$$$^$9!#(B

  $B$G!"$3$N%Z!<%8$N2hLL$N%9%J%C%W%7%g%C%H$G$9$,!"(Bkterm $B$G$9$h$M(B?
kterm-6.1.0 $B$r(B 16 $B?'BP1~$K$7$F!"(B``sc'' $B%I%i%$%P$H8_49$N?'$,=P$k%Q%C%A(B
$B$r:n$j$^$7$?$N$G!"$b$7$h$+$C$?$i$4MxMQ2<$5$$!#(B($B=PNO%5%s%W%k$O(B
http://www.asahi-net.or.jp/~ZW6T-KND/welcome.gif $B$K$"$j$^$9!#$3$l$O(B
pcemu $B$K$D$$$F$$$?(B vga $B%U%)%s%H$r;H$C$F$$$^$9!#(B)

  $B%Q%C%A$rEv$F$F(B ``xmkmf -a; make'' $B$G%3%s%Q%$%k$7$?$i!"<!$N$h$&$J%(%s(B
$B%H%j$r(B $HOME/.termcap $B$KDI2C$7$F!"(B$TERM $B$r(B ktermc $B$K$7$F?7$7$$(B kterm 
$B$r5/F0$7$F8+$F2<$5$$!#(B

-----8<-----  $HOME/.termcap -----8<-----
ktermc|kanji terminal:\
	:op=:pa#64:Co#8:Sf=\E[3%dm:Sb=\E[4%dm:\
	:mb=\E[5m:md=\E[1m:mr=\E[7m:mh=\E[2m:me=\E[m:\
	:tc=kterm:
-----8<----------8<----------8<----------8<-----

-----8<----- kterm-6.1.0 color16 patch -----8<-----
*** Imakefile.orig	Sun Jun  5 00:44:00 1994
--- Imakefile	Fri May 10 13:33:47 1996
***************
*** 28,34 ****
  		  -DOSMAJORVERSION=$(OSMAJORVERSION) \
  		  -DOSMINORVERSION=$(OSMINORVERSION)
     MISC_DEFINES = /* -DALLOWLOGFILEEXEC */
!         DEFINES = -DKTERM -DSTATUSLINE -DKEEPALIVE
  
            SRCS1 = button.c charproc.c cursor.c data.c input.c \
  		  main.c menu.c misc.c screen.c scrollbar.c tabs.c \
--- 28,35 ----
  		  -DOSMAJORVERSION=$(OSMAJORVERSION) \
  		  -DOSMINORVERSION=$(OSMINORVERSION)
     MISC_DEFINES = /* -DALLOWLOGFILEEXEC */
!         DEFINES = -DKTERM -DSTATUSLINE -DKEEPALIVE \
! 		  -D_HAVE_PARAM_H
  
            SRCS1 = button.c charproc.c cursor.c data.c input.c \
  		  main.c menu.c misc.c screen.c scrollbar.c tabs.c \
*** KTerm.ad.orig	Sun Jun  5 00:44:00 1994
--- KTerm.ad	Fri May 10 15:10:32 1996
***************
*** 119,125 ****
  !*VT100*kanjiMode:		jis
  *VT100*lineSpace:		0
  
! *VT100*textColor0:		Black
  *VT100*textColor1:		Red
  *VT100*textColor2:		Green
  *VT100*textColor3:		Yellow
--- 119,125 ----
  !*VT100*kanjiMode:		jis
  *VT100*lineSpace:		0
  
! *VT100*textColor0:		#505050
  *VT100*textColor1:		Red
  *VT100*textColor2:		Green
  *VT100*textColor3:		Yellow
***************
*** 127,132 ****
--- 127,140 ----
  *VT100*textColor5:		Magenta
  *VT100*textColor6:		Cyan
  *VT100*textColor7:		White
+ *VT100*textColor8:		Black
+ *VT100*textColor9:		#c00000
+ *VT100*textColor10:		#00c000
+ *VT100*textColor11:		#c0c000
+ *VT100*textColor12:		#0000c0
+ *VT100*textColor13:		#c000c0
+ *VT100*textColor14:		#00c0c0
+ *VT100*textColor15:		#c0c0c0
  
  *tekMenu.Label:  Tek Options
  *tekMenu*tektextlarge*Label:  Large Characters
*** charproc.c.orig	Sun Jun  5 00:44:05 1994
--- charproc.c	Fri May 10 13:55:23 1996
***************
*** 127,132 ****
--- 127,142 ----
  #define XtNtextColor5 "textColor5"
  #define XtNtextColor6 "textColor6"
  #define XtNtextColor7 "textColor7"
+ #ifdef COLOR_16
+ #define XtNtextColor8 "textColor8"
+ #define XtNtextColor9 "textColor9"
+ #define XtNtextColor10 "textColor10"
+ #define XtNtextColor11 "textColor11"
+ #define XtNtextColor12 "textColor12"
+ #define XtNtextColor13 "textColor13"
+ #define XtNtextColor14 "textColor14"
+ #define XtNtextColor15 "textColor15"
+ #endif
  #endif /* KTERM_COLOR */
  #define XtNcutNewline "cutNewline"
  #define XtNcutToBeginningOfLine "cutToBeginningOfLine"
***************
*** 530,535 ****
--- 540,571 ----
  {XtNtextColor7, XtCForeground, XtRPixel, sizeof(Pixel),
  	XtOffsetOf(XtermWidgetRec, screen.textcolor[7]),
  	XtRString, "XtDefaultForeground"},
+ #ifdef COLOR_16 /* [ */
+ {XtNtextColor8, XtCForeground, XtRPixel, sizeof(Pixel),
+ 	XtOffsetOf(XtermWidgetRec, screen.textcolor[8]),
+ 	XtRString, "XtDefaultForeground"},
+ {XtNtextColor9, XtCForeground, XtRPixel, sizeof(Pixel),
+ 	XtOffsetOf(XtermWidgetRec, screen.textcolor[9]),
+ 	XtRString, "XtDefaultForeground"},
+ {XtNtextColor10, XtCForeground, XtRPixel, sizeof(Pixel),
+ 	XtOffsetOf(XtermWidgetRec, screen.textcolor[10]),
+ 	XtRString, "XtDefaultForeground"},
+ {XtNtextColor11, XtCForeground, XtRPixel, sizeof(Pixel),
+ 	XtOffsetOf(XtermWidgetRec, screen.textcolor[11]),
+ 	XtRString, "XtDefaultForeground"},
+ {XtNtextColor12, XtCForeground, XtRPixel, sizeof(Pixel),
+ 	XtOffsetOf(XtermWidgetRec, screen.textcolor[12]),
+ 	XtRString, "XtDefaultForeground"},
+ {XtNtextColor13, XtCForeground, XtRPixel, sizeof(Pixel),
+ 	XtOffsetOf(XtermWidgetRec, screen.textcolor[13]),
+ 	XtRString, "XtDefaultForeground"},
+ {XtNtextColor14, XtCForeground, XtRPixel, sizeof(Pixel),
+ 	XtOffsetOf(XtermWidgetRec, screen.textcolor[14]),
+ 	XtRString, "XtDefaultForeground"},
+ {XtNtextColor15, XtCForeground, XtRPixel, sizeof(Pixel),
+ 	XtOffsetOf(XtermWidgetRec, screen.textcolor[15]),
+ 	XtRString, "XtDefaultForeground"},
+ #endif /* ] */
  #endif /* KTERM_COLOR */
  {XtNeightBitInput, XtCEightBitInput, XtRBoolean, sizeof(Boolean),
  	XtOffsetOf(XtermWidgetRec, screen.input_eight_bits), 
***************
*** 4514,4519 ****
--- 4550,4558 ----
      screen->fnt_norm = nfs;
      screen->fnt_bold = bfs;
      screen->enbolden = (nfs == bfs);
+ #ifdef COLOR_16
+     screen->enbolden = 0;
+ #endif
      set_menu_font (False);
      screen->menu_font_number = fontnum;
      set_menu_font (True);
*** kterm.h.orig	Sun Jun  5 00:44:09 1994
--- kterm.h	Fri May 10 13:36:35 1996
***************
*** 35,40 ****
--- 35,41 ----
  #define KTERM_KCONV /* talk with {ROMAJI,KANA}->KANJI converter */
  #define KTERM_COLOR /* accept color sequences */
  #define KTERM_MBCC /* multi-byte character class support for word selection */
+ #define COLOR_16 /* 16 palets, BOLD means hilight */
  
  /* gset of Ichr,Bchr */
  #define CS96		0x80 /* character sets which have 96 characters */
*** misc.c.orig	Tue Mar 29 08:27:03 1994
--- misc.c	Fri May 10 13:31:18 1996
***************
*** 56,61 ****
--- 56,64 ----
  extern char *malloc();
  extern char *getenv();
  #endif
+ #ifdef _HAVE_PARAM_H
+ #include <sys/param.h>
+ #endif
  
  static void DoSpecialEnterNotify();
  static void DoSpecialLeaveNotify();
***************
*** 765,771 ****
--- 768,776 ----
  char *SysErrorMsg (n)
      int n;
  {
+ #ifndef BSD4_4
      extern char *sys_errlist[];
+ #endif
      extern int sys_nerr;
  
      return ((n >= 0 && n < sys_nerr) ? sys_errlist[n] : "unknown error");
*** ptyx.h.orig	Sun Jun  5 00:44:13 1994
--- ptyx.h	Fri May 10 14:04:18 1996
***************
*** 260,266 ****
--- 260,270 ----
  	Pixel		mousecolor;	/* Mouse color			*/
  	Pixel		mousecolorback;	/* Mouse color background	*/
  #ifdef KTERM_COLOR
+ #ifndef COLOR_16
  	Pixel		textcolor[8];	/* text colors			*/
+ #else
+ 	Pixel		textcolor[16];	/* text colors			*/
+ #endif
  #endif /* KTERM_COLOR */
  	int		border;		/* inner border			*/
  	Cursor		arrow;		/* arrow cursor			*/
***************
*** 587,592 ****
--- 591,602 ----
  #define BACKCOLORMASK	0x7000
  #define BACKCOLOR(c)	((c) << 12)
  #define BACKCOLORNUM(f)	(((f) & BACKCOLORMASK) >> 12)
+ #ifdef COLOR_16
+ #undef FORECOLORNUM
+ #undef BACKCOLORNUM
+ #define FORECOLORNUM(f)	((((f) & FORECOLORMASK) >> 8) + (((f) & BOLD)?0:8))
+ #define BACKCOLORNUM(f)	((((f) & BACKCOLORMASK) >> 12) + (((f) & BOLD)?8:8))
+ #endif
  #endif /* KTERM_COLOR */
  /* global flags */
  #ifdef KTERM
-----8<----------8<----------8<----------8<----------8<-----
candy@fct.kgc.co.jp ($B?@EDIR9-(B)
