shell_server_misc.h
error_t shellServerGetFirstCommandLine(ShellServerSession *session, const char_t **commandLine, size_t *length)
Extract first command line from history.
Definition: shell_server_misc.c:833
error_t shellServerGetLastCommandLine(ShellServerSession *session, const char_t **commandLine, size_t *length)
Extract last command line from history.
Definition: shell_server_misc.c:875
error_t shellServerProcessCommandLine(ShellServerSession *session, char_t *commandLine)
Command line processing.
Definition: shell_server_misc.c:588
ShellServerSession * shellServerFindSession(ShellServerContext *context, SshChannel *channel)
Find the shell session that matches a given SSH channel.
Definition: shell_server_misc.c:381
error_t shellServerChannelRequestCallback(SshChannel *channel, const SshString *type, const uint8_t *data, size_t length, void *param)
SSH channel request callback.
Definition: shell_server_misc.c:67
SSH secure shell server.
void shellServerCloseSession(ShellServerSession *session)
Close a shell session.
Definition: shell_server_misc.c:500
error_t shellServerParseTermModes(ShellServerSession *session, const uint8_t *termModes, size_t length)
Parse encoded terminal modes.
Definition: shell_server_misc.c:522
ShellServerSession * shellServerOpenSession(ShellServerContext *context, SshChannel *channel)
Open a new shell session.
Definition: shell_server_misc.c:416
error_t shellServerGetPrevCommandLine(ShellServerSession *session, const char_t **commandLine, size_t *length)
Extract previous command line from history.
Definition: shell_server_misc.c:723
void shellServerTick(ShellServerContext *context)
Handle periodic operations.
Definition: shell_server_misc.c:52
error_t shellServerGetNextCommandLine(ShellServerSession *session, const char_t **commandLine, size_t *length)
Extract next command line from history.
Definition: shell_server_misc.c:775
void shellServerAddCommandLine(ShellServerSession *session, const char_t *commandLine)
Add command line to history.
Definition: shell_server_misc.c:620
Global request and channel request handling.