| Newsgroups: |  comp.sys.palmtops | 
| Path: |  icdoc!dds | 
| From: |  dds@doc.ic.ac.uk (Diomidis Spinellis) | 
| Subject: |  Termcap entry for the HP-95LX | 
| Message-ID: |  <1992May11.203144.6148@doc.ic.ac.uk> | 
| Keywords: |  vi more termcap ansi | 
| Sender: |  usenet@doc.ic.ac.uk | 
| Nntp-Posting-Host: |  dirty.doc.ic.ac.uk | 
| Organization: |  Dept. of Computing, Imperial College, London, UK | 
| Date: |  Mon, 11 May 1992 20:31:44 GMT | 
| Lines: |  49 | 
| Content-Length: |  2051 | 
Yesterday I crafted a termcap entry for the HP-95LX.  It is more
complicated than adjusting rows and columns, because it has to
work on the bottom left corner of the screen, rather than the top
left for scrolling to work (you still need dispctl -c).  I had vi 
working without a problem with the following script:
dispctl -c
rvi %1 %2 %3 %4 %5 %6 %7 %8 %9
dispctl +c
The terminal emulation file I was using, was nansi.sys (recently posted
to comp.binaries.ibm.pc), but ansi.sys should also work.  Here is the
termcap file:
# Termcap entry written by Diomidis Spinellis <dds@doc.ic.ac.uk>
# Nansi is a shareware program by Daniel Kegel <dank@blacks.jpl.nasa.gov>
nansi|MS-DOS NANSI.SYS driver:\
	:co#80:li#25:\
	:AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:sc=\E[s:rc=\E[u:\
	:am:bs:mi:ms:ce=\E[K:cl=\E[2J:cm=\E[%i%d;%dH:\
	:UP=\E[%dA:DO=\E[%dB:ND=\E[%dC:LE=\E[%dD:\
	:up=\E[A:do=\E[B:nd=\E[C:le=\E[D:ho=\E[H:\
	:se=\E[m:so=\E[7m:us=\E[4m:ue=\E[m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:\
	:kb=^h:ku=\200H:kd=\200P:kl=\200K:kr=\200M:kh=\200G:kn#9:\
	:k1=\200\073:k2=\200\074:k3=\200:\075:k4=\200:\076:\k5=\200\077:\
	:k6=\200\100:k7=\200\101:k8=\200\102:k9=\200\103:k0=\200\104:\
	:xt:
hp95|Hewlett Packard 95 LX using nansi.sys:\
	:li#16:co#40:HC:am@:da:db:cl=\E[2J\E[9B:cm=\E[%i%d;%dH\E[9B:\
	:ho@:tc=nansi:
ibmans|MS-DOS ANSI driver:\
	:am:bs:ce=\E[K:cl=\E[2J:cm=\E[%i%d;%dH:co#80:\
	:do=\E[B:ho=\E[H:li#25:mi:nd=\E[C:\
	:ms:se=\E[m:so=\E[7m:up=\E[A:\
	:kb=^h:ku=\200H:kd=\200P:kl=\200K:kr=\200M:kh=\200G:kn#9:\
	:k1=\200\073:k2=\200\074:k3=\200:\075:k4=\200:\076:\k5=\200\077:\
	:k6=\200\100:k7=\200\101:k8=\200\102:k9=\200\103:k0=\200\104:\
	:xt
hp95a|Hewlett Packard 95 LX using ansi.sys:\
	:li#16:co#40:HC:am@:da:db:cl=\E[2J\E[9B:cm=\E[%i%d;%dH\E[9B:\
	:ho@:tc=ibmans:
su|dumb|un|unknown:co#80:os:am:
I hope you will find it useful,
Diomidis
-- 
Diomidis Spinellis    Internet: <dds@doc.ic.ac.uk>    UUCP: ...!ukc!icdoc!dds
Department of Computing, Imperial College, London SW7     #include "/dev/tty"
Newsgroup comp.sys.palmtops contents 
Newsgroup list 
Diomidis Spinellis home page
 
Unless otherwise expressly stated, all original material on this page created by Diomidis Spinellis is licensed under a Creative Commons Attribution-Share Alike 3.0 Greece License.