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) {
694
694
if (last_output.find (antiprompt, search_start_pos) != std::string::npos) {
695
695
if (params.interactive ) {
696
696
is_interacting = true ;
697
- console::set_display (console::user_input);
698
697
}
699
698
is_antiprompt = true ;
700
- fflush (stdout);
701
699
break ;
702
700
}
703
701
}
@@ -721,8 +719,6 @@ int main(int argc, char ** argv) {
721
719
722
720
is_interacting = true ;
723
721
printf (" \n " );
724
- console::set_display (console::user_input);
725
- fflush (stdout);
726
722
} else if (params.instruct ) {
727
723
is_interacting = true ;
728
724
}
@@ -747,6 +743,9 @@ int main(int argc, char ** argv) {
747
743
printf (" %s" , buffer.c_str ());
748
744
}
749
745
746
+ // color user input only
747
+ console::set_display (console::user_input);
748
+
750
749
std::string line;
751
750
bool another_line = true ;
752
751
do {
You can’t perform that action at this time.
0 commit comments