feature: black screen with scrolling is better, it also uses the full screen length
This commit is contained in:
@ -3,11 +3,13 @@
|
||||
#include "alloc.h"
|
||||
#include "commands.h"
|
||||
#include "ctype.h"
|
||||
#include "font.h"
|
||||
#include "kprintf.h"
|
||||
#include "shell.h"
|
||||
#include "string.h"
|
||||
#include "terminal.h"
|
||||
#include "utils.h"
|
||||
#include "vbe.h"
|
||||
|
||||
#define BORDER "==========================================================="
|
||||
#define HEADER "Welcome to bozOShell - Available Commands"
|
||||
@ -34,6 +36,7 @@ const struct shell_command cmds[] = {
|
||||
#define NB_CMDS ARRAY_SIZE(cmds)
|
||||
|
||||
extern struct screen *screen;
|
||||
extern struct icon *terminal_bg;
|
||||
extern int line_status;
|
||||
|
||||
void help_cmd(char *arg)
|
||||
@ -74,6 +77,9 @@ void auto_complete(void)
|
||||
kprintf("%c", screen->line[i]);
|
||||
}
|
||||
}
|
||||
void terminal_putentryat(struct font node, uint32_t fg_color, uint32_t bg_color,
|
||||
size_t x, size_t y);
|
||||
struct font get_font_node(int c);
|
||||
|
||||
static char *get_line(void)
|
||||
{
|
||||
@ -93,7 +99,7 @@ static char *get_line(void)
|
||||
continue;
|
||||
buf[--i] = '\0';
|
||||
move_cursor(LEFT);
|
||||
terminal_putchar(' ');
|
||||
/* terminal_refresh(); */
|
||||
move_cursor(LEFT);
|
||||
} else if (ev.scan_code == KEY_TAB && i) {
|
||||
auto_complete();
|
||||
|
Reference in New Issue
Block a user