MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / StdConsole

Method StdConsole

Engine/source/platformPOSIX/POSIXConsole.cpp:138–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138StdConsole::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
162StdConsole::~StdConsole()
163{

Callers

nothing calls this directly

Calls 1

addConsumerFunction · 0.85

Tested by

no test coverage detected