English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 01 July 2024, 20:15   #1
h0ffman
Registered User
 
Join Date: Aug 2008
Location: Salisbury
Posts: 771
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?
h0ffman is offline  
Old 01 July 2024, 20:46   #2
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,228
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.
paraj is offline  
Old 01 July 2024, 20:59   #3
alkis
Registered User
 
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 725
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 (?)
alkis is offline  
Old 01 July 2024, 21:50   #4
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,033
RTFM?
http://amigadev.elowar.com/read/ADCD.../node008C.html
http://amigadev.elowar.com/read/ADCD.../node0508.html
thomas is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:11.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07381 seconds with 15 queries