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:
@@ -260,10 +260,18 @@ struct tos_pun_info {
|
|||||||
/* handy shortcut */
|
/* handy shortcut */
|
||||||
static inline int Bconput(int16 handle, const char *string)
|
static inline int Bconput(int16 handle, const char *string)
|
||||||
{
|
{
|
||||||
int i, err;
|
int i, col, err;
|
||||||
for (i = 0; string[i]; i++) {
|
for (i = 0, col = 0; string[i]; i++, col++) {
|
||||||
if (string[i] == '\n')
|
if (string[i] == '\n') {
|
||||||
Bconout(handle, '\r');
|
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]);
|
err = Bconout(handle, string[i]);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user