From 87f9eb4682edb2ab597ec5a079c865187b40ebf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Thu, 17 Jul 2008 02:38:23 +0000 Subject: [PATCH] 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 --- src/system/boot/platform/atari_m68k/toscalls.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/system/boot/platform/atari_m68k/toscalls.h b/src/system/boot/platform/atari_m68k/toscalls.h index 133bfafcbf..710d441c7d 100644 --- a/src/system/boot/platform/atari_m68k/toscalls.h +++ b/src/system/boot/platform/atari_m68k/toscalls.h @@ -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;