Interix (originally named OpenNT) is part of the second POSIX subsystem for Windows NT, which came with Windows 7 Ultimate Edition, variously known as Services for Unix/Subsystem for Unix Applications. It provides a terminal emulator that operates in Windows consoles.
Unfortunately, almost no shipped termcap or terminfo entry on Debian, FreeBSD/PC-BSD, or even Interix itself, correctly describes the terminal protocol. These are corrected termcap and terminfo records.
(Abbreviations here refer to the ECMA-48 and ISO ISO 8613-6:1994/ITU T.416:1993 control codes and sequences.)
Neither BS nor CUB wrap back over the left margin.
The bw
(auto left margin) field is not correct.
The extended keys produce mostly the same control sequences as they do on the SCO XENIX console.
The Delete key generates DEL, not CSI M
.
This is what the kdch1
(kD
) field should be set to.
The khome
(kh
) field should be set to CSI H
.
However, the End key generates CSI U
, not CSI F
as on the SCO XENIX console.
Moreover, the correct termcap field for this is kll
(kH
).
There is no kU
field, in fact.
The correct encoding of CUF (in the RI
field) is \E[%dC
not \E%dC
.
The correct encoding of SU (in the SF
field) is \E[%dS
not \E%S
.
interix|opennt|opennt-25|ntconsole|ntconsole-25|OpenNT-term compatible with color:\ :am:mi:ms:\ :co#80:Co#8:pa#64:\ :AF=\E[3%p1%dm:AB=\E[4%p1%dm:\ :AL=\E[%dL:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:\ :al=\E[L:bl=^G:bt=\E[Z:\ :cd=\E[J:ce=\E[K:cl=\E[2J:cm=\E[%i%d;%dH:dl=\E[M:do=^J:\ :ho=\E[H:\ :k0=\EFA:k1=\EF1:k2=\EF2:k3=\EF3:k4=\EF4:k5=\EF5:\ :k6=\EF6:k7=\EF7:k8=\EF8:k9=\EF9:\ :kN=\E[T:kP=\E[S:kH=\E[U:kb=^H:kd=\E[B:kD=\E[M:kh=\E[U:kI=\E[L:\ :kl=\E[D:kr=\E[C:ku=\E[A:\ :le=\E[D:ll=\E[U:md=\E[1m:me=\E[0m:mr=\E[7m:\ :nd=\E[C:nw=^M^J:rc=\E[u:RI=\E[%dC:rs=\Ec:\ :sc=\E[s:se=\E[m:sf=\E[S:SF=\E[%dS:so=\E[1m:sr=\E[T:SR=\E[%dT:\ :ta=^I:te=\E[2b\E[u\r\E[K:ti=\E[s\E[1b:\ :ue=\E[m:up=\E[A:UP=\E[%dA:us=\E[4m:
interix|opennt|opennt-25|ntconsole|ntconsole-25|OpenNT-term compatible with color, am, msgr, colors#8, cols#80, lines#25, ncv#3, pairs#64, acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376, bel=^G, bold=\E[1m, cbt=\E[Z, clear=\E[2J, cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL, il1=\E[L, ind=\E[S, indn=\E[%p1%dS, kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177, kend=\E[U, kf0=\EFA, kf1=\EF1, kf2=\EF2, kf3=\EF3, kf4=\EF4, kf5=\EF5, kf6=\EF6, kf7=\EF7, kf8=\EF8, kf9=\EF9, kf10=\EFA, kf11=\EFB, kf12=\EFC, kf13=\EFD, kf14=\EFE, kf15=\EFF, kf16=\EFG, kf17=\EFH, kf18=\EFI, kf19=\EFJ, kf20=\EFK, kf21=\EFL, kf22=\EFM, kf23=\EFN, kf24=\EFO, kf25=\EFP, kf26=\EFQ, kf27=\EFR, kf28=\EFS, kf29=\EFT, kf30=\EFU, kf31=\EFV, kf32=\EFW, kf33=\EFX, kf34=\EFY, kf35=\EFZ, kf36=\EFa, kf37=\EFb, kf38=\EFc, kf39=\EFd, kf40=\EFe, kf41=\EFf, kf42=\EFg, kf43=\EFh, kf44=\EFi, kf45=\EFj, kf46=\EFk, kf47=\EFm, kf48=\EFn, kf49=\EFo, kf50=\EFp, kf51=\EFq, kf52=\EFr, kf53=\EFs, kf54=\EFt, kf55=\EFu, kf56=\EFv, kf57=\EFw, kf58=\EFx, kf59=\EFy, kf60=\EFz, kf61=\EF+, kf62=\EF-, kf63=\EF\014, kf64=\EF$, khome=\E[H, kich1=\E[L, kll=\E[U, knp=\E[T, kpp=\E[S, ll=\E[U, nel=^M^J, op=\E[m, rc=\E[u, rev=\E[7m, ri=\E[T, rin=\E[%p1%dT, rmcup=\E[2b\E[u\r\E[K, rmso=\E[m, rmul=\E[m, rs1=\Ec, sc=\E[s, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, setb=\E[%p1%'('%+%dm, setf=\E[%p1%{30}%+%dm, sgr0=\E[0m, smcup=\E[s\E[1b, smso=\E[1m, smul=\E[4m,