usr/src/cmd/lp/terminfo/ibm.ti
changeset 13444 c1ed50709bff
parent 13443 76ab5b799560
child 13445 4dad26dd1fb9
equal deleted inserted replaced
13443:76ab5b799560 13444:c1ed50709bff
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License, Version 1.0 only
       
     6 # (the "License").  You may not use this file except in compliance
       
     7 # with the License.
       
     8 #
       
     9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
    10 # or http://www.opensolaris.org/os/licensing.
       
    11 # See the License for the specific language governing permissions
       
    12 # and limitations under the License.
       
    13 #
       
    14 # When distributing Covered Code, include this CDDL HEADER in each
       
    15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    16 # If applicable, add the following below this CDDL HEADER, with the
       
    17 # fields enclosed by brackets "[]" replaced with your own identifying
       
    18 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    19 #
       
    20 # CDDL HEADER END
       
    21 #
       
    22 #	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
       
    23 #	  All Rights Reserved
       
    24 
       
    25 
       
    26 #ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.2	*/
       
    27 
       
    28 ######################################################################
       
    29 #
       
    30 # Generic entries for the various IBM printers and emulations.
       
    31 #
       
    32 
       
    33 ###################################
       
    34 #
       
    35 # IBM Graphics
       
    36 #
       
    37 
       
    38 #
       
    39 # Basic capabilities:
       
    40 #
       
    41 Gibmg+basic,
       
    42 
       
    43 	cols#80,
       
    44 	lines#66,
       
    45 	it#8,
       
    46 
       
    47 	cpix,
       
    48 	orc#1,
       
    49 	orhi#10,
       
    50 	orl#12,
       
    51 	orvi#72,
       
    52 
       
    53 	cr=^M,
       
    54 	ff=^L,
       
    55 	ht=^I,
       
    56 	cud1=^J,
       
    57 	cuf1=\s,
       
    58 
       
    59 	cpi=%?%p1%{10}%=%t^R%e%p1%{16}%=%p1%{17}%=%O%t^O%;,
       
    60 	cvr=%?%p1%{0}%>%p1%{256}%<%&%t\EA%p1%c\E2%;,
       
    61 
       
    62 	is1=^X,
       
    63 	is2=^R\EA\014\E2\EF\EH\EW0\ET\E-0\E7\EO\ECB,
       
    64 
       
    65 	csnm=%?%p1%{0}%=%tcharacter_set_1%e%p1%{1}%=%tcharacter_set_2%;,
       
    66 	scs=%?%p1%{0}%=%t\E7%e%p1%{2}%=%t\E6%;,
       
    67 
       
    68 	smso=\EE,
       
    69 	rmso=\EF,
       
    70 	smul=\E-1,
       
    71 	rmul=\E-0,
       
    72 	bold=\EG,
       
    73 	smacs=\E6,
       
    74 	rmacs=\E7,
       
    75 	sshm=\EE,
       
    76 	rshm=\EF,
       
    77 	ssubm=\ES1,
       
    78 	rsubm=\ET,
       
    79 	ssupm=\ES0,
       
    80 	rsupm=\ET,
       
    81 	swidm=\EW1,
       
    82 	rwidm=\EW0,
       
    83 	sgr0=\EF\E-0\EH\E7\ET\EW0,
       
    84 	sgr=%?%p1%t\EE%e\EF%;%?%p2%t\E-1%e\E-0%;%?%p6%t\EG%e\EH%;%?%p9%t\E6%e\E7%;,
       
    85 	sdrfq=\EH,
       
    86 	snlq=\EG,
       
    87 
       
    88 #   slines=  u9 used for svr3.2
       
    89 	u9=%?%p1%{0}%>%p1%{128}%<%&%t\EC%p1%c%;,
       
    90 	slines=%?%p1%{0}%>%p1%{128}%<%&%t\EC%p1%c%;,
       
    91 
       
    92 #
       
    93 # Graphics capabilities (low resolution, 9-pin):
       
    94 #
       
    95 Gibmg+low,
       
    96 
       
    97 	npins#8,
       
    98 	spinv#72,
       
    99 	spinh#60,
       
   100 
       
   101 	porder=1\,2\,3\,4\,5\,6\,7\,8;0,
       
   102 
       
   103 	sbim=\EK%p1%{256}%m%c%p1%{256}%/%c,
       
   104 
       
   105         bitwin#1,
       
   106 	u1=1,
       
   107         bitype#1,
       
   108 	u2=1,
       
   109 
       
   110 #   defbi=
       
   111 #	Set the line spacing to 8/72 inch (9 lines per inch)
       
   112 #	to get 72 dots per inch vertically (9 lines/inch * 8 pins/line).
       
   113 #	Set the character spacing to pica (1/10 inch or 10 characters
       
   114 #	per inch); at 60 dots per inch horizontally this means 6
       
   115 #	dots per character.
       
   116 #	The IBM Graphics doesn't have parameterized motion,
       
   117 #	so we simulate it with linefeeds and spaces.
       
   118 #	Assume we never need to move across more than 63 colums
       
   119 #	or down more than 31 lines. 
       
   120 #	THIS ASSUMES WE START AT THE TOP OF THE PAGE! (although
       
   121 #	maybe not in the first column.)
       
   122 	u6=%?%p5%{1}%=%t\EA\010\E2^R%p2%{8}%/%Py%?%gy%{15}%>%t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n%gy%{16}%-%Py%;%?%gy%{7}%>%t\n\n\n\n\n\n\n\n%gy%{8}%-%Py%;%?%gy%{3}%>%t\n\n\n\n%gy%{4}%-%Py%;%?%gy%{1}%>%t\n\n%gy%{2}%-%Py%;%?%gy%{0}%>%t\n%;\r%p1%{6}%/%Px%?%gx%{31}%>%t                                %gx%{32}%-%Px%;%?%gx%{15}%>%t                %gx%{16}%-%Px%;%?%gx%{7}%>%t        %gx%{8}%-%Px%;%?%gx%{3}%>%t    %gx%{4}%-%Px%;%?%gx%{1}%>%t  %gx%{2}%-%Px%;%?%gx%{0}%>%t %;%;,
       
   123 	defbi=%?%p5%{1}%=%t\EA\010\E2^R%p2%{8}%/%Py%?%gy%{15}%>%t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n%gy%{16}%-%Py%;%?%gy%{7}%>%t\n\n\n\n\n\n\n\n%gy%{8}%-%Py%;%?%gy%{3}%>%t\n\n\n\n%gy%{4}%-%Py%;%?%gy%{1}%>%t\n\n%gy%{2}%-%Py%;%?%gy%{0}%>%t\n%;\r%p1%{6}%/%Px%?%gx%{31}%>%t                                %gx%{32}%-%Px%;%?%gx%{15}%>%t                %gx%{16}%-%Px%;%?%gx%{7}%>%t        %gx%{8}%-%Px%;%?%gx%{3}%>%t    %gx%{4}%-%Px%;%?%gx%{1}%>%t  %gx%{2}%-%Px%;%?%gx%{0}%>%t %;%;,
       
   124 
       
   125 #   endbi=
       
   126 	u7=\EA\014\E2,
       
   127 	endbi=\EA\014\E2,
       
   128 
       
   129 #   binel=
       
   130 	u5=\n\r%p1%{6}%/%Px%?%gx%{31}%>%t                                %gx%{32}%-%Px%;%?%gx%{15}%>%t                %gx%{16}%-%Px%;%?%gx%{7}%>%t        %gx%{8}%-%Px%;%?%gx%{3}%>%t    %gx%{4}%-%Px%;%?%gx%{1}%>%t  %gx%{2}%-%Px%;%?%gx%{0}%>%t %;,
       
   131 	binel=\n\r%p1%{6}%/%Px%?%gx%{31}%>%t                                %gx%{32}%-%Px%;%?%gx%{15}%>%t                %gx%{16}%-%Px%;%?%gx%{7}%>%t        %gx%{8}%-%Px%;%?%gx%{3}%>%t    %gx%{4}%-%Px%;%?%gx%{1}%>%t  %gx%{2}%-%Px%;%?%gx%{0}%>%t %;,
       
   132 
       
   133 #   bicr=
       
   134 	u3=\r%p1%{6}%/%Px%?%gx%{31}%>%t                                %gx%{32}%-%Px%;%?%gx%{15}%>%t                %gx%{16}%-%Px%;%?%gx%{7}%>%t        %gx%{8}%-%Px%;%?%gx%{3}%>%t    %gx%{4}%-%Px%;%?%gx%{1}%>%t  %gx%{2}%-%Px%;%?%gx%{0}%>%t %;,
       
   135 	bicr=\r%p1%{6}%/%Px%?%gx%{31}%>%t                                %gx%{32}%-%Px%;%?%gx%{15}%>%t                %gx%{16}%-%Px%;%?%gx%{7}%>%t        %gx%{8}%-%Px%;%?%gx%{3}%>%t    %gx%{4}%-%Px%;%?%gx%{1}%>%t  %gx%{2}%-%Px%;%?%gx%{0}%>%t %;,
       
   136 
       
   137 ###################################
       
   138 #
       
   139 # IBM Color 
       
   140 #
       
   141 
       
   142 #
       
   143 # Basic capabilities:
       
   144 #
       
   145 Gibmc+basic,
       
   146 
       
   147 	cub1=\b,
       
   148 
       
   149 	is1=^Q^X,
       
   150 	is2=^R\EA\014\E2\EF\EH\EW0\ET\E-0\E7\EO\ER\E50\EM0\EX^A\210\Eb\ECB,
       
   151 
       
   152 	cvr=%?%p1%{0}%>%p1%{256}%<%&%t\E3%p1%c%;,
       
   153 
       
   154 	smglp=\EX%p1%{1}%+%c%p2%{1}%+%c,
       
   155 
       
   156 	use=Gibmg+basic,
       
   157 
       
   158 #
       
   159 # Graphics capabilities (low resolution, 9-pin, 5:6 aspect ratio):
       
   160 #
       
   161 Gibmc+low+5x6,
       
   162 
       
   163 	spinv#84,
       
   164 	spinh#70,
       
   165 
       
   166 #   defbi=
       
   167 #	Set 5:6 aspect ratio.
       
   168 #	Set the line spacing to 7/72 inch (10.29 lines per inch)
       
   169 #	to get approximately 84 dots per inch vertically
       
   170 #	(10.29 lines/inch * 8 pins/line equals 82.28 dots per inch).
       
   171 #	Set the character spacing to pica (1/10 inch or 10 characters
       
   172 #	per inch); at 70 dots per inch horizontally this means 7
       
   173 #	dots per character.
       
   174 #	Set vertical and horizontal tab stops at the upper left corner
       
   175 #	of the image, then tab to the upper left corner.
       
   176 #	Note: $<> is a true null (only works with special Curses routine).
       
   177 #	THIS ASSUMES WE START AT THE TOP OF THE PAGE! (although
       
   178 #	maybe not in the first column.)
       
   179 	u6=%?%p5%{1}%=%t\En^B\E1^R\EB%p2%{8}%/%c$<>\ED%p1%{7}%/%c$<>\013\r\t%;,
       
   180 	defbi=%?%p5%{1}%=%t\En^B\E1^R\EB%p2%{8}%/%c$<>\ED%p1%{7}%/%c$<>\013\r\t%;,
       
   181 
       
   182 #   binel=
       
   183 	u5=\n\r\t,
       
   184 	binel=\n\r\t,
       
   185 
       
   186 #   bicr=
       
   187 	u3=\r\t,
       
   188 	bicr=\r\t,
       
   189 
       
   190 	use=Gibmg+low,
       
   191 
       
   192 #
       
   193 # Graphics capabilities (low resolution, 9-pin, 1:1 aspect ratio):
       
   194 #
       
   195 Gibmc+low+1x1,
       
   196 
       
   197 	spinh#84,
       
   198 
       
   199 #   defbi=
       
   200 #	Set 1:1 aspect ratio.
       
   201 #	Set the line spacing to 7/72 inch (10.29 lines per inch)
       
   202 #	to get approximately 84 dots per inch vertically
       
   203 #	(10.29 lines/inch * 8 pins/line equals 82.28 dots per inch).
       
   204 #	Set the character spacing to pica (1/10 inch or 10 characters
       
   205 #	per inch); at 84 dots per inch horizontally this means 8.4
       
   206 #	dots per character.
       
   207 #	Set vertical and horizontal tab stops at the upper left corner
       
   208 #	of the image, then tab to the upper left corner.
       
   209 #	Note: $<> is a true null (only works with special Curses routine).
       
   210 #	THIS ASSUMES WE START AT THE TOP OF THE PAGE! (although
       
   211 #	maybe not in the first column.)
       
   212 	u6=%?%p5%{1}%=%t\En^A\E1^R\EB%p2%{8}%/%c$<>\ED%p1%{10}%*%{84}%/%c$<>\013\r\t%;,
       
   213 	defbi=%?%p5%{1}%=%t\En^A\E1^R\EB%p2%{8}%/%c$<>\ED%p1%{10}%*%{84}%/%c$<>\013\r\t%;,
       
   214 
       
   215 	use=Gibmc+low+5x6,
       
   216 
       
   217 #
       
   218 # Color capability:
       
   219 #
       
   220 Gibmc+color,
       
   221 
       
   222 	colors#3,
       
   223 
       
   224 #   setcolor=
       
   225 	initc=%?%p1%{0}%=%t\Eb%;%?%p1%{1}%=%t\Ec%;%?%p1%{2}%=%t\Em%;%?%p1%{3}%=%t\Ey%;,
       
   226 
       
   227 #   colornm=
       
   228 	u8=%?%p1%{0}%=%tblack%;%?%p1%{1}%=%tcyan%;%?%p1%{2}%=%tmagenta%;%?%p1%{3}%=%tyellow%;%?%p1%{4}%=%torange=yellow+magenta%;%?%p1%{5}%=%tgreen=yellow+cyan%;%?%p1%{6}%=%tviolet=magenta+cyan%;%?%p1%{7}%=%tbrown=magenta+black%;,
       
   229 	colornm=%?%p1%{0}%=%tblack%;%?%p1%{1}%=%tcyan%;%?%p1%{2}%=%tmagenta%;%?%p1%{3}%=%tyellow%;%?%p1%{4}%=%torange=yellow+magenta%;%?%p1%{5}%=%tgreen=yellow+cyan%;%?%p1%{6}%=%tviolet=magenta+cyan%;%?%p1%{7}%=%tbrown=magenta+black%;,
       
   230 
       
   231 ###################################
       
   232 #
       
   233 # IBM Proprinter XL:
       
   234 #
       
   235 #	This printer appears to be a superset of the IBM Graphics
       
   236 #	and IBM Color printers, with a 24-wire printhead. The entry
       
   237 #	below uses the full capabilities of the superset and printhead.
       
   238 #	The printer has an Alternate Graphics Mode (AGM) that changes
       
   239 #	the vertical resolution from 1/216" to 1/180", and the graphics
       
   240 #	aspect ratio from 5:6 to 1:1. HOWEVER, there does not appear to
       
   241 #	be a control sequence that switches into this mode--it must be
       
   242 #	done by hand!
       
   243 #
       
   244 
       
   245 #
       
   246 # Basic capabilities (printer not in AGM):
       
   247 #
       
   248 Gibmxl+basic,
       
   249 
       
   250 	orc#12,
       
   251 	orhi#120,
       
   252 	orl#36,
       
   253 	orvi#216,
       
   254 
       
   255 	cub1=\b,
       
   256 
       
   257 	cpi=%?%p1%{10}%=%t^R%e%p1%{12}%=%t\E:%e%p1%{17}%=%t^O%;,
       
   258 	cvr=%?%p1%{0}%>%p1%{256}%<%&%t\E3%p1%c%;,
       
   259 
       
   260 	is1=^Q^X,
       
   261 	is2=^R\EP0\EA\014\E2\EC\102\EO\ER\Eb\E50\EF\EH\EW0\ET\E-0\E_0\E7,
       
   262 	is3=\EX\001\120,
       
   263 
       
   264 	smglp=\EX%p1%{1}%+%c%p2%{1}%+%c,
       
   265 
       
   266 	use=Gibmg+basic,
       
   267 
       
   268 #
       
   269 # Basic capabilities (printer in AGM):
       
   270 #
       
   271 Gibmxlagm+basic,
       
   272 
       
   273 	orl#30,
       
   274 	orvi#180,
       
   275 
       
   276 	is2=^R\EP0\EA\012\E2\EC\102\EO\ER\Eb\E50\EF\EH\EW0\ET\E-0\E_0\E7,
       
   277 
       
   278 	use=Gibmxl+basic,
       
   279 
       
   280 #
       
   281 # Graphics capabilities (low resolution, 8-pin, 5:6 aspect ratio):
       
   282 #
       
   283 Gibmxl+low+5x6,
       
   284 
       
   285 	spinv#72,
       
   286 	spinh#60,
       
   287 
       
   288 #   defbi=
       
   289 #	Set the line spacing to 8/72 inch (9 lines per inch)
       
   290 #	to get 72 dots per inch vertically (9 lines/" * 8 pins/line).
       
   291 #	Set the character spacing to pica (1/10 inch or 10 characters
       
   292 #	per inch); at 60 dots per inch horizontally this means 6
       
   293 #	dots per character.
       
   294 #	Set vertical and horizontal tab stops at the upper left corner
       
   295 #	of the image, then tab to the upper left corner.
       
   296 #	Note: $<> is a true null (only works with special Curses routine).
       
   297 #	THIS ASSUMES WE START AT THE TOP OF THE PAGE! (although
       
   298 #	maybe not in the first column.)
       
   299 	u6=%?%p5%{1}%=%t\EA\010\E2^R\EB%p2%{8}%/%c$<>\ED%p1%{6}%/%c$<>\013\r\t%;,
       
   300 	defbi=%?%p5%{1}%=%t\EA\010\E2^R\EB%p2%{8}%/%c$<>\ED%p1%{6}%/%c$<>\013\r\t%;,
       
   301 
       
   302 	use=Gibmc+low+5x6,
       
   303 
       
   304 #
       
   305 # Graphics capabilities (low resolution, 8-pin, 1:1 aspect ratio):
       
   306 #
       
   307 Gibmxl+low+1x1,
       
   308 
       
   309 	spinv#60,
       
   310 
       
   311 #	In AGM the "defbi" cap from Gibmxl+low+5x6 will work. The
       
   312 #	line spacing will be 8/60 inch to get 60 dots per inch, using
       
   313 #	the same control sequence.
       
   314 
       
   315 	use=Gibmxl+low+5x6,
       
   316 
       
   317 #
       
   318 # Graphics capabilities (high resolution, 24-pin, 5:6 aspect ratio):
       
   319 #
       
   320 #	This doesn't work as the pin spacing doesn't get set to
       
   321 #	1/216 inch, but stays at 1/180 inch, even out of AGM.
       
   322 #
       
   323 
       
   324 #
       
   325 # Graphics capabilities (high resolution, 24-pin, 1:1 aspect ratio):
       
   326 #
       
   327 Gibmxl+high+1x1,
       
   328 
       
   329 	npins#24,
       
   330 	spinv#180,
       
   331 	spinh#180,
       
   332 
       
   333 	porder=1\,2\,3\,4\,5\,6\,7\,8\,9\,10\,11\,12\,13\,14\,15\,16\,17\,18\,19\,20\,21\,22\,23\,24;0,
       
   334 
       
   335 	sbim=\E*\047%p1%{256}%m%c%p1%{256}%/%c,
       
   336 
       
   337 #   defbi=
       
   338 #	Set the line spacing to 8/60 inch (7.5 lines per inch)
       
   339 #	to get 180 dots per inch vertically (7.5 lines/" * 24 pins/line).
       
   340 #	This requires the printer or emulation in Alternate Graphics Mode.
       
   341 #	Set the character spacing to pica (1/10 inch or 10 characters
       
   342 #	per inch); at 180 dots per inch horizontally this means 18
       
   343 #	dots per character.
       
   344 #	Set vertical and horizontal tab stops at the upper left corner
       
   345 #	of the image, then tab to the upper left corner.
       
   346 #	Note: $<> is a true null (only works with special Curses routine).
       
   347 #	THIS ASSUMES WE START AT THE TOP OF THE PAGE! (although
       
   348 #	maybe not in the first column.)
       
   349 	u6=%?%p5%{1}%=%t\EA\010\E2^R\EB%p2%{24}%/%c$<>\ED%p1%{18}%/%c$<>\013\r\t%;,
       
   350 	defbi=%?%p5%{1}%=%t\EA\010\E2^R\EB%p2%{24}%/%c$<>\ED%p1%{18}%/%c$<>\013\r\t%;,
       
   351 
       
   352 	use=Gibmc+low+5x6,
       
   353