* 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:
parent
eb53cd839c
commit
9bc2823955
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user