summaryrefslogtreecommitdiff
path: root/src/c/keyboard.c
diff options
context:
space:
mode:
authorAleksa Vučković <aleksav013@gmail.com>2021-10-26 22:57:44 +0200
committerAleksa Vučković <aleksav013@gmail.com>2021-10-26 22:57:44 +0200
commit818a6fea63d5427e43becc0d4a5279a631a7f1a6 (patch)
tree618d858176aaab6a2bc3d05389f8b4e31a980389 /src/c/keyboard.c
parent39822cdb0acdd1eec66c2e18e0711fd3cd6f033d (diff)
Small fixes + color + neofetch
Diffstat (limited to 'src/c/keyboard.c')
-rw-r--r--src/c/keyboard.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/c/keyboard.c b/src/c/keyboard.c
index 473ec20..d573472 100644
--- a/src/c/keyboard.c
+++ b/src/c/keyboard.c
@@ -17,6 +17,7 @@ size_t buffer_index=0;
void previous_field(void);
void terminal_putchar(char c);
void tty(char *buffer);
+void prompt(void);
void clear();
void us_en(char keymap[]);
@@ -48,6 +49,7 @@ void enter()
for(int i=0;i<BUFFER_SIZE;i++) buffer[i]='\0';
buffer_index=0;
}
+ prompt();
return;
}
@@ -88,6 +90,7 @@ void keyboard_handler()
{
clear();
prompt();
+ printf("%s",buffer);
return;
}
}
@@ -100,6 +103,5 @@ void keyboard_handler()
{
ispressed[keycode-0x80]=0;
}
-
}
}