Kintsugi OS 0.5.0
x86 Monolithic OS
Loading...
Searching...
No Matches
shell.h File Reference
#include "../kklibc/ctypes.h"

Go to the source code of this file.

Classes

struct  shell_command_t
 

Macros

#define SHELL_LINE_SIZE   256
 
#define SHELL_MAX_ARGS   32
 

Enumerations

enum  shell_status_t { SHELL_OK = 0 , SHELL_ERROR = 1 , SHELL_USAGE = 2 , SHELL_NOT_FOUND = 127 }
 

Functions

void shell_init (void)
 
void shell_poll (void)
 
int shell_execute (char *line)
 
int shell_parse (char *line, char **argv, int capacity)
 
int shell_last_status (void)
 
const shell_command_t * shell_command_at (u32 index)
 
void shell_complete (char *line, u32 *length, u32 *cursor)
 
void line_editor_init (void)
 
void line_editor_key (int key)
 

Variables

const shell_command_t shell_system_commands []
 
const shell_command_t shell_fs_commands []
 
const shell_command_t shell_diag_commands []
 
const shell_command_t shell_misc_commands []
 

Macro Definition Documentation

◆ SHELL_LINE_SIZE

#define SHELL_LINE_SIZE   256

◆ SHELL_MAX_ARGS

#define SHELL_MAX_ARGS   32

Enumeration Type Documentation

◆ shell_status_t

Enumerator
SHELL_OK 
SHELL_ERROR 
SHELL_USAGE 
SHELL_NOT_FOUND 

Function Documentation

◆ line_editor_init()

void line_editor_init ( void  )

◆ line_editor_key()

void line_editor_key ( int  key)

◆ shell_command_at()

const shell_command_t * shell_command_at ( u32  index)

◆ shell_complete()

void shell_complete ( char *  line,
u32 *  length,
u32 *  cursor 
)

◆ shell_execute()

int shell_execute ( char *  line)

◆ shell_init()

void shell_init ( void  )

◆ shell_last_status()

int shell_last_status ( void  )

◆ shell_parse()

int shell_parse ( char *  line,
char **  argv,
int  capacity 
)

◆ shell_poll()

void shell_poll ( void  )

Variable Documentation

◆ shell_diag_commands

const shell_command_t shell_diag_commands[]
extern

◆ shell_fs_commands

const shell_command_t shell_fs_commands[]
extern

◆ shell_misc_commands

const shell_command_t shell_misc_commands[]
extern

◆ shell_system_commands

const shell_command_t shell_system_commands[]
extern