Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 2003 18:50:14 +0200 (CEST)
From:      Rudolf Cejka <cejkar@fit.vutbr.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   conf/56956: xterm-ic from termcap is not included in termcap.db
Message-ID:  <200309171650.h8HGoE2L001160@kazi.fit.vutbr.cz>
Resent-Message-ID: <200309171700.h8HH0bm8066858@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309171650.h8HGoE2L001160>