Make sure debug output will wrap at 80 cols as the atari VT52 emulation doesn't do it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26472 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3d5d990815
commit
87f9eb4682
@ -260,10 +260,18 @@ struct tos_pun_info {
|
||||
/* handy shortcut */
|
||||
static inline int Bconput(int16 handle, const char *string)
|
||||
{
|
||||
int i, err;
|
||||
for (i = 0; string[i]; i++) {
|
||||
if (string[i] == '\n')
|
||||
int i, col, err;
|
||||
for (i = 0, col = 0; string[i]; i++, col++) {
|
||||
if (string[i] == '\n') {
|
||||
Bconout(handle, '\r');
|
||||
col = 0;
|
||||
}
|
||||
/* hard wrap at 80 col as the ST console emulation doesn't do this. */
|
||||
if (col == 80) {
|
||||
Bconout(handle, '\r');
|
||||
Bconout(handle, '\n');
|
||||
col = 0;
|
||||
}
|
||||
err = Bconout(handle, string[i]);
|
||||
if (err < 0)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user