1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-17 00:00:40 +00:00
freebsd-ports/japanese/kterm16c/files/kterm16c.doc

196 lines
6.7 KiB
Plaintext
Raw Normal View History

Subject: [FreeBSD-users-jp 36743] Re: Console dump?
From: Toshihiro Kanda <candy@kgc.co.jp>
To: FreeBSD-users-jp@jp.freebsd.org
Date: Thu, 24 Dec 1998 11:56:05 +0900 (JST)
Reply-To: FreeBSD-users-jp@jp.freebsd.org
> /stand/sysinstall <20><> 16<31><36><EFBFBD><EFBFBD><EFBFBD>顼ɽ<E9A1BC><C9BD><EFBFBD><EFBFBD><EFBFBD>ӥåȥޥåפˤ<D7A4><CBA4><EFBFBD><EFBFBD>Τ<EFBFBD><CEA4><EFBFBD>
> Ū<>Ǥ<EFBFBD><C7A4><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĥ<EFBFBD><C4A4><EFBFBD><EFBFBD><EFBFBD> users-jp <20><> kterm-6.1.0 <20><> 16<31><36>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD>
> <20>뤿<EFBFBD><EBA4BF><EFBFBD>Υѥå<D1A5><C3A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD>Τǡ<CEA4><C7A1><EFBFBD><EFBFBD><EFBFBD><ECA4AC><EFBFBD>Ȥ<EFBFBD><C8A4>ޤ<EFBFBD>(kterm <20><><EFBFBD><EFBFBD>
> ư<><C6B0><EFBFBD><EFBFBD><EFBFBD>ơ<EFBFBD><C6A1><EFBFBD><EFBFBD>̤<EFBFBD> grab <20><><EFBFBD><EFBFBD>)<29><>
> # <20><EFBFBD>Ǥ<EFBFBD> kterm-6.2.0 <20><>̵<EFBFBD><CCB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǥѥå<D1A5><C3A5><EFBFBD><EFBFBD>ƤƻȤäƤ<C3A4><C6A4>ޤ<EFBFBD><DEA4><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸŤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Τ<EFBFBD><EFBFBD>Ф<EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ä<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȤϤӤä<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD><EFBFBD>̵<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD>ѥå<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD>ޤäƤ϶<EFBFBD><EFBFBD>̤ʤΤǡ<EFBFBD>kterm-6.2.0 <20>ѤΥѥå<D1A5><C3A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҹ<EFBFBD> <candy@kgc.co.jp>
------------------------------------------------------------
kterm-6.2.0 <20><> 16 <20><><EFBFBD>ѥå<D1A5> & <20><><EFBFBD>󥽡<EFBFBD><F3A5BDA1><EFBFBD>(sc)<29>ߴ<EFBFBD> termcap <20><><EFBFBD><EFBFBD><EFBFBD>ȥ<EFBFBD>
<EFBFBD><EFBFBD><EFBFBD>Υѥå<EFBFBD><EFBFBD><EFBFBD>̵<EFBFBD>ݾڤǤ<EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD>ѥå<EFBFBD><EFBFBD>λȤ<EFBFBD><EFBFBD><EFBFBD>
kterm-6.2.0/ <20>Τ<EFBFBD><CEA4><EFBFBD><EFBFBD>ǥ<EFBFBD><C7A5><EFBFBD>ȥ<EFBFBD><C8A5>ǰʲ<C7B0><CAB2><EFBFBD><EFBFBD>¹Ԥ<C2B9><D4A4>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>16 <20><><EFBFBD>б<EFBFBD>
kterm <20>򥤥󥹥ȡ<F3A5B9A5><C8A1><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
# patch -p < this-patch
# cd kterm-6.2.0
# xmkmf -a
# make all install
<EFBFBD><EFBFBD>termcap <20><><EFBFBD><EFBFBD><EFBFBD>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD>ɲ<EFBFBD>
<EFBFBD><EFBFBD><EFBFBD>Τ<EFBFBD>ʥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȥ<EFBFBD><EFBFBD><EFBFBD> $HOME/.termcap <20><><EFBFBD>ɲä<C9B2><C3A4>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>16 <20><><EFBFBD>б<EFBFBD>
kterm <20><><EFBFBD><EFBFBD>ư<EFBFBD><C6B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ķ<EFBFBD><C4B6>ѿ<EFBFBD> TERM <20><> ktermc <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
--------8<-------- $HOME/.termcap --------8<--------
ktermc|kanji terminal with 16 colors:\
: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<--------
<EFBFBD><EFBFBD>VGA font <20>κ<EFBFBD><CEBA><EFBFBD><EFBFBD><EFBFBD>
VGA <20>ե<EFBFBD><D5A5><EFBFBD><EFBFBD>Ȥ<EFBFBD>packages/emulators/pcemu-1.01a <20><> vga.pcf.Z <20><><EFBFBD><EFBFBD><EFBFBD>Ѥ<EFBFBD><D1A4><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
$ su
# cp vga.pcf.Z /usr/X11R6/lib/X11/fonts/misc
# cd /usr/X11R6/lib/X11/fonts/misc
# mkfontdir
# exit
$ xset fp rehash
kterm <20>ε<EFBFBD>ư(<28><>)
$ kterm -fn vga -fk kanji16 -rv &
<EFBFBD><EFBFBD>kterm-6.2.0 <20><> 16 <20><><EFBFBD>ѥå<D1A5>
--------8<--------8<--------8<--------8<--------8<--------
diff --exclude=Makefile -ur kterm-6.2.0.orig/KTerm.ad kterm-6.2.0/KTerm.ad
--- kterm-6.2.0.orig/KTerm.ad Sun Jun 23 17:00:22 1996
+++ kterm-6.2.0/KTerm.ad Thu Dec 24 11:47:10 1998
@@ -97,14 +97,22 @@
!*VT100*kanjiMode: jis
!*VT100*lineSpace: 0
-!*VT100*textColor0: Black
-!*VT100*textColor1: Red
-!*VT100*textColor2: Green
-!*VT100*textColor3: Yellow
-!*VT100*textColor4: Blue
-!*VT100*textColor5: Magenta
-!*VT100*textColor6: Cyan
-!*VT100*textColor7: White
+*VT100*textColor0: #505050
+*VT100*textColor1: Red
+*VT100*textColor2: Green
+*VT100*textColor3: Yellow
+*VT100*textColor4: Blue
+*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
diff --exclude=Makefile -ur kterm-6.2.0.orig/charproc.c kterm-6.2.0/charproc.c
--- kterm-6.2.0.orig/charproc.c Fri Jul 12 14:01:36 1996
+++ kterm-6.2.0/charproc.c Thu Dec 24 11:46:28 1998
@@ -143,6 +143,16 @@
#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"
@@ -576,6 +586,32 @@
{XtNtextColor7, XtCForeground, XtRPixel, sizeof(Pixel),
XtOffsetOf(XtermWidgetRec, screen.textcolor[7]),
XtRString, "White"},
+#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),
@@ -4979,6 +5015,9 @@
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);
diff --exclude=Makefile -ur kterm-6.2.0.orig/kterm.h kterm-6.2.0/kterm.h
--- kterm-6.2.0.orig/kterm.h Fri Jul 12 14:01:37 1996
+++ kterm-6.2.0/kterm.h Thu Dec 24 11:46:28 1998
@@ -37,5 +37,6 @@
#define KTERM_COLOR /* color sequence */
#define KTERM_NOTEK /* disables Tektronix emulation */
#undef KTERM_XAW3D /* Xaw3d -DARROW_SCROLLBAR support */
+#define COLOR_16 /* 16 palets, BOLD means hilight */
#endif /* !_KTERM_H_ */
diff --exclude=Makefile -ur kterm-6.2.0.orig/ptyx.h kterm-6.2.0/ptyx.h
--- kterm-6.2.0.orig/ptyx.h Tue Jul 2 14:01:53 1996
+++ kterm-6.2.0/ptyx.h Thu Dec 24 11:46:28 1998
@@ -300,7 +300,11 @@
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 */
@@ -656,6 +660,12 @@
#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<--------