From e85a68e1536a0f6505300e1cb79f06b9743b00f7 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 9 Sep 2018 11:49:30 +0200 Subject: fixing implicit func declarations! --- driver/terminal.c | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) (limited to 'driver/terminal.c') diff --git a/driver/terminal.c b/driver/terminal.c index 6ac1533..978a7be 100644 --- a/driver/terminal.c +++ b/driver/terminal.c @@ -38,8 +38,8 @@ typedef enum { ecma48_fg_magenta, ecma48_fg_cyan, ecma48_fg_white, - ecma48_undersore_on, // set def color - ecma48_undersore_off, // set def color + ecma48_underscore_on, // set def color + ecma48_underscore_off, // set def color ecma48_bg_black, ecma48_bg_red, @@ -78,6 +78,32 @@ static void process_graphic_npar(terminal_tty *tty, terminal_settings s) switch(s) { + case ecma48_null_mapping_2: + break; + case ecma48_null_mapping_1: + break; + case ecma48_reset_mapping: + break; + case ecma48_blinkoff: + break; + case ecma48_blink: + break; + case ecma48_nounderline: + break; + case ecma48_underscore_on: + break; + case ecma48_underscore_off: + break; + case ecma48_underscore: + break; + case ecma48_halfbright: + break; + case ecma48_normalbright_1: + break; + case ecma48_normalbright_2: + break; + case ecma48_bold: + break; case ecma48_reset: tty->fg=SCR_WHITE; tty->bg=SCR_BLACK; @@ -285,7 +311,7 @@ void terminal_kb(terminal_tty *tty, uint8_t c) */ // send one ASCII character to the terminal -bool terminal_put(terminal_tty *tty, uint8_t c) +void terminal_put(terminal_tty *tty, uint8_t c) { // CONTROL CHARACTERS @@ -316,7 +342,7 @@ bool terminal_put(terminal_tty *tty, uint8_t c) if(c==0x08) //BACKSPACE { - if(tty->x>0&&tty->command_l>0||!tty->set_echo) + if((tty->x>0&&tty->command_l>0)||!tty->set_echo) { set_char(tty,tty->x-1,tty->y,' ',tty->fg,tty->bg); tty->x--; @@ -525,6 +551,6 @@ bool terminal_put(terminal_tty *tty, uint8_t c) //cusor pos tty->screen->update_cursor(tty->x,tty->y); - return true; + return; } -- cgit v1.2.3