| 136 | } |
| 137 | |
| 138 | StdConsole::StdConsole() |
| 139 | { |
| 140 | for (S32 iIndex = 0; iIndex < MAX_CMDS; iIndex ++) |
| 141 | rgCmds[iIndex][0] = '\0'; |
| 142 | |
| 143 | stdOut = dup(1); |
| 144 | stdIn = dup(0); |
| 145 | stdErr = dup(2); |
| 146 | |
| 147 | // Ensure in buffer is null terminated after allocation |
| 148 | inbuf[0] = 0x00; |
| 149 | |
| 150 | iCmdIndex = 0; |
| 151 | stdConsoleEnabled = false; |
| 152 | stdConsoleInputEnabled = false; |
| 153 | Con::addConsumer(stdConsoleConsumer); |
| 154 | inpos = 0; |
| 155 | lineOutput = false; |
| 156 | inBackground = false; |
| 157 | originalTermState = NULL; |
| 158 | |
| 159 | Process::notify(this, &StdConsole::process, PROCESS_LAST_ORDER); |
| 160 | } |
| 161 | |
| 162 | StdConsole::~StdConsole() |
| 163 | { |
nothing calls this directly
no test coverage detected