From 2466656eea583163ba37801822586bbe6c3f2e74 Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Mon, 28 Sep 2020 13:42:46 +0800 Subject: [PATCH] kernels,typing-game: add message about exiting --- kernels/typing-game/game.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernels/typing-game/game.c b/kernels/typing-game/game.c index 13fdb0a..fa0c61b 100644 --- a/kernels/typing-game/game.c +++ b/kernels/typing-game/game.c @@ -148,6 +148,8 @@ int main() { panic_on(!io_read(AM_TIMER_CONFIG).present, "requires timer"); panic_on(!io_read(AM_INPUT_CONFIG).present, "requires keyboard"); + printf("Type 'ESC' to exit\n"); + int current = 0, rendered = 0; while (1) { int frames = io_read(AM_TIMER_UPTIME).us / (1000000 / FPS);