Compare commits

..

No commits in common. "65a59534b49db39dd739dd747d4203d80341f1c9" and "e314ff97f734534667c1929a60c7fdd653a6dacf" have entirely different histories.

4 changed files with 1 additions and 21 deletions

View File

@ -49,14 +49,13 @@ typedef enum {
POWEROFF, POWEROFF,
HALT, HALT,
STACK, STACK,
CLEAR,
ECHO, ECHO,
COLOR, COLOR,
MERDELLA, MERDELLA,
ERROR ERROR
} CMD_TOK; } CMD_TOK;
void shell_init(void);
void reboot(void); void reboot(void);
void halt(void); void halt(void);
void shell_init(void);
void print_stack(void); void print_stack(void);

View File

@ -46,7 +46,6 @@ int terminal_write(const char *data, size_t size);
int terminal_writestring(const char *data); int terminal_writestring(const char *data);
int terminal_writelong(long number); int terminal_writelong(long number);
void terminal_set_screen(int pos); void terminal_set_screen(int pos);
void terminal_clear(void);
struct key_event terminal_getkey(void); struct key_event terminal_getkey(void);
void update_cursor(void); void update_cursor(void);
void move_cursor(int direction); void move_cursor(int direction);

View File

@ -31,8 +31,6 @@ static CMD_TOK find_command(char *line)
command = HALT; command = HALT;
else if (!strcmp(line, "stack")) else if (!strcmp(line, "stack"))
command = STACK; command = STACK;
else if (!strcmp(line, "clear"))
command = CLEAR;
else if (!strcmp(line, "echo")) else if (!strcmp(line, "echo"))
command = ECHO; command = ECHO;
else if (!strcmp(line, "color")) else if (!strcmp(line, "color"))
@ -102,9 +100,6 @@ void shell_init(void)
case STACK: case STACK:
print_stack(); print_stack();
break; break;
case CLEAR:
terminal_clear();
break;
case ECHO: case ECHO:
kprintf(0, "echoing\n"); kprintf(0, "echoing\n");
break; break;

View File

@ -76,19 +76,6 @@ static void terminal_new_line(void)
terminal_scroll(); terminal_scroll();
} }
void terminal_clear(void)
{
for (size_t y = 0; y < VGA_HEIGHT; y++) {
for (size_t x = 0; x < VGA_WIDTH; x++) {
const size_t index = y * VGA_WIDTH + x;
TERM_BUF[index] = vga_entry(' ', VGA_COLOR_WHITE);
}
}
memcpy(screen->buffer, TERM_BUF, sizeof(screen->buffer));
screen->column = 0;
screen->row = 0;
}
int terminal_putchar(char c) int terminal_putchar(char c)
{ {
if (c == '\r') if (c == '\r')