Author |
Message |
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2559 Location: Oklahoma City, OK 73170 US
|
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?
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
Fri Oct 11, 2019 11:22 am |
|
|
LoneStar
Commander
Joined: Fri Jun 09, 2006 2:00 am Posts: 1396 Location: Canada
|
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 600 times
_________________ ---------------------------- -= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time. -= There are 10 types of people in the world: Those that understand Binary and those who do not -= If Oil is made from Dinosaurs, and Plastic is made from Oil... are plastic Dinosaurs made from real Dinosaurs? -= I like to keep my friends and my enemies rich, and wait to see which is which - Tony Stark (R.I.P.)
|
Fri Oct 11, 2019 7:11 pm |
|
|
LoneStar
Commander
Joined: Fri Jun 09, 2006 2:00 am Posts: 1396 Location: Canada
|
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
_________________ ---------------------------- -= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time. -= There are 10 types of people in the world: Those that understand Binary and those who do not -= If Oil is made from Dinosaurs, and Plastic is made from Oil... are plastic Dinosaurs made from real Dinosaurs? -= I like to keep my friends and my enemies rich, and wait to see which is which - Tony Stark (R.I.P.)
|
Fri Oct 11, 2019 7:11 pm |
|
|
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2559 Location: Oklahoma City, OK 73170 US
|
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 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?
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
Fri Oct 11, 2019 10:12 pm |
|
|
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2559 Location: Oklahoma City, OK 73170 US
|
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? 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!
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
Sat Oct 12, 2019 11:49 am |
|
|
Hammer_2
Lieutenant J.G.
Joined: Mon Dec 01, 2014 5:39 pm Posts: 440
|
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
|
Sat Oct 12, 2019 8:34 pm |
|
|
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2559 Location: Oklahoma City, OK 73170 US
|
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.
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
Sat Oct 12, 2019 11:50 pm |
|
|
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2559 Location: Oklahoma City, OK 73170 US
|
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. So it seem it would have been more appropriate to Say CGA_1 = Blue, because ANSI_1 should actually be Red "^[0;3 1;m"
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
Fri Oct 18, 2019 6:02 pm |
|
|
|