Natural Tiny Shell (NT-Shell) library is a tiny shell library for a small embedded system. The interface is really simple. You should only know ntshell_execute in ntshell.h. So you can port it to any embedded system easily. Please enjoy your small embedded system with it. :)

Dependents:   NaturalTinyShell_TestProgram

Embed: (wiki syntax)

« Back to documentation index

ntshell.h File Reference

ntshell.h File Reference

小規模組み込みシステム向けのシェルシステムの定義。 More...

Go to the source code of this file.

Functions

void ntshell_version (int *major, int *minor, int *release)
 Natural Tiny Shellのバージョンを返す。
void ntshell_execute (ntshell_t *p, int(*func_read)(char *buf, int cnt), int(*func_write)(const char *buf, int cnt), int(*func_cb)(const char *text))
 Natural Tiny Shellを実行する。

Detailed Description

小規模組み込みシステム向けのシェルシステムの定義。

Author:
Shinichiro Nakamura

Definition in file ntshell.h.


Function Documentation

void ntshell_execute ( ntshell_t *  p,
int(*)(char *buf, int cnt)  func_read,
int(*)(const char *buf, int cnt)  func_write,
int(*)(const char *text)  func_cb 
)

Natural Tiny Shellを実行する。

この関数は実行を返さない。

Parameters:
parserVT100パーサー。
editorテキストエディタ。
historyテキストヒストリ。
func_readシリアルリード関数。
func_writeシリアルライト関数。
func_cbコールバック関数。

Definition at line 510 of file ntshell.c.

void ntshell_version ( int *  major,
int *  minor,
int *  release 
)

Natural Tiny Shellのバージョンを返す。

返すバージョンはリリースバージョンである。

Parameters:
majorメージャーバージョン。
minorマイナーバージョン。
releaseリリースバージョン。

Definition at line 492 of file ntshell.c.