ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.71k stars 626 forks source link

[goldsrc] garbage in terminal output #1079

Open johndrinkwater opened 11 years ago

johndrinkwater commented 11 years ago

Some commandline output from CS, CS:CZ contains the character U+000A (new line) which renders as garbage. It’s a minor problem for ocd users >:)

screenshot from 2013-05-01 23 23 47

] version
Protocol version 48
Exe version 1.0.0.3/Stdio (czero)
Exe build: 17:46:55 Apr 25 2013 (6027)
alfred-valve commented 11 years ago

Those are the color code markers for the spew

johndrinkwater commented 11 years ago

What’s it trying to do, highlight the name? If I can help to make it native, if its worth the effort: Terminal uses ANSI escape codes, example echo -e "\x1b[37;1mtest\x1b[0m", Quake used the same numbering as, direct translation is 30+n http://en.wikipedia.org/wiki/ANSI_escape_code#Colors

alfred-valve commented 11 years ago

It is magic codes for the internal rendering logic, not something that terminal output was meant to interpret (and is a higher level contract, not something the lower level layers understand or could translate).