Skip to content

Instantly share code, notes, and snippets.

@dsh0005
Created March 29, 2022 18:58
Show Gist options
  • Save dsh0005/ea4d0b58de4820a5587fbb2b070f51d3 to your computer and use it in GitHub Desktop.
Save dsh0005/ea4d0b58de4820a5587fbb2b070f51d3 to your computer and use it in GitHub Desktop.
Add terminfo definitions for mintty
#!/bin/sh
wget https://invisible-island.net/datafiles/current/terminfo.src.gz
gunzip -k terminfo.src.gz
# https://invisible-island.net/ncurses/ncurses.faq.html#big_terminfo
tic -s -1 -I -e'mintty, mintty-direct, mintty+common,
xterm+256color, kitty+setal, xterm+direct, ansi+rep,
ecma+strikeout, ecma+index, vt420+lrmm, xterm+sm+1006,
xterm+pcfkeys, xterm+tmux, ecma+italics, xterm-basic,
xterm+app, xterm+pcf2, xterm+pcc2, xterm+pce2, ansi+pp,
xterm+kbs, xterm+alt+title, ansi+enq, att610+cvis, xterm+meta,
xterm+edit, xterm+px+edit,
xterm+tmux2' terminfo.src > mintty.src
echo "Now tic -s mintty.src to install it"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment