MCPcopy Create free account
hub / github.com/DFHack/dfhack / lineedit

Method lineedit

library/Console-windows.cpp:375–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373 }
374 }
375 int lineedit(const std::string & prompt, std::string & output, std::recursive_mutex * lock, CommandHistory & ch)
376 {
377 if(state == con_lineedit)
378 return Console::FAILURE;
379 output.clear();
380 reset_color();
381 int count;
382 state = con_lineedit;
383 this->prompt = prompt;
384 count = prompt_loop(lock, ch);
385 if(count > Console::FAILURE)
386 output = raw_buffer;
387 state = con_unclaimed;
388 print("\n");
389 return count;
390 }
391
392 FILE * dfout_C;
393 int rawmode;

Callers

nothing calls this directly

Calls 2

printFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected