File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -694,10 +694,8 @@ int main(int argc, char ** argv) {
694694 if (last_output.find (antiprompt, search_start_pos) != std::string::npos) {
695695 if (params.interactive ) {
696696 is_interacting = true ;
697- console::set_display (console::user_input);
698697 }
699698 is_antiprompt = true ;
700- fflush (stdout);
701699 break ;
702700 }
703701 }
@@ -721,8 +719,6 @@ int main(int argc, char ** argv) {
721719
722720 is_interacting = true ;
723721 printf (" \n " );
724- console::set_display (console::user_input);
725- fflush (stdout);
726722 } else if (params.instruct ) {
727723 is_interacting = true ;
728724 }
@@ -747,6 +743,9 @@ int main(int argc, char ** argv) {
747743 printf (" %s" , buffer.c_str ());
748744 }
749745
746+ // color user input only
747+ console::set_display (console::user_input);
748+
750749 std::string line;
751750 bool another_line = true ;
752751 do {
You can’t perform that action at this time.
0 commit comments