summaryrefslogtreecommitdiff
path: root/japanese/kterm16c/files/kterm16c.doc
blob: 4deb972e550af7cbae5803f29f790ed0a678d0ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
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 �� 16�����顼ɽ����ӥåȥޥåפˤ���Τ���
> Ū�Ǥ���С��������Ĥ��� users-jp �� kterm-6.1.0 �� 16��ɽ����
> �뤿��Υѥå����������Ƥ���Τǡ����줬���Ȥ��ޤ�(kterm ���
> ư�����ơ����̤� grab ����)��
> # �긵�Ǥ� kterm-6.2.0 ��̵��������ǥѥå����ƤƻȤäƤ��ޤ���

����ʸŤ���Τ�Ф��Ƥ���ä������������ȤϤӤä���Ǥ���̵��������
�ѥå������Ƥ��ޤäƤ϶��̤ʤΤǡ�kterm-6.2.0 �ѤΥѥå�����ޤ�����

�����ҹ� <candy@kgc.co.jp>

------------------------------------------------------------
kterm-6.2.0 �� 16 ���ѥå� & ���󥽡���(sc)�ߴ� termcap ����ȥ�

���Υѥå���̵�ݾڤǤ���

���ѥå��λȤ���
kterm-6.2.0/ �Τ���ǥ��쥯�ȥ�ǰʲ���¹Ԥ��Ƥ���������16 ���б� 
kterm �򥤥󥹥ȡ��뤷�ޤ���

	# patch -p < this-patch
	# cd kterm-6.2.0
	# xmkmf -a
	# make all install

��termcap ����ȥ���ɲ�
���Τ褦�ʥ���ȥ�� $HOME/.termcap ���ɲä��Ƥ���������16 ���б� 
kterm ��ư�����顢�Ķ��ѿ� TERM �� ktermc �����ꤷ�Ƥ���������

--------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<--------

��VGA font ����
VGA �ե���Ȥ�packages/emulators/pcemu-1.01a �� vga.pcf.Z �����Ѥ����
����餷�������ޤ���

	$ su
	# cp vga.pcf.Z /usr/X11R6/lib/X11/fonts/misc
	# cd /usr/X11R6/lib/X11/fonts/misc
	# mkfontdir
	# exit
	$ xset fp rehash

kterm �ε�ư(��)
	$ kterm -fn vga -fk kanji16 -rv &

��kterm-6.2.0 �� 16 ���ѥå�
--------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<--------