conf/56956: xterm-ic from termcap is not included in termcap.db
Rudolf Cejka
cejkar at fit.vutbr.cz
Wed Sep 17 10:00:41 PDT 2003
>Number: 56956
>Category: conf
>Synopsis: xterm-ic from termcap is not included in termcap.db
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 17 10:00:37 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Rudolf Cejka
>Release: FreeBSD 4.8-STABLE i386
>Organization:
FIT, Brno University of Technology, Czech Republic
>Environment:
>Description:
If you look in termcap (4.x and/or 5.x - it seems that it is everywhere)
around xterm-ic record, you see:
# comment \
xterm-ic ... \
...
Unfortunatelly, cap_mkdb (specifically cgetnext() from libc) interprets
it just as one big comment, because "\" has bigger priority that "#", so
"\" is applied before "#". It means that xterm-ic is not compiled into
termcap.db database.
>How-To-Repeat:
>Fix:
The first variant: Just remove "\" from the end of comment line:
--- termcap.orig Tue Aug 12 15:32:35 2003
+++ termcap Wed Sep 17 17:44:33 2003
@@ -2996,7 +2996,7 @@
:tc=xterm-basic:
#
# vi may work better with this entry, because vi doesn't use insert mode much.
-# |xterm-ic|xterm-vi|xterm with insert character instead of insert mode:\
+# |xterm-ic|xterm-vi|xterm with insert character instead of insert mode:
xterm-ic|xterm-vi|xterm with insert char:\
:im@:ei@:mi@:ic=\E[@:IC=\E[%d@:tc=xterm:
#
The second variant: Remove all line, because I do not know why it is here:
--- termcap.orig Tue Aug 12 15:32:35 2003
+++ termcap Wed Sep 17 17:45:06 2003
@@ -2996,7 +2996,6 @@
:tc=xterm-basic:
#
# vi may work better with this entry, because vi doesn't use insert mode much.
-# |xterm-ic|xterm-vi|xterm with insert character instead of insert mode:\
xterm-ic|xterm-vi|xterm with insert char:\
:im@:ei@:mi@:ic=\E[@:IC=\E[%d@:tc=xterm:
#
Or the third possible fix - change the logic in
src/lib/libc/gen/getcap.c. I do not know if it is
a bug, or a feature :o)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list