Skip to content

Instantly share code, notes, and snippets.

@h4rm0n1c
Last active December 8, 2023 13:25
Show Gist options
  • Save h4rm0n1c/d99acb92da6a5b8fd8f7ccc79b9e8d44 to your computer and use it in GitHub Desktop.
Save h4rm0n1c/d99acb92da6a5b8fd8f7ccc79b9e8d44 to your computer and use it in GitHub Desktop.
WYSE WY-60 hacking/programming/secrets
#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