www.ClassicTW.com
http://classictw.com/

Stupid question of the day?
http://classictw.com/viewtopic.php?f=15&t=35608
Page 1 of 1

Author:  Micro [ Fri Oct 11, 2019 11:22 am ]
Post subject:  Stupid question of the day?

Why does TWX define ANSI_0 - ANSI_15 in the wrong order?

Code:
| Color |  ANSI |  TWX   | TW2002 |
|Black  | ^[30m | ANSI_0 |   ~a   |
|Red    | ^[31m | ANSI_4 |   ~b   |
|Green  | ^[32m | ANSI_2 |   ~c   |
|Yellow | ^[33m | ANSI_6 |   ~d   |
|Blue   | ^[34m | ANSI_1 |   ~e   |
|Magenta| ^[35m | ANSI_5 |   ~f   |
|Cyan   | ^[36m | ANSI_3 |   ~g   |
|White  | ^[37m | ANSI_7 |   ~h   |


I can edit raw ANSI in notepad, and I memorized the color codes that had been established for 30+ years when Xide wrote TWX. So why pick a new random order?

Author:  LoneStar [ Fri Oct 11, 2019 7:11 pm ]
Post subject:  Re: Stupid question of the day?

Micro wrote:
I can edit raw ANSI in notepad, and I memorized the color codes that had been established for 30+ years when Xide wrote TWX. So why pick a new random order?



Stupid Answer of the day:

The TWX Constants still resolve to the proper ANSI Code, so without further adieu: The 'random' order is probably just the order in which XIDE inputted the Constant Declarations --from memory, not reconciling the actual ANSI Standard.

Attachments:
File comment: JIC, you don't have it.
EP_ansi.ts [5.82 KiB]
Downloaded 31 times

Author:  LoneStar [ Fri Oct 11, 2019 7:11 pm ]
Post subject:  Re: Stupid question of the day?

Micro wrote:
I can edit raw ANSI in notepad, and I memorized the color codes that had been established for 30+ years when Xide wrote TWX. So why pick a new random order?



Stupid Answer of the day:

The TWX Constants still resolve to the proper ANSI Code, so without further adieu: The 'random' order is probably just the order in which XIDE inputted the Constant Declarations --from memory, not reconciling the actual ANSI Standard.

If I was a betting man, I'd wager that he was just drunk when he coded that section :mrgreen:

Author:  Micro [ Fri Oct 11, 2019 10:12 pm ]
Post subject:  Re: Stupid question of the day?

LoneStar wrote:
If I was a betting man, I'd wager that he was just drunk when he coded that section :mrgreen:

I'm afraid I threw you a bit of a "red herring" as the order of the codes is neither "new" or "random", and he probably wasn't drunk. He used an established standard that was familiar to him and it existed long before ANSI.

Next Guess?

Author:  Micro [ Sat Oct 12, 2019 11:49 am ]
Post subject:  Re: Stupid question of the day?

Ok, here is a hint...

Remember that test pattern that television stations used to play right after the star spangled banner and shutting down for the night?

Image

Nope, that is not quite right, but you might be getting closer if you thought that. The colors are NOT in NSTC test pattern format, but the standard used is almost as old!

Author:  Hammer_2 [ Sat Oct 12, 2019 8:34 pm ]
Post subject:  Re: Stupid question of the day?

They in PAL? We have PAL format in Australia, so guessing Xide being in NZ might have same?


Or.. Rainbow colours order... but that's been around significantly longer than NTSC :)

Author:  Micro [ Sat Oct 12, 2019 11:50 pm ]
Post subject:  Re: Stupid question of the day?

PAL returns the same images in google as NTSC, so I assume they both use the same or similar images... and a rainbow is Red, Orange, Yellow, Green, Cyan, Blue, Magenta, UV (and everything in-between)... so it is not a rainbow

I have been wondering about it for years, and just figured it out Friday.

Author:  Micro [ Fri Oct 18, 2019 6:02 pm ]
Post subject:  Re: Stupid question of the day?

This is the kind of stuff that keep me awake during the day (I work nights)... lol

Anyway, Xide used the IBM/CGA 16 color pallete.

Image

So it seem it would have been more appropriate to Say CGA_1 = Blue, because ANSI_1 should actually be Red "^[0;31;m"

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/