Sunday, October 18, 2020

A nice terminfo definition

TERM=xterm-256color infocmp >~/.terminfo/mhterm.terminfo


# 1. change name to mhterm
# 2. get rid of rmcup
# 3. get rid of smcup

TERM=xterm-256color infocmp |
    sed \
      -e 's/^#.*Reconstructed.*$/# xterm customized by marhar/' \
      -e 's/^xterm-256color.*$/mhterm|marhar customized xterm,/' \
      -e 's/rmcup[^,]*,//' \
      -e 's/smcup[^,]*,//' \
      >~/.terminfo/mhterm.terminfo

tic ~/.terminfo/mhterm.terminfo

export TERM=mhterm

No comments: