![]() |
![]() |
#1 |
Registered User
Join Date: Aug 2008
Location: Salisbury
Posts: 786
|
Amiga ANSI escape code spec
I'm looking for an Amiga ANSI escape code spec. The one I found here doesn't seem to match what I'm seeing in actual ANSI art files.
For example the link say the following... Select color 1 = 9B 33 31 6D But in the file I'm looking at it's.. 1B 5B 33 31 6D Any idea why these are different? |
![]() |
![]() |
#2 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,300
|
Isn't it just because that documentation is assuming you'll be using a specific scripting language (AREXX?) that has a shorthand way of specifying escape sequences?
"Real" escape sequences always start with ESC ('1B' - sometimes rendered as ^[ like ^C is '03' with the hat meaning "control key", i.e. ^A = 1, ^G = 7 (bell), ... , ^[ = 27 ). And that's what AmigaDOS interprets. '1B 5B 33 31 6D' would be "^[[31m" or "ESC[31m" which according to this (http://www.bambi-amiga.co.uk/aos39_m...k-main114.html) is "Turns on text color1 (shadow, default black)." Not an ANSI expert, and don't know what's standard, but hopefully should give a starting point. |
![]() |
![]() |
#3 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 730
|
I think 0x9b is interchangeable with 0x1b 0x5b
This is called CSI (Control Sequence Introducer) and it has 2 represenations - 1 byte (0x9b) or - 2 bytes (0x1b 0x5b) I would assume that the 2 byte sequence came first (in a 7-bit ascii era) and then later the one byte as a optimisation (?) |
![]() |
![]() |
#4 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,047
|
|
![]() |
![]() |
#5 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,489
|
The Amiga console implements a subset of the ECMA 48 console specification, which you find here:
https://www.ecma-international.org/w..._june_1991.pdf It is by itself the ECMA interpretation of the VT-100 (and related) terminal industry standard. For example, the SGR control sequence (aka CSI-m) is on page 75 of the above document. Because the 9B CSI control sequence can be substituted by ESC [, and it is one of the many substitute sequences for 7-bit terminals for the control sequences in the C1 control region. For example, OSC is substituted by ESC ], though the Amiga console probably does not interpret this sequence. |
![]() |
![]() |
#6 |
Registered User
Join Date: Aug 2008
Location: Salisbury
Posts: 786
|
Thanks everyone for your input. Happy to say my ascii/ansi viewer is nearly done. Expect a little production shortly.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Amiga ANSI Art - What is this style? | OddbOd | Nostalgia & memories | 19 | 15 May 2023 23:08 |
ANSI control-code (?) bug in "all" AsmOne versions under Kick 2.0+ | Photon | support.WinUAE | 4 | 17 July 2011 19:29 |
Amiga ANSi art on Windows | Crashdisk | request.Apps | 1 | 26 January 2011 22:02 |
Quick spec check for Amiga O/S's | Macca | Amiga scene | 5 | 01 May 2008 09:55 |
Military spec Amiga 500 | Pyromania | Amiga scene | 17 | 02 September 2004 21:50 |
|
|