Re: better way than hacking termcap to be ca_mode free

From: Anonymous <swell.k_at_gmail.com>
Date: Mon, 16 Aug 2010 20:47:25 +0400
Randy Bush <randy_at_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_at_:te_at_: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_at_:te_at_: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.
Received on Mon Aug 16 2010 - 14:47:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:06 UTC