File diff r13023:9f6499c8d4fb → r13024:48c81d0b078a
src/console_gui.cpp
Show inline comments
 
@@ -138,13 +138,13 @@ static void IConsoleClearCommand()
 
{
 
	memset(_iconsole_cmdline.buf, 0, ICON_CMDLN_SIZE);
 
	_iconsole_cmdline.size = 1; // only terminating zero
 
	_iconsole_cmdline.width = 0;
 
	_iconsole_cmdline.caretpos = 0;
 
	_iconsole_cmdline.caretxoffs = 0;
 
	InvalidateWindow(WC_CONSOLE, 0);
 
	SetWindowDirty(WC_CONSOLE, 0);
 
}
 

	
 
static inline void IConsoleResetHistoryPos() {_iconsole_historypos = ICON_HISTORY_SIZE - 1;}
 

	
 

	
 
static void IConsoleHistoryAdd(const char *cmd);
 
@@ -467,8 +467,8 @@ static void IConsoleHistoryNavigate(int 
 
 * @param colour_code the colour of the command. Red in case of errors, etc.
 
 * @param string the message entered or output on the console (notice, error, etc.)
 
 */
 
void IConsoleGUIPrint(ConsoleColour colour_code, char *str)
 
{
 
	new IConsoleLine(str, (TextColour)colour_code);
 
	InvalidateWindow(WC_CONSOLE, 0);
 
	SetWindowDirty(WC_CONSOLE, 0);
 
}