Skip to content

Instantly share code, notes, and snippets.

@miller45
Last active November 5, 2019 19:05
Show Gist options
  • Save miller45/5e9ae7dde5d2094de7c23cb9bf45286b to your computer and use it in GitHub Desktop.
Save miller45/5e9ae7dde5d2094de7c23cb9bf45286b to your computer and use it in GitHub Desktop.
launches a flagship app with newfsterm in xterm while checking for oldschool keyboard mapping like HOME or END key
#!/bin/sh
# launches flagship program via xterm with parameters correction keyboard mapping (for old clipper software)
xterm -xrm \
"XTerm*VT100.Translations: #override \n\
<KeyPress> Home : string(0x01)\n\
<KeyPress> End : string(0x06)\n" \
-e newfsterm $1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment