summaryrefslogtreecommitdiff
path: root/Userland/tst.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-28 01:44:53 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-28 01:44:53 +0200
commit43475f248be4798b3400c14e0a019fcbc809e6db (patch)
treeba1a8316359b1c0b9ab7980dd30e62b6e79c5709 /Userland/tst.cpp
parentea6221dd0621918658265fbb0b7c248cb909022d (diff)
downloadserenity-43475f248be4798b3400c14e0a019fcbc809e6db.zip
Add save/unsave cursor escape sequences.
Also added a little terminal test program called /bin/tst.
Diffstat (limited to 'Userland/tst.cpp')
-rw-r--r--Userland/tst.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Userland/tst.cpp b/Userland/tst.cpp
new file mode 100644
index 0000000000..31a1439e64
--- /dev/null
+++ b/Userland/tst.cpp
@@ -0,0 +1,11 @@
+#include <LibC/stdio.cpp>
+
+int main(int argc, char** argv)
+{
+ printf("Counting to 100000: \033[s");
+ for (unsigned i = 0; i <= 100000; ++i) {
+ printf("\033[u\033[s%u", i);
+ }
+ printf("\n");
+ return 0;
+}