aboutsummaryrefslogtreecommitdiff
path: root/apps/wm.c
diff options
context:
space:
mode:
authorMarvin Borner2020-08-21 23:08:16 +0200
committerMarvin Borner2020-08-21 23:08:16 +0200
commit94de27efb7f9f97d162c1cd6b0a2bb89e3fe555f (patch)
treeb2ae93419138cd0af46559b0b1f1a03862d62242 /apps/wm.c
parentf700ba6668dbdb91a03b2c5aa387eb4cabae8fcd (diff)
Finished proper return of processes
Diffstat (limited to 'apps/wm.c')
-rw-r--r--apps/wm.c9
1 files changed, 5 insertions, 4 deletions
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) {
};