* 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
This commit is contained in:
François Revol 2008-01-10 21:15:46 +00:00
parent eb53cd839c
commit 9bc2823955
3 changed files with 7 additions and 8 deletions

View File

@ -53,7 +53,7 @@ Handle::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize)
for (i = 0; i < bufferSize; i++) { for (i = 0; i < bufferSize; i++) {
if (Bconstat(fHandle) == 0) if (Bconstat(fHandle) == 0)
return i; return i;
Bconin(fHandle, string[i]); string[i] = (char)Bconin(fHandle);
} }
return bufferSize; return bufferSize;

View File

@ -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 # Tell the build system to where stage1.bin can be found, so it can be used
# elsewhere. # elsewhere.
SEARCH on stage1.bin = $(SUBDIR) ; SEARCH on stage1.bin = $(SUBDIR) ;
# cf pxe_ia32 Jamfile for stage1

View File

@ -241,13 +241,10 @@ translate_color(int32 color)
void void
console_set_color(int32 foreground, int32 background) console_set_color(int32 foreground, int32 background)
{ {
// Note: Toggling the cursor doesn't seem to help. We still get cursor char buff[] = "\033b \033c ";
// artifacts. buff[2] = (char)translate_color(foreground);
of_interpret("toggle-cursor" buff[5] = (char)translate_color(background);
" to foreground-color" stdin->WriteAt(NULL, 0LL, buff, 6);
" to background-color"
" toggle-cursor",
2, 0, translate_color(foreground), translate_color(background));
} }