Skip to content

Commit

Permalink
CLS: Erase ^L, if it shows up as a garbage character
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Durlej committed Jan 5, 2020
1 parent defd526 commit 20f873b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cls.c
Expand Up @@ -53,7 +53,7 @@

int cmd_cls (char * param) {
(void)param;
outc( '\xc' ); /* ^L Form feed */
outs("\014\b \b"); /* ^L Form feed */

/* Output stream is neither a file nor NUL nor CLOCK$ */
if(((fdattr(1) ^ 0x80) & (0x80 | 0x08 | 0x04)) == 0) {
Expand Down

0 comments on commit 20f873b

Please sign in to comment.