Subject: Re: emulating SCO-TERM on NetBSD console?
To: Michael Smith <smithm@netapps.com.au>
From: Carl Brewer <carl@bl.echidna.id.au>
List: netbsd-users
Date: 04/25/2007 22:18:10
Michael Smith wrote:
>
> I don't claim to have the whole answer however:
>
> /etc/ttys
>
> ...contains...
>
> console "/usr/libexec/getty Pc" vt100 on secure
> ttyE0 "/usr/libexec/getty Pc" vt220 off secure
>
> ...and so on.
>
> According to the man page the type field "vt100" is defined by the termcap file:
>
> /usr/share/misc/termcap
>
> Which includes:
>
> # SCO console and SOS-Syscons console for 386bsd
> # (scoansi: had unknown capabilities
> # :Gc=N:Gd=K:Gh=M:Gl=L:Gu=J:Gv=\072:\
> # :GC=E:GD=B:GH=D:GL=\64:GU=A:GV=\63:GR=C:
> # :G1=?:G2=Z:G3=@:G4=Y:G5=;:G6=I:G7=H:G8=<:\
> # :CW=\E[M:NU=\E[N:RF=\E[O:RC=\E[P:\
> # :WL=\E[S:WR=\E[T:CL=\E[U:CR=\E[V:\
> # I renamed GS/GE/HM/EN/PU/PD/RT and added klone+sgr-dumb, based
> # on the :as:=\E[12m -- esr)
> scoansi|SCO Extended ANSI standard crt:\
> :am:bs:eo:xo:\
> :co#80:it#8:li#25:\
> :@7=\E[F:al=\E[L:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:\
> :cm=\E[%i%d;%dH:dc=\E[P:dl=\E[M:do=\E[B:ei=:ho=\E[H:\
> :ic=\E[@:im=:k1=\E[M:k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:\
> :k6=\E[R:k7=\E[S:k8=\E[T:k9=\E[U:k;=\E[V:kN=\E[G:kP=\E[I:\
> :kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=\E[D:\
> :mb=\E[5m:md=\E[1m:nd=\E[C:sf=\E[S:sr=\E[T:ta=^I:up=\E[A:\
> :tc=klone+sgr-dumb:
>
>
> So could you put scoansi as a terminal type in /etc/ttys ?
the box is an hour from here, so it's hard for me to test it,
but can anyone confirm if that would break the NetBSD console
or if it'd would 'just work'?
> (cross fingers, its really just a guess).
Understood. I can try it on a spare opensolaris box I
have here, but I don't have a spare NetBSD server at the moment :-/