Skip to content

Struct WshShellHistory_Data_t

ClassList > WshShellHistory_Data_t

Internal structure for storing command history buffer. More...

  • #include <wsh_shell_history.h>

Public Attributes

Type Name
WshShell_Size_t HeadIdx
WshShell_Size_t LastSavedCmdIdx
WshShell_Bool_t LimitIsReached
WSH_SHELL_HIST_CMD_DIR_t PrevDir
WshShell_Char_t StorageBuff
WshShell_Size_t TailIdx

Detailed Description

This structure contains the command history as a raw character buffer and related metadata for navigation and storage management.

Public Attributes Documentation

variable HeadIdx

WshShell_Size_t WshShellHistory_Data_t::HeadIdx;

Index of the buffer start.


variable LastSavedCmdIdx

WshShell_Size_t WshShellHistory_Data_t::LastSavedCmdIdx;

Index of the last saved command.


variable LimitIsReached

WshShell_Bool_t WshShellHistory_Data_t::LimitIsReached;

Flag indicating buffer search boundary reached.


variable PrevDir

WSH_SHELL_HIST_CMD_DIR_t WshShellHistory_Data_t::PrevDir;

Last direction of history navigation.


variable StorageBuff

WshShell_Char_t WshShellHistory_Data_t::StorageBuff[WSH_SHELL_HISTORY_BUFF_SIZE];

Circular buffer for commands.


variable TailIdx

WshShell_Size_t WshShellHistory_Data_t::TailIdx;

Index of the buffer end.



The documentation for this class was generated from the following file src/wsh_shell_history.h