Terminal control/Clear the screen: Difference between revisions
Content added Content deleted
m (moved Terminal Control/Clear the screen to Terminal control/Clear the screen: capitalization policy) |
No edit summary |
||
Line 16: | Line 16: | ||
CLS |
CLS |
||
=={{header|C}}== |
|||
The C version of the minesweeper game uses curses. |
|||
[[Minesweeper_game#C]] |
|||
If perhaps clear screen isn't used, call the function cls |
|||
<lang C> |
|||
void cls(void) { |
|||
int printf(char*,...); |
|||
printf("%c[2J",27); |
|||
} |
|||
</lang> |
|||
to do the trick. |
|||
=={{header|Forth}}== |
=={{header|Forth}}== |