]> gitweb.ps.run Git - iftint/commitdiff
main2.c
authorPatrick <patrick.schoenberger@posteo.de>
Sat, 22 Jul 2023 14:18:26 +0000 (16:18 +0200)
committerPatrick <patrick.schoenberger@posteo.de>
Sat, 22 Jul 2023 14:18:26 +0000 (16:18 +0200)
main2.c [new file with mode: 0644]

diff --git a/main2.c b/main2.c
new file mode 100644 (file)
index 0000000..e462674
--- /dev/null
+++ b/main2.c
@@ -0,0 +1,17 @@
+#include <stdio.h>\r
+#include <conio.h>\r
+\r
+#define ASCII_ESC 27\r
+\r
+int main() {\r
+    int c;\r
+    printf("Hallo\n");\r
+    c = getch();\r
+    printf("%c[2J", ASCII_ESC);\r
+    printf("%c[H", ASCII_ESC);\r
+    printf("c: %c\n", c);\r
+\r
+    c = getch();\r
+\r
+    return 0;\r
+}
\ No newline at end of file