Subject: misc/20879: kterm reversevideo and underline text are in mess.
To: None <>
From: Kazuhito Tsuburaya <>
List: netbsd-bugs
Date: 03/24/2003 06:36:21
>Number:         20879
>Category:       misc
>Synopsis:       kterm reversevideo and underline text are in mess.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 24 06:37:00 PST 2003
>Originator:     Kazuhito Tsuburaya
>Release:        NetBSD 1.6Q
NetBSD zama.japan 1.6Q NetBSD 1.6Q (GENERIC-J) #0: Sun Mar 23 12:10:45 JST 2003 root@zama.japan:/usr/src/sys/arch/i386/compile/GENERIC-J i386
XFree86 version: 4.3.0
kterm: version 6.2.0.wd0.2
kterm reversevideo and underline text are in mess.

xterm-xf86-v33 is the child of xterm-xf86-v32 
and XFree86 version 3.3 and 3.2 is X11R6.3, 
while kterm is based on xterm of the X11R6.1 (XFree86 
version 3.0?) according to README.kt 
in kterm-6.2.0 distribution.

I suppose that the old program kterm probably cannot enjoy
the improvement of current version of xterm.

kterm itself could display color text with xterm-r6 as is.
This was tested as follows.

    # printf "\e[7;32m reversevideo and green \e[m\n"

       # man man
or     # sushi   -> Process and Daemons -> Show all daemons
or     # window  -> Ctrl-p -> ?

I think the better and safer fix might be to go back
to the previous setting.

--- /usr/src/share/termcap/termcap.src.orig	2003-03-23 10:51:29.000000000 +0900
+++ /usr/src/share/termcap/termcap.src	2003-03-23 23:43:53.000000000 +0900
@@ -1867,7 +1867,7 @@
 # (kterm: this had extension capabilities ":KJ:TY=ascii:" -- esr)
 kterm|kterm kanji terminal emulator (X window system):\
-	:tc=xterm-xf86-v33:
+	:tc=xterm-r6:
 # See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
 xterm-nic|xterm with ich/ich1 suppressed for non-curses programs:\


  # cd /usr/share/misc
  # su
  # cap_mkdb termcap

If some programs need xterm-xf86-v33" for displaying color text, 
the below quick fix might be convenient.


  # set term=kterm-color

This also works well.

But in the case of using some curses based programs on kterm,
it may need the different solutions to display color texts
for each programs.