| 90 | } |
| 91 | |
| 92 | void print_text(color_ostream::color_value clr, const std::string &chunk) |
| 93 | { |
| 94 | if(!in_batch && state == con_lineedit) |
| 95 | { |
| 96 | clearline(); |
| 97 | |
| 98 | color(clr); |
| 99 | print(chunk.c_str()); |
| 100 | |
| 101 | reset_color(); |
| 102 | prompt_refresh(); |
| 103 | } |
| 104 | else |
| 105 | { |
| 106 | color(clr); |
| 107 | print(chunk.c_str()); |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | void begin_batch() |
| 112 | { |