diff options
Diffstat (limited to 'main2.c')
| -rw-r--r-- | main2.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +#include <stdio.h>
+#include <conio.h>
+
+#define ASCII_ESC 27
+
+int main() {
+ int c;
+ printf("Hallo\n");
+ c = getch();
+ printf("%c[2J", ASCII_ESC);
+ printf("%c[H", ASCII_ESC);
+ printf("c: %c\n", c);
+
+ c = getch();
+
+ return 0;
+}
\ No newline at end of file |
