Moderators: Nexuiz Moderators, Moderators
tChr wrote:Why not \r\n btw?
tZork wrote:If it does work its in 1.5.x
In 1.5 it does not, just prints out the \n
KadaverJack wrote:tChr wrote:Why not \r\n btw?
Because \r\n is only for stupid OSes, that can't stick to existing standards [/rant]
5.2.2 Character display semantics
...
2. Alphabetic escape sequences representing nongraphic characters in the execution character set are intended to produce actions on display devices as follows:
- ...
- \n (new line) Moves the active position to the initial position of the next line.
- \r (carriage return) Moves the active position to the initial position of the current line.
- ...
KadaverJack wrote:d'oh! You're right, it doesn't work... (neither in 1.5 nor SVN)
I was quite certain that it would work
esteel wrote:KadaverJack wrote:d'oh! You're right, it doesn't work... (neither in 1.5 nor SVN)
I was quite certain that it would work
I think its because \n inside a string is special in (Q)C.. if you just set the variable sv_motd to "foo\nbar" the \n is just normal text. I suppose we have to split the string in QC..
Return to Nexuiz - General Discussion
Users browsing this forum: No registered users and 1 guest