[comp.unix.sysv386] escape sequences for AT386

jka@radar0.larc.nasa.gov (J. Keith Alston) (01/10/91)

  Hello,
     I am attempting to modify the AT386 termcap (and/or terminfo) file
     to include:
	  1)  the escape sequence for entering graphics mode.

	  2) the escape sequence for leaving graphics mode.

	  3) the ASCII equivalents for the following graphics
	     characters needed to draw a box:

		 upper left corner
		 lower left corner
		 upper right corner
		 lower right corner
		 horizontal lines
		 vertical lines

       Does anyone out there know what these codes are?
       Are these codes video board or video mode specific?
       I am running Informix on a Compaq 386/33 with ISC 2.2
       and an Orchid prodesigner with 512k ram. Also I have
       a NEC multisync XL monitor.
       any help would be appreciated. Thank you
				 Keith Alston jka@radar0.larc.nasa.gov
-- 
"In this world you must be OH so smart or OH so pleasant...I recommend pleasant"
                                                 Elwood P. Dowd
--------------------------------------------------------------------------------
 J. Keith Alston                                + Internet:                 

bill@bilver.uucp (Bill Vermillion) (01/12/91)

In article <1991Jan9.174613.10175@news.larc.nasa.gov> jka@radar0.larc.nasa.gov (J. Keith Alston) writes:
>
>  Hello,
>     I am attempting to modify the AT386 termcap (and/or terminfo) file
>     to include:

I have found there appear to be some differences on the AT386
termcaps depeding on vendors.

But this works on Esix with an application package which need
these.

>	  1)  the escape sequence for entering graphics mode.
	ESC [ 12 m

>	  2) the escape sequence for leaving graphics mode.
	ESC [ 10 m

>	  3) the ASCII equivalents for the following graphics
>	     characters needed to draw a box:
 
>		 upper left corner
		332

>		 lower left corner
		300/Path

>		 upper right corner
		077   <- this was the one that didn't work as 
			supplied.  It should have been in the octal
			300 range - maybe app problem, driver prob,
			??? - but this works on mine.

>		 lower right corner
		300

>		 horizontal lines
		084   <- another oddly placed one.
		
>		 vertical lines
		263

-- 
Bill Vermillion - UUCP: uunet!tarpit!bilver!bill
                      : bill@bilver.UUCP

woods@eci386.uucp (Greg A. Woods) (01/12/91)

In article <1991Jan9.174613.10175@news.larc.nasa.gov> jka@radar0.larc.nasa.gov (J. Keith Alston) writes:
>   Hello,
>      I am attempting to modify the AT386 termcap (and/or terminfo) file
>      to include:

You mention ISC-2.2, so this may not work, but it'll give you some
clues.  Also, the console driver man pages give the details (i.e.
keyboard(7), display(7), etc.).  This terminfo is for the AT386
console as implemented on ISC's 386/ix 1.0.6.

Set TERMINFO to a test directory, export it, and tic -v the following:
---------------- cut here ----------------
#
#	Description for console emulated by 386/ix Virtual Terminal driver
#
#ident: %W%	%E% %U% %Q%
#
# woods@eci386.uucp - Sat Jan 14 10:32:09 EST 1989
#	- cobbled together from various old versions, driver headers,
#	  man pages, and lots of experimentation.
#
# woods@eci386 - Fri Jun  8 18:05:05 EST 1990
#	- added support for C-Scape
#

AT386|at386|at/386 console (ISC 386/ix 1.0.6),

# flags
	am, xon, bw, eo, xt,
	cols#80, lines#25,

# strings
	is2=\E[0;10;38m,
	bel=^G, cr=\r, ht=\t, cbt=\E[Z,
	clear=\Ec, home=\E[H,
	ed=\E[J, el=\E[K,
	vpa=\E[%p1%{1}%+%dd, hpa=\E[%p1%{1}%+%dG,
	cub=\E[%p1%dD, cub1=\b,
	cud=\E[%p1%dB, cud1=\n, 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,
	il=\E[%p1%dL, il1=\E[L,
	dch=\E[%p1%dP, dch1=\E[P,
	ich=\E[%p1%d@, ich1=\E[@,
	ind=\E[S, indn=\E[%p1%dS,
	ri=\E[T, rin=\E[%p1%dT,
	hts=\EH, tbc=\E[2g,
#    doesn't work
#	rep=%p1%c\E[%p2%{1}%-%db,

# keys
	kbs=\b, kcmd=\EN`,
	kcbt=^],
#   GreyPlus & Grey Minus
	kopn=\E[T, kclo=\E[S,
	kcuf1=\E[C, kcub1=\E[D, kcud1=\E[B, kcuu1=\E[A,
#   Shifted keys work only on the cursor pad
	kRIT=\E[c, kLFT=\E[d, ked=\E[b, kbeg=\E[a,
	knp=\E[U, kpp=\E[V,
#   NOTE:  shifted PgUp and PgDn defined as scroll keys
	kind=\E[u, kri=\E[v,
	khome=\E[H, kend=\E[Y,
	kHOM=\E[h, kEND=\E[y,
	kich1=\E[@, kdch1=\E[P, kprt=\E[L,
	kIC=\E[2, kDC=\E[p, kPRT=\E[l,
	ka1=\E[H, ka3=\E[V, kb2=\E[G, kc1=\E[Y, kc3=\E[U,
	kf1=\EOP,  kf2=\EOQ,  kf3=\EOR,  kf4=\EOS,  kf5=\EOT,  kf6=\EOU,
	kf7=\EOV,  kf8=\EOW,  kf9=\EOX,  kf10=\EOY, kf11=\EOZ, kf12=\EOA,
#   NOTE:  not the normal labels
	kf13=\EOp, kf14=\EOq, kf15=\EOr, kf16=\EOs, kf17=\EOt, kf18=\EOu,
	kf19=\EOv, kf20=\EOw, kf21=\EOx, kf22=\EOy, kf23=\EOz, kf24=\EOa,
#   misc. ALT keys
	kcpy=\ENc, kext=\ENe, kfnd=\ENf, khlp=\ENh, kil1=\ENi, kmrk=\ENm,
	kCPY=\ENC, kEXT=\ENE, kFND=\ENF, kHLP=\ENH,
	knxt=\ENn, kprv=\ENp, krpl=\ENr, kref=\ENs,
	kNXT=\ENN, kPRV=\ENP, kRPL=\ENR, ksav=\ENS,

# attributes
	rev=\E[7m, blink=\E[5m, bold=\E[1m,
	rmul=\E[0m, smul=\E[4m,
	rmso=\E[0m, smso=\E[7m,
	smacs=\E[12m, rmacs=\E[10m,
#	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;m,
	sgr=\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p6%t;1%;%?%p9%t;12%e;10%;%?%p7%t;9%;m,
	sgr0=\E[0;10m,

# cursor
#	civis=\E[8m, cvvis=, cnorm=,

# Alt Char set
	acsc=0[I'a2fxgqh0jYk?lZm@nEqDtCu4vAwBx3~y,
-- 
							Greg A. Woods
woods@{eci386,gate,robohack,ontmoh,tmsoft}.UUCP		ECI and UniForum Canada
+1-416-443-1734 [h]  +1-416-595-5425 [w]  VE3TCP	Toronto, Ontario CANADA
Political speech and writing are largely the defense of the indefensible-ORWELL