GadgetSeed
0.9.6
|
コマンドシェル [詳解]
#include "sysconfig.h"
#include "str.h"
#include "lineedit.h"
#include "history.h"
#include "console.h"
データ構造 | |
struct | st_file_operation |
ファイル種別に対するコマンド実行定義 [詳解] | |
struct | st_shell_command |
シェルコマンド構造体 [詳解] | |
struct | st_shell |
シェルデータ構造体 [詳解] | |
マクロ定義 | |
#define | GSC_SHELL_MAX_COM_ARGV 10 |
#define | CMDATTR_CONT 0x0001 |
#define | CMDATTR_ARGLESS 0x0002 |
#define | CMDATTR_CTAL (CMDATTR_CONT|CMDATTR_ARGLESS) |
関数 | |
void | init_shell (struct st_shell *shell, struct st_shell_command *const *coms, const uchar *prompt) |
シェルを初期化する [詳解] | |
void | print_prompt (struct st_shell *shell) |
プロンプトを表示する [詳解] | |
void | dispose_shell_line (struct st_shell *shell) |
編集中のコマンドラインを破棄する [詳解] | |
int | exec_shell_command (struct st_shell *shell, uchar *str) |
str文字列のコマンドを実行する [詳解] | |
void | print_command_usage (const struct st_shell_command *command) |
int | task_shell (struct st_shell *shell, uchar ch) |
文字列編集タスク [詳解] | |
void | startup_shell (void) |
int | add_shell_command (struct st_shell_command *command) |
int | exec_command (uchar *str) |
int | escaped_str (uchar *dstr, uchar *sstr) |
文字列をshellで処理可能なようにエスケープシーケンスを追加する [詳解] | |
void | set_file_operation (const struct st_file_operation *const fileop[]) |
int | do_file_operation (uchar *str, uchar *arg) |
void dispose_shell_line | ( | struct st_shell * | shell | ) |
str文字列のコマンドを実行する
[in] | shell | shellデータ構造体ポインタ |
[in] | str | コマンド文字列ポインタ |
参照先 GSC_SHELL_MAX_LINE_COLUMS, st_shell::lastCom, st_shell::shell_coms, strncopy().
void init_shell | ( | struct st_shell * | shell, |
struct st_shell_command *const * | coms, | ||
const uchar * | prompt | ||
) |
void print_prompt | ( | struct st_shell * | shell | ) |