AnalogTerm2: More examples in README
authorMatthew Mondor <mmondor@pulsar-zone.net>
Wed, 10 May 2023 00:09:30 +0000 (00:09 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Wed, 10 May 2023 00:09:30 +0000 (00:09 +0000)
mmsoftware/analogterm2/README.txt
mmsoftware/analogterm2/tests/at2-aliases.sh

index 4fe4474..adb0a6e 100644 (file)
@@ -173,3 +173,30 @@ $ printf '\033[?4h\033[?658467;65543;2h'
 
 Restore fast scrolling:
 $ printf '\033[?4l\033[?658467;65544h'
+
+
+A collection of example/utility aliases is included in tests/ and
+installed in /usr/local/share/analogterm2/ that can be optionally
+sourced in interactive shell startup scripts like ~/.shrc or
+~/.bashrc using:
+. /usr/local/share/analogterm2/at2-aliases.sh
+
+The author likes to on a whim change terminal parameters and fonts
+on the fly, depending on mood, lighting conditions, the task at
+hand, etc.
+
+
+Here is an example to setup a fancy custom statistics display window
+utility.  This also makes use of some of the above aliases.
+
+$ ( atmono; atblue3; atintscan2; atupper; atline; atmixed2; atcurnodisable; cat /usr/local/share/analogterm2/demonseed-font-ansi.txt; atslowscroll; atslowtext3 ) >/tmp/ds-stat-setup.txt
+
+Assuming that ds-stat-setup.txt was also added to
+/usr/local/share/analogterm2/, example custom menu/launcher item
+commands:
+
+/usr/local/bin/analogterm2 -w80 -h25 -l2 -e '/bin/cat /usr/local/share/analogterm2/ds-stat-setup.txt; /usr/bin/systat vmstat 1'
+/usr/local/bin/analogterm2 -w80 -h50 -e '/bin/cat /usr/local/share/analogterm2/ds-stat-setup.txt; /usr/bin/top'
+/usr/local/bin/analogterm2 -WS -w80 -h25 -e '/bin/cat /usr/local/share/analogterm2/ds-stat-setup.txt; clear; fortune'
+
+Exercise left to the reader for a window to launch wargames(6). :)
index 2d1fab7..abcff4f 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
+#
 # Example/utility ANSI and ATC sequences for AnalogTerm ][
 # This file can be sourced from ~/.shrc, ~/.bashrc, etc.