Meta: Add files to repository
This commit is contained in:
parent
80a0428b66
commit
39198164cd
1029 changed files with 78311 additions and 0 deletions
52
System/Libraries/Shell.HC
Normal file
52
System/Libraries/Shell.HC
Normal file
|
@ -0,0 +1,52 @@
|
|||
#define SHELL_HISTORY_LIMIT 1025
|
||||
#define SHELL_INPUT_FIFO_SIZE 65536
|
||||
|
||||
class @shell_env_var
|
||||
{
|
||||
@shell_env_var* prev;
|
||||
@shell_env_var* next;
|
||||
U8 key[256];
|
||||
U8 value[1024];
|
||||
};
|
||||
|
||||
class @shell_autocomplete
|
||||
{
|
||||
I64 depth;
|
||||
I64 length[8];
|
||||
U8*** entries;
|
||||
};
|
||||
|
||||
class @shell_history
|
||||
{
|
||||
I64 index;
|
||||
I64 limit;
|
||||
I64 pos;
|
||||
U8** entries;
|
||||
};
|
||||
|
||||
class @shell_readline
|
||||
{
|
||||
@shell_autocomplete autocomplete;
|
||||
@shell_history history;
|
||||
};
|
||||
|
||||
class @shell
|
||||
{
|
||||
CFifoU8* input;
|
||||
CFifoU8* output;
|
||||
CTask* task;
|
||||
Bool break;
|
||||
Bool exit;
|
||||
I64 answer;
|
||||
@shell_env_var* env;
|
||||
@shell_history history;
|
||||
@shell_readline readline;
|
||||
@session* session;
|
||||
U8 cwd[4096];
|
||||
U8 PS1[512];
|
||||
U8 PS2[512];
|
||||
U8 PS3[512];
|
||||
U8 PS4[512];
|
||||
};
|
||||
|
||||
"shell ";
|
Loading…
Add table
Add a link
Reference in a new issue