equal
deleted
inserted
replaced
179 IConsoleResetHistoryPos(); |
179 IConsoleResetHistoryPos(); |
180 SetWindowDirty(w); |
180 SetWindowDirty(w); |
181 } |
181 } |
182 break; |
182 break; |
183 default: |
183 default: |
184 if (IsValidAsciiChar(e->keypress.ascii)) { |
184 if (IsValidAsciiChar(e->keypress.ascii, CS_ALPHANUMERAL)) { |
185 _iconsole_scroll = ICON_BUFFER; |
185 _iconsole_scroll = ICON_BUFFER; |
186 InsertTextBufferChar(&_iconsole_cmdline, e->keypress.ascii); |
186 InsertTextBufferChar(&_iconsole_cmdline, e->keypress.ascii); |
187 IConsoleResetHistoryPos(); |
187 IConsoleResetHistoryPos(); |
188 SetWindowDirty(w); |
188 SetWindowDirty(w); |
189 } else { |
189 } else { |
1054 bool foundtoken = false; |
1054 bool foundtoken = false; |
1055 |
1055 |
1056 if (cmdstr[0] == '#') return; // comments |
1056 if (cmdstr[0] == '#') return; // comments |
1057 |
1057 |
1058 for (cmdptr = cmdstr; *cmdptr != '\0'; cmdptr++) { |
1058 for (cmdptr = cmdstr; *cmdptr != '\0'; cmdptr++) { |
1059 if (!IsValidAsciiChar(*cmdptr)) { |
1059 if (!IsValidAsciiChar(*cmdptr, CS_ALPHANUMERAL)) { |
1060 IConsoleError("command contains malformed characters, aborting"); |
1060 IConsoleError("command contains malformed characters, aborting"); |
1061 IConsolePrintF(_icolour_err, "ERROR: command was: '%s'", cmdstr); |
1061 IConsolePrintF(_icolour_err, "ERROR: command was: '%s'", cmdstr); |
1062 return; |
1062 return; |
1063 } |
1063 } |
1064 } |
1064 } |