diff options
| author | Patrick | 2023-07-22 16:18:26 +0200 |
|---|---|---|
| committer | Patrick | 2023-07-22 16:18:26 +0200 |
| commit | 8827b84eeea76b08632d0f7c52488f5af2f83092 (patch) | |
| tree | f2b22f861267e0c7f695026cc537408796667852 | |
| parent | 61d0c7f8a017104e82cb62356d6591f8101e07db (diff) | |
| download | iftint-8827b84eeea76b08632d0f7c52488f5af2f83092.tar.gz iftint-8827b84eeea76b08632d0f7c52488f5af2f83092.zip | |
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 |
