Commit f0b9be9d by malcolm

Fixed hideous build errors and non-typing keys producing spaces

parent a13568ec
Showing with 10 additions and 10 deletions
...@@ -6,16 +6,16 @@ ...@@ -6,16 +6,16 @@
#include "term.h" #include "term.h"
#include "comp.h" #include "comp.h"
char scan_map[256] = {'','','1','2','3','4','5','6','7','8','9','0','-','=','\b','\t', char scan_map[256] = {'\0','\0','1','2','3','4','5','6','7','8','9','0','-','=','\b','\t',
'q','w','e','r','t','y','u','i','o','p','[',']','\n','^','a','s', 'q','w','e','r','t','y','u','i','o','p','[',']','\n','\0','a','s',
'd','f','g','h','j','k','l',';','\'','`','S','\\','z','x','c','v', 'd','f','g','h','j','k','l',';','\'','`','\0','\\','z','x','c','v',
'b','n','m',',','.','/','','','',' ','','','','','','', 'b','n','m',',','.','/','\0','\0','\0',' ','\0','\0','\0','\0','\0','\0',
'','','','','','',''}; '\0','\0','\0','\0','\0','\0','\0'};
char shift_map[256] = {'','','!','@','#','$','%','^','&','*','(',')','_','+','\b','\t', char shift_map[256] = {'\0','\0','!','@','#','$','%','^','&','*','(',')','_','+','\b','\t',
'Q','W','E','R','T','Y','U','I','O','P','{','}','\n','^','A','S', 'Q','W','E','R','T','Y','U','I','O','P','{','}','\n','\0','A','S',
'D','F','G','H','J','K','L',':','\"','~','S','|','Z','X','C','V', 'D','F','G','H','J','K','L',':','\"','~','S','|','Z','X','C','V',
'B','N','M','<','>','?','','','',' ','','','','','','', 'B','N','M','<','>','?','\0','\0','\0',' ','\0','\0','\0','\0','\0','\0',
'','','','','','',''}; '\0','\0','\0','\0','\0','\0','\0'};
char kb_buf[256]; char kb_buf[256];
int kb_buf_size; int kb_buf_size;
int modifiers[6] = {0,0,0}; int modifiers[6] = {0,0,0};
...@@ -155,7 +155,7 @@ void kbd_irq() ...@@ -155,7 +155,7 @@ void kbd_irq()
terminal_putchar(in); terminal_putchar(in);
} }
} }
else else if(in!='\0')
{ {
kb_buf[kb_buf_size]=in; kb_buf[kb_buf_size]=in;
kb_buf_size++; kb_buf_size++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment