File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
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,7 +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
722
fflush (stdout);
726
723
} else if (params.instruct ) {
727
724
is_interacting = true ;
@@ -747,6 +744,9 @@ int main(int argc, char ** argv) {
747
744
printf (" %s" , buffer.c_str ());
748
745
}
749
746
747
+ // color user input only
748
+ console::set_display (console::user_input);
749
+
750
750
std::string line;
751
751
bool another_line = true ;
752
752
do {
You can’t perform that action at this time.
0 commit comments