+#### mintty
+# https://github.com/mintty/mintty
+#
+# Originally a fork (and reduction) of PuTTY, this has grown from 15ksloc in
+# 2013 to 38ksloc in 2019. That is still smaller than PuTTY (160ksloc), but
+# larger than rxvt (31ksloc).
+#
+# Version 3.0 responds to DA as a VT400, however it does not implement the
+# application keypad. The assignment of cursor-keys versus modifiers differs
+# from xterm (alt-left and alt-right send modifier 7, i.e., alt+control).
+#
+# Thomas Wolff suggested these extensions:
+# blink2 turn on rapid blinking
+# blink0 turn off blinking
+# norm turn off bold and half-bright mode
+# opaq turn off blank mode
+# smul2 begin double underline mode
+# smol begin overline mode
+# rmol exit overline mode
+# Font0 use default font
+# Font1 use alternative font 1
+# ...
+# Font10 use alternative font 10
+# setal set (under)line color
+# ol set default (under)line color
+# overs overstrike (print characters over each other)
+#
+# but see vte-2018 (use Smol/Rmol rather than smol/rmol).
+mintty|Cygwin Terminal,
+ setal=\E[5%p1%dm, use=xterm+256color,
+ use=mintty+common,
+mintty-direct|Cygwin Terminal direct-color,
+ setal=\E[%?%p1%{8}%<%t5%p1%d%e58\:2\:\:%p1%{65536}%/%d\:%p1
+ %{256}%/%{255}%&%d\:%p1%{255}%&%d%;m,
+ use=xterm+direct, use=mintty+common,
+mintty+common|shared capabilities for mintty,
+ km@, npc,
+ kcbt=\E[Z, kent=\EOM, rmm@, rmpch=\E[10m,
+ rs1=\Ec\E]104\007, rshm=\E[22m, rsubm=\E[75m,
+ rsupm=\E[75m, smm@, smpch=\E[11m, sshm=\E[1\:2m,
+ ssubm=\E[74m, ssupm=\E[73m, Rmol=\E[55m, Smol=\E[53m,
+ Smulx=\E[4\:%p1%dm, blink2=\E[6m, norm=\E[22m,
+ opaq=\E[28m, smul2=\E[21m, use=ansi+rep,
+ use=ecma+strikeout, use=ecma+index, use=vt420+lrmm,
+ use=xterm+sm+1006, use=xterm+pcfkeys, use=xterm+tmux,
+ use=xterm-basic,
+# 2019-06-09: These capabilities are commented-out for compatibility with
+# existing releases 5.9-6.1, and may be considered for inclusion after the
+# release of ncurses 6.2:
+# Font0=\E[10m,
+# Font1=\E[11m,
+# Font2=\E[12m,
+# Font3=\E[13m,
+# Font4=\E[14m,
+# Font5=\E[15m,
+# Font6=\E[16m,
+# Font7=\E[17m,
+# Font8=\E[18m,
+# Font9=\E[19m,
+# Font10=\E[20m,
+# blink0=\E[25m,
+# ol=\E[59m,
+# overs=\E[8\:7m,
+