| 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; |