CMDHIST: a basic command to display command history Usage: cmdhist
| 101 | // CMDHIST: a basic command to display command history |
| 102 | // Usage: cmdhist |
| 103 | void Console::BasicCmdcmdhist(Console* console, const char* text, void* user_data) |
| 104 | { |
| 105 | long index = console->mNewcmd - console->mNumcmdhist; |
| 106 | for(long i=0;i<console->mNumcmdhist;i++) |
| 107 | { |
| 108 | if( index > CONSOLE_MAX_HIST ) |
| 109 | index -= CONSOLE_MAX_HIST; |
| 110 | console->out(console->mCmdhist[index] ); |
| 111 | index++; |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 116 | /** |