1
0
Fork 0

- add property /sim/startup/terminal-ansi-colors {BOOL}. This is used

by debug.nas to turn on/off syntax coloring for dumped data (which
  is desirable as compound data types can fill several screens with
  rather hard to read data). Unfortunately, it can't be reliably deduced
  from the OS whether ANSI colors are available or not.
- move "multiplayer chat" properties to where they belong
This commit is contained in:
mfranz 2007-02-18 17:21:50 +00:00
parent 4bf8add100
commit 9e11e2102f
2 changed files with 7 additions and 8 deletions

View file

@ -18,9 +18,7 @@
# enable colors on Unix (checks second character in module path for colon)
#
if (caller(0)[2][1] != `:`) {
if (getprop("/sim/startup/terminal-ansi-colors")) {
_c = func(color, s) { "\x1b[" ~ color ~ "m" ~ s ~ "\x1b[m" }
} else {
_c = func(dummy, s) { s }

View file

@ -12,11 +12,6 @@ Started September 2000 by David Megginson, david@megginson.com
<!-- General simulation preferences -->
<sim>
<!-- Multiplayer chat requires that these properties be defined -->
<multiplay>
<chat type="string">Hello</chat>
<transmission-freq-hz type="string">118500000</transmission-freq-hz>
</multiplay>
<!-- hide some development tools, such as parts of the HUD adjustment dialog -->
<devel type="bool">false</devel>
@ -49,6 +44,7 @@ Started September 2000 by David Megginson, david@megginson.com
<units>feet</units>
<save-on-exit type="bool" userarchive="y">true</save-on-exit>
<browser-app>netscape</browser-app><!-- help viewer -->
<terminal-ansi-colors type="bool">true</terminal-ansi-colors>
</startup>
<rendering>
<debug type="bool">false</debug>
@ -448,6 +444,11 @@ Started September 2000 by David Megginson, david@megginson.com
<!-- <scenario>refueling_demo</scenario> -->
</ai>
<multiplay>
<chat type="string">Hello</chat>
<transmission-freq-hz type="string">118500000</transmission-freq-hz>
</multiplay>
<user>
<callsign type="string">Golf Foxtrot Sierra</callsign>
</user>