[quake3-bugzilla] [Bug 4799] Client tty console (con_tty.c) buggy [patch attached]

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Wed Nov 24 21:18:57 EST 2010


http://bugzilla.icculus.org/show_bug.cgi?id=4799

--- Comment #1 from Rambetter <nlandys at gmail.com> 2010-11-24 21:18:51 EST ---
I just found another slight glitch in the console.  It has to do with when
the console first starts up [on the server].

Here is what happens when I run ioq3ded with r1803 from ioquake3 trunk:

...
IP: 127.0.0.1
Opening IP socket: 0.0.0.0:20000
^H ^Hexecing server1.cfg
]^H ^Hsv_maxclients will be changed upon restarting.
...

I basically ran ioq3ded and piped all output (stdout and stderr) to a file.
That is what you're seeing above.  The "^H" is a backspace (I verified this
by using the xxd command on my saved output).  So the order of bytes being
sent to the console starting with the last '0' in "0.0.0.0:20000" is:

1. char '0'
2. '\n'
3. '\b'
4. ' '
5. '\b'
6. 'e'
7. 'x'

and so on.

The bug is that it's sending backspaces before the console gets printed
(on initialization).  It should only send those    backspaces after the console
gets printed for the first time.  This is a very minor issue I know.  However
it leads to ugly formatting in a screen session.


After my initial patch to this bug report (above) is applied, the console
behavior changes slightly:
...
IP: 127.0.0.1
Opening IP socket: 0.0.0.0:20000
^H ^H]^H ^Hexecing server1.cfg
]^H ^Hsv_maxclients will be changed upon restarting.
...


Either way it's not right.

I'll work on improving my patch above to take care of this problem as well.

-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list