Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
0.18.1
Browse files Browse the repository at this point in the history
CLIBASIC now cleans up stdin before exiting on *nix
  • Loading branch information
PQCraft authored Aug 5, 2021
1 parent 3a8536d commit 786002a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clibasic.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ void cleanExit() {
curx = 0;
while (!curx) {getCurPos();}
if (curx != 1) putchar('\n');
#ifdef __unix__
int i = kbhit();
while (i > 0) {getchar(); i--;}
#endif
#ifndef _WIN_NO_VT
fputs("\e[2K", stdout);
#endif
Expand Down

0 comments on commit 786002a

Please sign in to comment.