aboutsummaryrefslogtreecommitdiff
path: root/forth/forth/vt100-test.fs
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-09-29 01:02:00 +0200
committerDimitri Sokolyuk <demon@dim13.org>2018-09-29 01:02:00 +0200
commit79cabd5b1c8bcd9f50dc49e77776e713a57dff48 (patch)
tree6eb73857e9c174610839291cf05a02d77fc82b8c /forth/forth/vt100-test.fs
parent247df3bb9d4c89d4e5ff18dcc23ba1c9532f28c0 (diff)
parent110a6411bae421260476eacf6173897c1d1f4b8a (diff)
Merge branch 'master' of dim13.org:elegoo
Diffstat (limited to 'forth/forth/vt100-test.fs')
-rw-r--r--forth/forth/vt100-test.fs36
1 files changed, 36 insertions, 0 deletions
diff --git a/forth/forth/vt100-test.fs b/forth/forth/vt100-test.fs
new file mode 100644
index 0000000..e3982c4
--- /dev/null
+++ b/forth/forth/vt100-test.fs
@@ -0,0 +1,36 @@
+\ *********************************************************************
+\
+\ Filename: vt100-test.txt
+\ Date: 02.03.2014
+\ FF Version: 5.0
+\ Author: Attila Herman
+\ *********************************************************************
+\ FlashForth is licensed acording to the GNU General Public License*
+\ *********************************************************************
+\ Frequently used commands for VT100 compatible terminals
+\ Unfortunately there is some differencies between terminal emulators!
+\ Maybe some words doesn't work, or does another function depending on
+\ terminal.
+
+-vt100-test
+marker -vt100-test
+
+: vt100-test
+ \cls \c-
+ 2 8 \cp
+ \bri s" *** " type
+ \res \rev s" Terminal test " type \res
+ \bri s" ***" type
+ 6 8 \cp \unl s" ^^^^^^^^^^^^^^^^^^^^^^" type
+ 8 8 \cp \res s" Press any key to quit! " type
+ \res \bri \rev
+ 0
+ begin
+ 4 #16 \cp bl emit
+ dup . 1+ s" sec " type
+ #1000 ms
+ key?
+ until
+ key 2drop \res 5 \cdn \nl \c+
+;
+