Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2003 12:01:00 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        bms@spc.org
Cc:        kientzle@acm.org
Subject:   Re: HEADS UP: /bin and /sbin are now dynamically linked
Message-ID:  <20031122.120100.16269141.imp@bsdimp.com>
In-Reply-To: <20031121010211.GD84421@saboteur.dek.spc.org>
References:  <p0600201fbbdeea6a2dc1@[128.113.24.47]> <3FBD5CCE.40905@acm.org> <20031121010211.GD84421@saboteur.dek.spc.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20031121010211.GD84421@saboteur.dek.spc.org>
            Bruce M Simpson <bms@spc.org> writes:
: On Thu, Nov 20, 2003 at 04:31:10PM -0800, Tim Kientzle wrote:
: >  * /rescue/vi is currently unusable if /usr is missing because
: >    the termcap database is in /usr.  One possibility
: >    would be to build a couple of default termcap entries
: >    into ncurses or into vi.
: 
: My suggested candidates are vt100 and cons25. The comconsole port installs
: an /etc/ttys entry using vt100. This is also the default terminal type for
: most dialup entries.

Timing Solutions uses the following minimal termcap for its embedded
applications.  It has a number of terminals that it supports, while
still being tiny.  it is 3.5k in size, which was the goal ( < 4k block
size we were using).  One could SED this down by another 140 bytes or
so.  Removing the comments and the verbose names would net another 300
odd bytes.

The terminals supported are vt220, vt102, vt100, xterm, xterms,
cons25w, cons25 and ansi.  This seems a reasonable number: neither too
few, nor too many.  It lets people connect 'normal' terminals to the
serial port (most PCs have vt100/vt220 emulation), as well as PC to PC
connection on the console or xterm.

I'd be happy to commit this as /etc/termcap.tiny.  vi could then look
for both termcap and termcap.tiny and things would just work.

Comments?

Warner

vt200|vt220|vt220am|vt200am|dec-vt220|dec-vt200|dec vt200 series with jump scroll:\
	:@7=\E[4~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kh=\E[1~:\
	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
	:k1=\E[11~:k2=\E[12~:k3=\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100 with no padding (for psl games):\
	:do=\E[B:cl=\E[H\E[J:sf=\ED:as=\E(0:ae=\E(B:\
	:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:nw=\EE:\
	:ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
	:md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:sr=\EM:\
	:sc=\E7:rc=\E8:cs=\E[%i%d;%dr:UP=\E[%dA:DO=\E[%dB:RI=\E[%dC:\
	:LE=\E[%dD:ct=\E[3g:st=\EH:tc=vt100-am:
xterm|vs100|xterm terminal emulator (X window system):\
	:li#65:\
	:kh=\EOH:@7=\EOF:kb=^H:kD=^?:\
	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:km:\
	:is=\E>\E[?1;3;4;5l\E[?7;8h\E[1;65r\E[65;1H:\
	:rs=\E>\E[?1;3;4;5l\E[?7;8h:\
	:tc=vt220:
xterms|vs100s|xterm terminal emulator (small)(X window system):\
	:is=\E>\E[?1;3;4;5l\E[?7;8h\E[1;24r\E[24;1H:\
	:li#24:tc=xterm:
# for syscons
# common entry without semigraphics
cons25w|ansiw|ansi80x25-raw:\
	:al=\E[L:am:bs:NP:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:co#80:\
	:dc=\E[P:dl=\E[M:do=\E[B:bt=\E[Z:ho=\E[H:ic=\E[@:li#25:cb=\E[1K:\
	:ms:nd=\E[C:pt:rs=\E[x\E[m\Ec:so=\E[7m:se=\E[m:up=\E[A:\
	:pa#64:Co#8:AF=\E[3%dm:AB=\E[4%dm:op=\E[x:sc=\E7:rc=\E8:\
	: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:F1=\E[W:F2=\E[X:K2=\E[E:nw=\E[E:ec=\E[%dX:\
	:kb=^H:kh=\E[H:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:le=^H:eo:sf=\E[S:sr=\E[T:\
	:kN=\E[G:kP=\E[I:@7=\E[F:kI=\E[L:kD=\177:kB=\E[Z:\
	:IC=\E[%d@:DC=\E[%dP:SF=\E[%dS:SR=\E[%dT:AL=\E[%dL:DL=\E[%dM:\
	:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:cv=\E[%i%dd:ch=\E[%i%d`:bw:\
	:mb=\E[5m:md=\E[1m:mh=\E[30;1m:mr=\E[7m:me=\E[m:bl=^G:ut:it#8:km:
cons25|ansis|ansi80x25:\
	:ac=l\332m\300k\277j\331u\264t\303v\301w\302q\304x\263n\305`^Da\260f\370g\361~\371.^Y-^Xh\261I^U0\333y\363z\362:\
	:tc=cons25w:
dosansi|ANSI.SYS standard crt:\
	:am:bs:ce=\E[K:cl=\E[2J:cm=\E[%i%d;%dH:co#80:\
	:do=\E[B:li#25:mi:nd=\E[C:\
	:se=\E[m:so=\E[7m:up=\E[A:us=\E[4m:ue=\E[m:\
	:md=\E[1m:mh=\E[m:mb=\E[5m:me=\E[m:\
	:kh=\EG:kb=^h:ku=\EH:kd=\EP:kl=\EK:kr=\EM:\
	:k1=\E;:k2=\E<:k3=\E=:k4=\E>:k5=\E?:\
	:k6=\E@:k7=\EA:k8=\EB:k9=\EC:k0=\ED:
network|dialup|du|dumb|un|unknown:\
	:am:co#80:do=^J:
ansi|any ansi terminal with pessimistic assumptions:\
	:co#80:li#24:cl=50\E[;H\E[2J:bs:am:cm=\E[%i%d;%dH:\
	:nd=\E[C:up=\E[A:ce=\E[K:ho=\E[H:pt:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031122.120100.16269141.imp>