Cleanup CLI history
Add all the spaces :)
This commit is contained in:
parent
ad9a081e8b
commit
add8b3e90c
@ -398,7 +398,7 @@ inline void CLI_tabCompletion()
|
||||
}
|
||||
}
|
||||
|
||||
inline int wrap(int kX, int const kLowerBound, int const kUpperBound)
|
||||
inline int CLI_wrap( int kX, int const kLowerBound, int const kUpperBound )
|
||||
{
|
||||
int range_size = kUpperBound - kLowerBound + 1;
|
||||
|
||||
@ -408,8 +408,10 @@ inline int wrap(int kX, int const kLowerBound, int const kUpperBound)
|
||||
return kLowerBound + (kX - kLowerBound) % range_size;
|
||||
}
|
||||
|
||||
inline void cli_saveHistory(char *buff) {
|
||||
if (buff==NULL) {
|
||||
inline void CLI_saveHistory( char *buff )
|
||||
{
|
||||
if ( buff == NULL )
|
||||
{
|
||||
//clear the item
|
||||
CLIHistoryBuffer[ CLIHistoryTail ][ 0 ] = '\0';
|
||||
return;
|
||||
@ -423,7 +425,8 @@ inline void cli_saveHistory(char *buff) {
|
||||
}
|
||||
}
|
||||
|
||||
void cli_retreiveHistory(int index) {
|
||||
void CLI_retreiveHistory( int index )
|
||||
{
|
||||
char *histMatch = CLIHistoryBuffer[ index ];
|
||||
|
||||
// Reset the buffer
|
||||
|
@ -111,11 +111,11 @@ void CLI_process();
|
||||
void CLI_registerDictionary( const CLIDictItem *cmdDict, const char* dictName );
|
||||
void CLI_argumentIsolation( char* string, char** first, char** second );
|
||||
|
||||
int wrap( int x, int low, int high );
|
||||
int CLI_wrap( int x, int low, int high );
|
||||
void CLI_commandLookup();
|
||||
void CLI_tabCompletion();
|
||||
void cli_saveHistory( char *buff );
|
||||
void cli_retreiveHistory( int index );
|
||||
void CLI_saveHistory( char *buff );
|
||||
void CLI_retreiveHistory( int index );
|
||||
|
||||
// CLI Command Functions
|
||||
void cliFunc_arch ( char* args );
|
||||
|
Reference in New Issue
Block a user