add: get_line
This commit is contained in:
@ -43,3 +43,11 @@ void keyboard_handler(struct registers *regs)
|
||||
line_status = NEWLINE;
|
||||
}
|
||||
}
|
||||
|
||||
char *get_line(void)
|
||||
{
|
||||
while (line_status != NEWLINE)
|
||||
;
|
||||
line_status = READING;
|
||||
return screen->line;
|
||||
}
|
Reference in New Issue
Block a user