From 94de27efb7f9f97d162c1cd6b0a2bb89e3fe555f Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 21 Aug 2020 23:08:16 +0200 Subject: Finished proper return of processes --- apps/wm.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'apps/wm.c') diff --git a/apps/wm.c b/apps/wm.c index c5347e4..88c0451 100644 --- a/apps/wm.c +++ b/apps/wm.c @@ -18,10 +18,11 @@ void onkey(u32 scancode) int main(int argc, char **argv) { + printf("ARGC: %d\n", argc); + printf("[%s loaded]\n", argv[0]); + struct vbe *vbe = (struct vbe *)argv[1]; - printf("%x\n", argc); - printf("%s loaded.\n", argv[0]); printf("VBE: %dx%d\n", vbe->width, vbe->height); const u32 color[3] = { 0, 0, 0 }; @@ -30,8 +31,8 @@ int main(int argc, char **argv) gui_init("/font/spleen-16x32.psfu"); gui_write(vbe, 50, 50, text, "hallo"); - /* printf("onkey: %x\n", onkey); */ - /* map(EVENT_KEYBOARD, onkey); */ + printf("onkey: %x\n", onkey); + map(EVENT_KEYBOARD, onkey); while (1) { }; -- cgit v1.2.3