When using keyboard input from the input_server, it will now wait until the

server accepts input (r5 method). This doesn't work yet, though, as our
input_server fires up the event loop too early.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11731 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-03-14 15:44:49 +00:00
parent 2727bdcfe3
commit 908e1391a3

View File

@ -241,6 +241,14 @@ start_console(struct console *con)
resume_thread(con->console_writer);
setenv("TERM", "beterm", true);
#ifdef USE_INPUT_SERVER
// wait for the input_server loop so that keyboard input is available
while (find_thread("_input_server_event_loop_") == NULL) {
snooze(100000);
// a tenth of a second
}
#endif
return 0;
}