[net.micro.amiga] RAW: escape sequences

bruceb@amiga.UUCP (Bruce Barrett) (03/07/86)

In article <2885@amdahl.UUCP> acs@amdahl.UUCP (Tony Sumrall) writes:
>
>I got a copy of the Bantam book "The AmigaDOS Manual" and was trying out
>the various escape sequences defined therein.  I couldn't get the Set
>Cursor Rendition (<CSI>xp).  I have several questions:
>  * Exactly what it the sequence I should be typing?  <CSI>xp where x is
>    a number (this is implied by the doc.)?
	Real close!  
	You should be typing <ESC>[0 p to turn off the cursor,
	and 		     <ESC>[1 p to turn it back on.
	Note the blank (space)------^
>  * Is <ESC>[xp identical to <CSI>xp?
	Yes, both will fail unless you include the blank.
>
>Additionally, could someone post the arguments acceptable to or output
>from:
>  - SM (Set Mode, <ESC>[h)--the book lists only 1 example,
	<ESC>[20h	= output <CR><LF> for every <LF>
	<ESC>[>1h	= allow scroll after last line of screen
	<ESC>[?7h	= allow scroll of 1 line as you output in last column
	
>  - RM (Reset Mode, <ESC>[l)--the book only lists 1 example,
	<ESC>[20l	= output <LF> for every <LF>
	<ESC>[>1l	= prohibit scroll after last line of screen
	<ESC>[?7l	= prohibit scroll of 1 line as you output in last column
    (with the last 2 items prohibited your window would never scroll)

>  - SGR (Select Graphics Rendition, <ESC>[m),
	<ESC>[##m	## 30-39 set text color
			   40-49 set background color
			   0	normal text
			   1	bold
			   3	italic
			   4	underscore
			   7	negitive (inverse video)

These are documented in the *.h files on the C devel diskettes.

It is getting late so I'm not going to tell you about the rest today.
If you still want to know please ask again.

--Bruce Barrett

acs@amdahl.UUCP (Tony Sumrall) (03/13/86)

Just wanted to thank Bruce for this info.  I needed (some of) it to help
produce a usable terminfo entry for my little monster and I now think I
have a (more or less) complete one.  I'll post it if there is any
interest.

While Bruce's answer was detailed enough for my needs, I can remember some
postings from others who have simply said "it's documented in the ROM
book" or "look in the include file".  In situations like this (and
probably many more, as well) it is wise to remember that many people don't
have either/both of those at their disposal.  An allusion to those sources
for a detailed explanation of a point is fine but *please* don't just say
"RTFM" (Read The Flipping Manual) or "RTFS" (Read The Flipping Source).

Thanks.
-- 
Tony Sumrall                    ...!{ihnp4,hplabs,seismo,sun}!amdahl!acs

[ Opinions expressed herein are the author's and should not be construed
  to reflect the views of Amdahl Corp. ]