Last active
December 8, 2023 13:25
-
-
Save h4rm0n1c/d99acb92da6a5b8fd8f7ccc79b9e8d44 to your computer and use it in GitHub Desktop.
WYSE WY-60 hacking/programming/secrets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#switch to WY60 from VT100 mode, required for following command | |
echo -en '\x1b[42h' > /dev/ttyS0 | |
#SET TIME IN WY60 MODE, expects HHMM in 24HR format | |
CURRENTTIME=`date +%H%M` | |
echo -en '\x1bc8'${CURRENTTIME} > /dev/ttyS0 | |
#switch to VT100 from WY60, ready for end user interaction with time set! | |
echo -en '\x1b~;' > /dev/ttyS0 | |
#select secondary character set, send Pi to terminal, Switch Back to primary, works | |
echo -en '\x1bcE\x63\x1bcD' > /dev/ttyS0 | |
#clear screen and rehome cursor in VT100 mode | |
echo -ne '\x1b[2J' > /dev/ttyS0 | |
echo -ne '\x1b[H' > /dev/ttyS0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment