From 25304384e749aff37c8bf0306153f4e643e2666b Mon Sep 17 00:00:00 2001 From: Motoyuki Konno Date: Thu, 11 Feb 1999 08:13:58 +0000 Subject: kterm16c port. Files were repository copied from ports/japanese/kterm. kterm16c is a 16 color-support version of kterm. It is useful for console hardcopy on a VGA terminal. 16 color patch was made by KANDA Toshihiro . PR: 9976 Submitted by: KIRIYAMA Kazuhiko --- japanese/kterm16c/Makefile | 43 +++++--- japanese/kterm16c/distinfo | 1 + japanese/kterm16c/files/dot.termcap | 4 + japanese/kterm16c/files/kterm16c.doc | 195 +++++++++++++++++++++++++++++++++++ japanese/kterm16c/files/patch-ab | 34 ++++++ japanese/kterm16c/files/patch-ac | 63 +++++++++++ japanese/kterm16c/files/patch-ad | 10 ++ japanese/kterm16c/files/patch-ae | 28 +++++ japanese/kterm16c/pkg-comment | 2 +- japanese/kterm16c/pkg-deinstall | 3 + japanese/kterm16c/pkg-descr | 15 +-- japanese/kterm16c/pkg-message | 10 ++ japanese/kterm16c/pkg-plist | 13 +-- 13 files changed, 392 insertions(+), 29 deletions(-) create mode 100644 japanese/kterm16c/files/dot.termcap create mode 100644 japanese/kterm16c/files/kterm16c.doc create mode 100644 japanese/kterm16c/files/patch-ab create mode 100644 japanese/kterm16c/files/patch-ac create mode 100644 japanese/kterm16c/files/patch-ad create mode 100644 japanese/kterm16c/files/patch-ae create mode 100644 japanese/kterm16c/pkg-deinstall create mode 100644 japanese/kterm16c/pkg-message (limited to 'japanese') diff --git a/japanese/kterm16c/Makefile b/japanese/kterm16c/Makefile index 5e39ca3e8e05..9a8e4026c6a0 100644 --- a/japanese/kterm16c/Makefile +++ b/japanese/kterm16c/Makefile @@ -1,18 +1,23 @@ -# New ports collection makefile for: kterm +# New ports collection makefile for: kterm of 16 colors # Version required: 6.2 # Date created: 18 November 1994 # Whom: asami # -# $Id: Makefile,v 1.16 1997/12/25 22:29:38 asami Exp $ +# $Id: Makefile,v 1.17 1998/12/23 01:47:23 steve Exp $ # DISTNAME= kterm-6.2.0 -PKGNAME= ja-kterm-6.2.0 +PKGNAME= ja-kterm16c-6.2.0 CATEGORIES= japanese x11 -MASTER_SITES= ${MASTER_SITE_XCONTRIB} +MASTER_SITES= ${MASTER_SITE_XCONTRIB} \ + ftp://ftp.interface-business.de/pub/outgoing/ \ + ftp://ftp.cs.bris.ac.uk/pub/users/hedley/ +DISTFILES= kterm-6.2.0.tar.gz pcemu1.01alpha.tar.gz +EXTRACT_ONLY= kterm-6.2.0.tar.gz + MASTER_SITE_SUBDIR= applications -MAINTAINER= shige@kuis.kyoto-u.ac.jp +MAINTAINER= kiri@pis.toba-cmt.ac.jp BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm @@ -24,10 +29,15 @@ PATCHFILES= kterm-6.2.0.NFS-xauth.patch \ PATCH_DIST_STRIP= -p1 USE_IMAKE= yes -MAN1= kterm.1 -MANCOMPRESSED= yes -DOCDIR= ${PREFIX}/share/doc/kterm +DOCDIR= ${PREFIX}/share/doc/kterm16c + +post-extract: + @${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/pcemu1.01alpha.tar.gz \ + ${EXTRACT_AFTER_ARGS} -C ${WRKDIR} pcemu1.01alpha/vga.bdf + @cd ${WRKDIR}/pcemu1.01alpha; \ + bdftopcf vga.bdf > vga.pcf; \ + ${GZIP_CMD} vga.pcf .if !defined(PACKAGE_BUILDING) @@ -54,16 +64,19 @@ post-patch: .endif .endif +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/kterm ${PREFIX}/bin/kterm16c + @${INSTALL_DATA} ${WRKSRC}/KTerm.ad ${PREFIX}/lib/X11/app-defaults/KTerm.16-colors + @${INSTALL_DATA} ${WRKDIR}/pcemu1.01alpha/vga.pcf.gz \ + ${PREFIX}/lib/X11/fonts/misc + @mkfontdir ${PREFIX}/lib/X11/fonts/misc + post-install: -# install japanese manual - @${MV} ${WRKSRC}/kterm.jman ${WRKSRC}/kterm.jman.jis - @nkf -e -u ${WRKSRC}/kterm.jman.jis >${WRKSRC}/kterm.jman - @${INSTALL_MAN} ${WRKSRC}/kterm.jman ${PREFIX}/man/ja/man1/kterm.1 - @${GZIP_CMD} ${PREFIX}/man/ja/man1/kterm.1 .if !defined(NOPORTDOCS) @${MKDIR} ${DOCDIR} - @${INSTALL_DATA} ${WRKSRC}/README.kt ${DOCDIR} - @${INSTALL_DATA} ${WRKSRC}/README.wallpaper ${DOCDIR}/README.wallpaper.ja + @${INSTALL_DATA} ${FILESDIR}/dot.termcap ${DOCDIR} + @${INSTALL_DATA} ${FILESDIR}/kterm16c.doc ${DOCDIR} .endif + @${CAT} ${PKGDIR}/MESSAGE .include diff --git a/japanese/kterm16c/distinfo b/japanese/kterm16c/distinfo index 097038984615..b5b4b0886b8f 100644 --- a/japanese/kterm16c/distinfo +++ b/japanese/kterm16c/distinfo @@ -1,3 +1,4 @@ MD5 (kterm-6.2.0.tar.gz) = 9cc72841b50dfba92bce01dbbebf3039 +MD5 (pcemu1.01alpha.tar.gz) = 1fed124b199839e439bec0f45abf006b MD5 (kterm-6.2.0.NFS-xauth.patch) = a2f11334e14929997e987e463f004dd0 MD5 (kterm-6.2.0-wpr1.patch.gz) = 139c824069743f8aa2ed85d55a2b0dfc diff --git a/japanese/kterm16c/files/dot.termcap b/japanese/kterm16c/files/dot.termcap new file mode 100644 index 000000000000..7dd72c5f2b50 --- /dev/null +++ b/japanese/kterm16c/files/dot.termcap @@ -0,0 +1,4 @@ +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: diff --git a/japanese/kterm16c/files/kterm16c.doc b/japanese/kterm16c/files/kterm16c.doc new file mode 100644 index 000000000000..4deb972e550a --- /dev/null +++ b/japanese/kterm16c/files/kterm16c.doc @@ -0,0 +1,195 @@ +Subject: [FreeBSD-users-jp 36743] Re: Console dump? +From: Toshihiro Kanda +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 用のパッチを作りました。 + +神田敏広 + +------------------------------------------------------------ +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<-------- + diff --git a/japanese/kterm16c/files/patch-ab b/japanese/kterm16c/files/patch-ab new file mode 100644 index 000000000000..1ad357c6a65c --- /dev/null +++ b/japanese/kterm16c/files/patch-ab @@ -0,0 +1,34 @@ +diff --exclude=Makefile -ur kterm-6.2.0.orig/KTerm.adKTerm.ad +--- kterm-6.2.0.orig/KTerm.ad Sun Jun 23 17:00:22 1996 ++++ 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 --git a/japanese/kterm16c/files/patch-ac b/japanese/kterm16c/files/patch-ac new file mode 100644 index 000000000000..947f2bc0b037 --- /dev/null +++ b/japanese/kterm16c/files/patch-ac @@ -0,0 +1,63 @@ +diff --exclude=Makefile -ur kterm-6.2.0.orig/charproc.ccharproc.c +--- kterm-6.2.0.orig/charproc.c Fri Jul 12 14:01:36 1996 ++++ 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 --git a/japanese/kterm16c/files/patch-ad b/japanese/kterm16c/files/patch-ad new file mode 100644 index 000000000000..ff35c7727104 --- /dev/null +++ b/japanese/kterm16c/files/patch-ad @@ -0,0 +1,10 @@ +diff --exclude=Makefile -ur kterm-6.2.0.orig/kterm.hkterm.h +--- kterm-6.2.0.orig/kterm.h Fri Jul 12 14:01:37 1996 ++++ 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 --git a/japanese/kterm16c/files/patch-ae b/japanese/kterm16c/files/patch-ae new file mode 100644 index 000000000000..d71f8f8e5d7c --- /dev/null +++ b/japanese/kterm16c/files/patch-ae @@ -0,0 +1,28 @@ +diff --exclude=Makefile -ur kterm-6.2.0.orig/ptyx.hptyx.h +--- kterm-6.2.0.orig/ptyx.h Tue Jul 2 14:01:53 1996 ++++ 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 diff --git a/japanese/kterm16c/pkg-comment b/japanese/kterm16c/pkg-comment index 0f44662dbffa..abdfb06b2e0c 100644 --- a/japanese/kterm16c/pkg-comment +++ b/japanese/kterm16c/pkg-comment @@ -1 +1 @@ -An xterm that speaks Japanese +An xterm that speaks Japanese with 16 colors like on a VGA. diff --git a/japanese/kterm16c/pkg-deinstall b/japanese/kterm16c/pkg-deinstall new file mode 100644 index 000000000000..af4f2ac39f66 --- /dev/null +++ b/japanese/kterm16c/pkg-deinstall @@ -0,0 +1,3 @@ +#!/bin/sh + +perl -pi -e 's/^vga\.pcf\.gz[ \t]+.*\n$//' ${PKG_PREFIX}/lib/X11/fonts/misc/fonts.dir diff --git a/japanese/kterm16c/pkg-descr b/japanese/kterm16c/pkg-descr index 19e64b4abc8c..712a48c6ba3c 100644 --- a/japanese/kterm16c/pkg-descr +++ b/japanese/kterm16c/pkg-descr @@ -1,11 +1,12 @@ kterm is a xterm replacement with Japanese (Kanji) support. It also -understands ANSI color sequences. This version is 6.1.0, available -from the X11R6 contrib tape. +understands ANSI color sequences. This version is 6.2.0. + +kterm16c is for console hardcopy on a VGA terminal. It enables to get +bitmaps of VGA terminal mode. Conversion for 16 color kterm was made by +KANDA Toshihiro. Also included is support for Xaw3d arrow-style scrollbars. You can -now hold down the arrow buttons to scroll continuously. I made this -patch (patch-ae) by modifying the source while looking at the xterm -patch available with Xaw3d for R5. +now hold down the arrow buttons to scroll continuously. -Satoshi Asami -asami@cs.berkeley.edu +-KIRIYAMA Kazuhiko + diff --git a/japanese/kterm16c/pkg-message b/japanese/kterm16c/pkg-message new file mode 100644 index 000000000000..232533a6119e --- /dev/null +++ b/japanese/kterm16c/pkg-message @@ -0,0 +1,10 @@ +*********************************************************************** +* You must reset X, copy .termcap to your home directory and set TERM * +* ktermc: * +* % xset fp rehash * +* % xrdb -m /usr/X11R6/lib/X11/app-defaults/KTerm.16-colors * +* % cp /usr/X11R6/share/doc/kterm16c/dot.termcap $HOME/.termcap * +* % kterm16c -fn vga -rv & (for VGA terminal) * +* % kterm16c -fn kanji14 -fk kanji14 -rv & (for kon on VGA) * +* % setenv TERM ktermc * +*********************************************************************** diff --git a/japanese/kterm16c/pkg-plist b/japanese/kterm16c/pkg-plist index bfc5f2db0f6d..39ea8dd2d79c 100644 --- a/japanese/kterm16c/pkg-plist +++ b/japanese/kterm16c/pkg-plist @@ -1,6 +1,7 @@ -bin/kterm -lib/X11/app-defaults/KTerm -man/ja/man1/kterm.1.gz -share/doc/kterm/README.kt -share/doc/kterm/README.wallpaper.ja -@dirrm share/doc/kterm +bin/kterm16c +lib/X11/app-defaults/KTerm.16-colors +lib/X11/fonts/misc/vga.pcf.gz +@exec /usr/X11R6/bin/mkfontdir %B +share/doc/kterm16c/dot.termcap +share/doc/kterm16c/kterm16c.doc +@dirrm share/doc/kterm16c -- cgit v1.2.3