Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2002 02:22:15 -0400
From:      George Georgalis <george@galis.org>
To:        Martin Karlsson <martin.karlsson@visit.se>
Cc:        warrior@mailbox.riga.lv, questions@FreeBSD.ORG
Subject:   Re: term
Message-ID:  <20020417022215.E12351@trot.haven.dom>
In-Reply-To: <20020416073141.GA65538@foo31-146.visit.se>; from martin.karlsson@visit.se on Tue, Apr 16, 2002 at 09:31:42AM %2B0200
References:  <200204151827.g3FIRS325448@smtp.delfi.lv> <20020416073141.GA65538@foo31-146.visit.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 16, 2002 at 09:31:42AM +0200, Martin Karlsson wrote:
>* warrior@mailbox.riga.lv <warrior@mailbox.riga.lv> [2002-04-15 18.27 +0000]:
>> If in a console I set setenv TERM xterm-color then load up X, this value isnt 
>> in there, why? I have to enter it again. is there anyway to save it somewhere?
>
>One workaround is to put (not sure about uppercase/lowercase; do a
>google):
>Xterm*termName: xterm-color
>in your .Xdefaults.
>
>However, according to the xterm maintainer Thomas E. Dickey, this is
>wrong; basically he's saying that FreeBSD uses a broken termcap,
>which should be exchanged with the xterm-termcap (anyone know
>something about this? Comments? Explanation?).
>
>More info at:
>http://dickey.his.com/xterm/xterm.faq.html

I throw this (from my RH distro) in the end of BSD's termcap...

#
# This should work for the commonly used "color xterm" variations (XFree86
# xterm, color_xterm, nxterm, rxvt):
xterm-color|generic "ANSI" color xterm (X Window System):\
        :Co#8:NC@:pa#64:\
        :AB=\E[4%dm:AF=\E[3%dm:op=\E[m:tc=xterm-r6:

I have not experienced/experimented with console issues... just set TERM
to xterm-color, prob are issues with console...

humm, I normally use rxvt but never noticed this...(also from RH)

# From: Thomas Dickey <dickey@clark.net> 04 Oct 1997
# Updated: Oezguer Kesim <kesim@math.fu-berlin.de> 02 Nov 1997
# Notes:
# rxvt 2.21b uses
#       smacs=\E(B\E)U^N, rmacs=\E(B\E)0^O,
# but some applications don't work with that.
# It also has an AIX extension
#       box2=lqkxjmwuvtn,
# and
#       ech=\E[%p1%dX,
# but the latter does not work correctly.
#
# The distributed terminfo says it implements hpa and vpa, but they are not
# implemented correctly, using relative rather than absolute positioning.
#
# rxvt is normally configured to look for "xterm" or "xterm-color" as $TERM.
# Since rxvt is not really compatible with xterm, it should be configured as
# "rxvt" (monochrome) and "rxvt-color". 
# (untranslatable capabilities removed to fit entry within 1023 bytes)
# (sgr removed to fit entry within 1023 bytes)
# (acsc removed to fit entry within 1023 bytes)
# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)
rxvt-basic|rxvt terminal base (X Window System):\
        :am:bs:eo:km:mi:ms:xn:xo:\
        :co#80:it#8:li#24:\
        :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
        :K1=\EOw:K2=\EOu:K3=\EOy:K4=\EOq:K5=\EOs:LE=\E[%dD:\
        :RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:\
        :ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:\
        :cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:\
        :ho=\E[H:i1=\E[?47l\E=\E[?1l:ic=\E[@:im=\E[4h:\
        :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:\
        :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
        :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:\
        :kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=\177:kd=\E[B:ke=\E>:\
        :kh=\E[7~:kl=\E[D:kr=\E[C:ks=\E=:ku=\E[A:le=^H:mb=\E[5m:\
        :md=\E[1m:me=\E[0m\017:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:\
        :se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
        :te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[24m:up=\E[A:\
        :us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:
rxvt|rxvt terminal emulator (X Window System):\
        :NC@:\
        :me=\E[m\017:tc=rxvt-basic:tc=ecma+color:


I put the whole file up if anyone wants to compare http://galis.org/scripts/termcap

// George


>-- 
>Martin Karlsson -- 0x9C924660
>--------------------------------------------------------
>"You can't teach people to be lazy -
> either they have it, or they don't." --Dagwood Bumstead
>



-- 
GEORGE GEORGALIS, System Admin/Architect    cell: 347-451-8229 
Security Services, Web, Mail,            mailto:george@galis.org 
File, Print, DB and DNS Servers.       http://www.galis.org/george 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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