EE445M RTOS
Taken at the University of Texas Spring 2015
shell.h
Go to the documentation of this file.
1 /* -*- mode: c; c-basic-offset: 4; -*- */
2 #ifndef __SHELL__
3 #define __SHELL__
4 
5 #include <stdbool.h>
6 
7 #include "libstd/nexus.h"
8 #include "libos/system.h"
9 #include "libio/kbd.h"
10 #include "libnotify/notify.h"
11 
17 #define SHELL_MAX_PS1_LENGTH 4
18 
20 #define SHELL_BUFFER_LENGTH 64
21 
22 /********************** Obey the `thread` interface **********************/
28 void shell_spawn();
29 
37 char* shell_represent();
38 
44 void shell_kill();
45 /*************************************************************************/
46 
51 
54 
61 void shell_print_ps1();
62 
64 void shell_set_ps1();
65 
70 
71 #endif
72 
void shell_kill()
Definition: shell.c:44
void shell_spawn()
Definition: shell.c:26
char * shell_represent()
Definition: shell.c:38
void shell_set_ps1()
void shell_clear_shell_buffer()
Definition: shell.c:88
exit_status_t shell_execute_command()
Definition: shell.c:99
uint8_t exit_status_t
Definition: system.h:24
void shell_print_ps1()
Definition: shell.c:94
void shell_uart_handler(notification)
Definition: shell.c:51