From 9bc282395583e9305d062633b5a920450ad25336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Thu, 10 Jan 2008 21:15:46 +0000 Subject: [PATCH] * Note for stage1 * Fix call to Bconin() add correct color handling. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23354 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/boot/platform/atari_m68k/Handle.cpp | 2 +- src/system/boot/platform/atari_m68k/Jamfile | 2 ++ src/system/boot/platform/atari_m68k/console.cpp | 11 ++++------- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/system/boot/platform/atari_m68k/Handle.cpp b/src/system/boot/platform/atari_m68k/Handle.cpp index 1fffe29c52..e7fdada96e 100644 --- a/src/system/boot/platform/atari_m68k/Handle.cpp +++ b/src/system/boot/platform/atari_m68k/Handle.cpp @@ -53,7 +53,7 @@ Handle::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize) for (i = 0; i < bufferSize; i++) { if (Bconstat(fHandle) == 0) return i; - Bconin(fHandle, string[i]); + string[i] = (char)Bconin(fHandle); } return bufferSize; diff --git a/src/system/boot/platform/atari_m68k/Jamfile b/src/system/boot/platform/atari_m68k/Jamfile index 4519f35f07..66d76fc5f6 100644 --- a/src/system/boot/platform/atari_m68k/Jamfile +++ b/src/system/boot/platform/atari_m68k/Jamfile @@ -52,3 +52,5 @@ SEARCH on [ FGristFiles text_menu.cpp ] # Tell the build system to where stage1.bin can be found, so it can be used # elsewhere. SEARCH on stage1.bin = $(SUBDIR) ; + +# cf pxe_ia32 Jamfile for stage1 diff --git a/src/system/boot/platform/atari_m68k/console.cpp b/src/system/boot/platform/atari_m68k/console.cpp index a90edd2dde..8919a0a53c 100644 --- a/src/system/boot/platform/atari_m68k/console.cpp +++ b/src/system/boot/platform/atari_m68k/console.cpp @@ -241,13 +241,10 @@ translate_color(int32 color) void console_set_color(int32 foreground, int32 background) { - // Note: Toggling the cursor doesn't seem to help. We still get cursor - // artifacts. - of_interpret("toggle-cursor" - " to foreground-color" - " to background-color" - " toggle-cursor", - 2, 0, translate_color(foreground), translate_color(background)); + char buff[] = "\033b \033c "; + buff[2] = (char)translate_color(foreground); + buff[5] = (char)translate_color(background); + stdin->WriteAt(NULL, 0LL, buff, 6); }