From 1fe38714a48f050abae50e60a869efddb4c3e24c Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Sat, 18 Aug 2007 13:32:30 +0000 Subject: [PATCH] allow to have no timeout (by specifying 0) --- second/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/second/console.c b/second/console.c index cfd9a77..5192bca 100644 --- a/second/console.c +++ b/second/console.c @@ -50,7 +50,7 @@ int console_keypressed(int timeout) { long time = Ticks + timeout; - while (Ticks < time) + while (!timeout || (Ticks < time)) { if (vga_enabled && keyboard_keypressed()) return 1;