Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Aug 2010 20:47:25 +0400
From:      Anonymous <swell.k@gmail.com>
To:        Randy Bush <randy@psg.com>
Cc:        FreeBSD current mailing list <freebsd-current@freebsd.org>
Subject:   Re: better way than hacking termcap to be ca_mode free
Message-ID:  <86aaomec82.fsf@gmail.com>
In-Reply-To: <m2vd7bhrg1.wl%randy@psg.com> (Randy Bush's message of "Mon, 16 Aug 2010 17:50:22 %2B0900")
References:  <m2vd7bhrg1.wl%randy@psg.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Randy Bush <randy@psg.com> writes:

> is there a better way to achieve this?

Not sure about ~/.termcap but you can just override ti/te via TERMCAP in
environment.

  $ export TERM=${TERM:-xterm}
  $ export TERMCAP=${TERM}:ti@:te@:tc=${TERM}:

>
> *** termcap.FCS Tue Jun 17 15:10:46 2003
> --- termcap     Tue Jun 17 15:14:15 2003
> ***************
> *** 299,305 ****
>   adm3|3|lsi adm3:\
>         :do=^J:am:le=^H:bs:cl=^Z:li#24:ma=^K^P:co#80:
>   xterm|xterm-color|X11 terminal emulator:\
> !       :ti@:te@:tc=xterm-xfree86:
>   #
>   # DESCRIPTION:
>   # This file describes capabilities of various terminals, as needed by
> --- 299,305 ----
>   adm3|3|lsi adm3:\
>         :do=^J:am:le=^H:bs:cl=^Z:li#24:ma=^K^P:co#80:
>   xterm|xterm-color|X11 terminal emulator:\
> !       :tc=xterm-xfree86:
>   #
>   # DESCRIPTION:
>   # This file describes capabilities of various terminals, as needed by

I guess the diff is not for termcap file from /head.



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