Skip to content

Commit

Permalink
lush: force flush stdout after prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Dec 30, 2024
1 parent 4a9f7ed commit 6efbda6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lush/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ int main() {

for(;;) {
printf("\e[0;96m%s \e[0;9%cm%c\e[0m ", getwd(wd), promptColor, uid ? '$' : '#');
fflush(stdout);
if(line) free(line);

line = NULL;
Expand Down

0 comments on commit 6efbda6

Please sign in to comment.