New version of Squa.sh
posted 2009-04-20 22:57:28, link to this article
I've made some changes to squa.sh, my Bash script Pong clone.
The first version made extensivce use of tput(1) to update
the terminal cursor position.
I compared the resulting control sequences sent to various terminal
versions, and all seemed to be in the format:
^[${row};${column}H
Therefore this new version uses pre cooked control sequences instead of forking tput like mad. dd(1) is still spawned each iteration of the main loop to capture user input, read(1) smallest timeout is 1 second, so this is no option, or the game would be no much fun. ;)
Also terminal size detection is fixed for NetBSD now, which means that the new version of squa.sh runs on all hardware in my house right now!
You can grab a copy of the new version at http://isquared.nl/src/squa.sh-ng/squa.sh.
Cobalt status LCD, NetBSD version
posted 2008-11-09 00:18:41, link to this article
Here is a NetBSD/Cobalt version of my Cobalt Qube/Raq LCD status screen updater.The Debian linux version is described in an earlier post on this page, here: Cobalt Qube status LCD system monitor. This script works fine on NetBSD/Cobalt 3.0, I haven't tested it on other versions yet. You can download the new NetBSD version at http://isquared.nl/src/lcdbanner-netbsd.sh
isquared.nl rss (atom)