* 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++) {
if (Bconstat(fHandle) == 0)
return i;
Bconin(fHandle, string[i]);
string[i] = (char)Bconin(fHandle);
}
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
# elsewhere.
SEARCH on stage1.bin = $(SUBDIR) ;
# cf pxe_ia32 Jamfile for stage1

View File

@ -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);
}