File wsh_shell_esc.c
FileList > src > wsh_shell_esc.c
Go to the source code of this file
#include "wsh_shell_esc.h"
Public Static Attributes
| Type | Name |
|---|---|
| const WshShellEsc_Action_t | WshShellEsc_SeqHandlers = /* multi line expression */ |
Public Functions
| Type | Name |
|---|---|
| void | WshShellEsc_Handler (WshShellHistory_IO_t * pHistIO, WshShellIO_CommandLine_t * pCommandLine, WshShellEsc_Storage_t * pEscStorage, const WshShell_Char_t symbol) Handles incoming escape sequence character. |
| WshShell_Bool_t | WshShellEsc_IsSeqStarted (WshShellEsc_Storage_t * pEscStorage) Checks if escape sequence is in progress. |
| void | WshShellEsc_StartSeq (WshShellEsc_Storage_t * pEscStorage) Starts a new escape sequence. |
Public Static Functions
| Type | Name |
|---|---|
| void | WshShellEsc_ArrowDown (WshShellHistory_IO_t * pHistIO, WshShellIO_CommandLine_t * pCommandLine) |
| void | WshShellEsc_ArrowLeft (WshShellHistory_IO_t * pHistIO, WshShellIO_CommandLine_t * pCommandLine) |
| void | WshShellEsc_ArrowRight (WshShellHistory_IO_t * pHistIO, WshShellIO_CommandLine_t * pCommandLine) |
| void | WshShellEsc_ArrowUp (WshShellHistory_IO_t * pHistIO, WshShellIO_CommandLine_t * pCommandLine) |
| void | WshShellEsc_ClearStorage (WshShellEsc_Storage_t * pEscStorage) |
Public Static Attributes Documentation
variable WshShellEsc_SeqHandlers
Public Functions Documentation
function WshShellEsc_Handler
Handles incoming escape sequence character.
Matches current buffer against known ANSI sequences and triggers appropriate handler.
Parameters:
pHistIOPointer to shell history interfacepCommandLinePointer to input interaction bufferpEscStoragePointer to escape sequence buffersymbolIncoming character to append
function WshShellEsc_IsSeqStarted
Checks if escape sequence is in progress.
Parameters:
pEscStoragePointer to escape sequence buffer
Returns:
WshShell_Bool_t true if sequence has started
function WshShellEsc_StartSeq
Starts a new escape sequence.
Initializes the escape buffer with ESC char.
Parameters:
pEscStoragePointer to escape sequence buffer
Public Static Functions Documentation
function WshShellEsc_ArrowDown
function WshShellEsc_ArrowLeft
function WshShellEsc_ArrowRight
function WshShellEsc_ArrowUp
function WshShellEsc_ClearStorage
The documentation for this class was generated from the following file src/wsh_shell_esc.c