2 deleted 12 characters in body
source | link

Gilles answer is excellent, but this made me curious:

Termcap is largely obsolete, having been replaced by Terminfo

  1. If Termcap is obsolete, I want to switch to Terminfo

  2. I also want to switch away from Termcap because I found a bug. Say you put a termcap variable in your "~/.profile"~/.profile or similar:

    export LESS_TERMCAP_so=$(printf '\33[5;30;43m')
    export LESS_TERMCAP_se=$(printf '\33[m')
    

    After that if you enter "set"set, the Termcap variables mess up your color output.

To switch to Terminfo, you can make a file "xterm-pretty.terminfo"xterm-pretty.ti:

xterm-pretty|xterm with pretty colors,
# exit standout mode
  rmso=\e[m,
# begin standout mode
  smso=\e[5;30;43m,
# similar terminal
  use=xterm,

Compile and install the file:

tic xterm-pretty.terminfoti

Add line to "~/.profile"~/.profile or similar:

TERM=xterm-pretty

Gilles answer is excellent, but this made me curious:

Termcap is largely obsolete, having been replaced by Terminfo

  1. If Termcap is obsolete, I want to switch to Terminfo

  2. I also want to switch away from Termcap because I found a bug. Say you put a termcap variable in your "~/.profile" or similar:

    export LESS_TERMCAP_so=$(printf '\33[5;30;43m')
    export LESS_TERMCAP_se=$(printf '\33[m')
    

    After that if you enter "set", the Termcap variables mess up your color output.

To switch to Terminfo, you can make a file "xterm-pretty.terminfo":

xterm-pretty|xterm with pretty colors,
# exit standout mode
  rmso=\e[m,
# begin standout mode
  smso=\e[5;30;43m,
# similar terminal
  use=xterm,

Compile and install the file:

tic xterm-pretty.terminfo

Add line to "~/.profile" or similar:

TERM=xterm-pretty

Gilles answer is excellent, but this made me curious:

Termcap is largely obsolete, having been replaced by Terminfo

  1. If Termcap is obsolete, I want to switch to Terminfo

  2. I also want to switch away from Termcap because I found a bug. Say you put a termcap variable in your ~/.profile or similar:

    export LESS_TERMCAP_so=$(printf '\33[5;30;43m')
    export LESS_TERMCAP_se=$(printf '\33[m')
    

    After that if you enter set, the Termcap variables mess up your color output.

To switch to Terminfo, you can make a file xterm-pretty.ti:

xterm-pretty|xterm with pretty colors,
# exit standout mode
  rmso=\e[m,
# begin standout mode
  smso=\e[5;30;43m,
# similar terminal
  use=xterm,

Compile and install the file:

tic xterm-pretty.ti

Add line to ~/.profile or similar:

TERM=xterm-pretty
1
source | link

Gilles answer is excellent, but this made me curious:

Termcap is largely obsolete, having been replaced by Terminfo

  1. If Termcap is obsolete, I want to switch to Terminfo

  2. I also want to switch away from Termcap because I found a bug. Say you put a termcap variable in your "~/.profile" or similar:

    export LESS_TERMCAP_so=$(printf '\33[5;30;43m')
    export LESS_TERMCAP_se=$(printf '\33[m')
    

    After that if you enter "set", the Termcap variables mess up your color output.

To switch to Terminfo, you can make a file "xterm-pretty.terminfo":

xterm-pretty|xterm with pretty colors,
# exit standout mode
  rmso=\e[m,
# begin standout mode
  smso=\e[5;30;43m,
# similar terminal
  use=xterm,

Compile and install the file:

tic xterm-pretty.terminfo

Add line to "~/.profile" or similar:

TERM=xterm-pretty