Return to index.
The HyperTerminal applet came built-in with many Windows versions from 95 to XP and offered terminal emulation for serial and Telnet connections. Yet throughout its life, it somehow never made it to the Ncurses "terminfo" database, despite being substantially different from the existing generic entries therein (and despite terminfo having dedicated entries for various other software terminal emulators), which leads to all sorts of graphical malfunctions when one attempts to use it with the default TERM=ansi
.
Instead, copy the following to hypertrm.ti
(making sure to keep the subsequent lines indented):
hypertrm|Windows XP HyperTerminal ANSI/ANSIW mode, am, bce, bw, eo, msgr, npc, colors#8, cols#80, it#8, lines#24, ncv#21, pairs#64, ht=^I, cr=^M, bel=^G, sgr=\E[0%?%p1%t;2;7%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;30;1%;%?%p6%t;1%;m, sgr0=\E[m, setaf=\E[3%p1%dm, setab=\E[4%p1%dm, bold=\E[1m, blink=\E[5m, rev=\E[7m, invis=\E[8m, dim=\E[30;1m, smul=\E[4m, rmul=\E[24m, smso=\E[7m, rmso=\E[27m, cuu=\E[%p1%dA, cuu1=\E[A, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, cub=\E[%p1%dD, cub1=^H, cup=\E[%i%p1%d;%p2%dH, home=\E[H, dl=\E[%p1%dM, dl1=\E[M, dch=\E[%p1%dP, dch1=\E[P, ed=\E[J, el=\E[K, el1=\E[1K, sc=\E[s, rc=\E[u, nel=\EE, ri=\EM, hts=\EH, tbc=\E[3g, clear=\E[H\E[J, op=\E[x, rs2=\E[x\E[m\Ec, kbs=^H, kdch1=\177, khome=\E[H, kend=\e[K, kcuu1=\e[A, kcud1=\e[B, kcuf1=\e[C, kcub1=\e[D, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
and compile with tic hypertrm.ti on the destination machine. (With Linux Ncurses the compiled output will be stored in ~/.terminfo/
; on other operating systems you will usually need to be root.)
If using HyperTerminal for Telnet, don't forget to change the terminal emulation mode in the 'Properties' dialog – select "ANSI" as the mode, but manually fill in hypertrm as the Telnet terminal identifier. For serial console, just manually "export TERM=hypertrm".
Only features supported by HyperTerminal in Windows XP are present in this terminfo definition. That is, Home/End keys are supported but PageUp/PageDown are not, and only function keys F1 to F4 work. The commercial "HyperTerminal Private Edition" would need a separate definition (or may work with the standard vt220
).