modified on 26 September 2014 at 14:34 ••• 9,120 views

QVTerm

From Maties Ubuntu

Jump to: navigation, search

See: ftp://ftp.sun.ac.za/win32InetKeyTeraTerm/TeraTerm/TeraTermUserManual.pdf

Note: It would be nice if someone would make a Debian package for easy installation and setup.

Step 1

As the "root" or "sudo" user, append the contents of XTerm.qvt below to /etc/X11/app-defaults/XTerm (Note from a user: I only got this to work by adding the contents to /etc/X11/app-defaults/XTerm-color.)

Step 2

Then call xterm with xterm -name QVTerm.

Step 3

Then ssh to <yourusername>@sun022.sun.ac.za or other server you are working on . If you are doing this from off-campus, use a VPN to connect via IPSEC (all Stellenbosch campus routes only). (This only works if network-manager is managing your connection. Some computer lab setups have network manager disabled.)

Step 4

Automate this with an launcher/desktop icon, system-wide in /usr/share/applications, or per user in .local/share/applications, in which case you can include the username in the Exec line. Log out and in or run sudo update-desktop-database for the icon to become available in the Unity dash. I've used an icon from the package gnome-desktop-data, so it will only display if you have that installed. You can replace with any icon you like, of course.

su_financial.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Stellenbosch University Finance System
Type=Application
Exec=xterm -bg black -fg white -fn 10x20 -g 80x25+100+100 -name QVTerm -e ssh -X <usernameoptional@>sun022.sun.ac.za
TryExec=
Icon=/usr/share/pixmaps/gnome-term.png
X-GNOME-DocPath=
Terminal=false
Name[en_GB]=Stellenbosch University Finance System
GenericName[en_GB]=
Comment[en_GB]=
GenericName[en_ZA]=
Comment[en_ZA]=
Name[en_ZA]=Stellenbosch University Finance System


Xterm.qvt
QVTerm*VT100.Translations:      #override\
       Ctrl  <Key> BackSpace: string(0x0B) \n\
       Ctrl  <Key> Delete: string(0x0C) \n\
       Ctrl  <Key> Left:  string("\033[KC4~") \n\
       Ctrl  <Key> Right: string("\033[KC6~") \n\
             <Key> Page_Up: string("\033Ow")\n\
             <Key> Page_Down: string("\033Ox")\n\
             <Key> Home: string("\033[1~") \n\
             <Key> Insert: string("\033[2~") \n\
             <Key> Delete: string("\033[3~") \n\
             <Key> End: string("\033[4~") \n\
             <Key> Up:  string("\033[A") \n\
             <Key> Down:  string("\033[B") \n\
             <Key> Left:  string("\033[D") \n\
             <Key> Right:  string("\033[C") \n\
       Meta<Key>A:     string("\033a")\n\
       Meta<Key>B:     string("\033b")\n\
       Meta<Key>C:     string("\033c")\n\
       Meta<Key>D:     string("\033d")\n\
       Meta<Key>E:     string("\033e")\n\
       Meta<Key>F:     string("\033f")\n\
       Meta<Key>G:     string("\033g")\n\
       Meta<Key>H:     string("\033h")\n\
       Meta<Key>I:     string("\033i")\n\
       Meta<Key>J:     string("\033j")\n\
       Meta<Key>K:     string("\033k")\n\
       Meta<Key>L:     string("\033l")\n\
       Meta<Key>M:     string("\033m")\n\
       Meta<Key>N:     string("\033n")\n\
       Meta<Key>O:     string("\033o")\n\
       Meta<Key>P:     string("\033p")\n\
       Meta<Key>Q:     string("\033q")\n\
       Meta<Key>R:     string("\033r")\n\
       Meta<Key>S:     string("\033s")\n\
       Meta<Key>T:     string("\033t")\n\
       Meta<Key>U:     string("\033u")\n\
       Meta<Key>V:     string("\033v")\n\
       Meta<Key>W:     string("\033w")\n\
       Meta<Key>X:     string("\033x")\n\
       Meta<Key>Y:     string("\033y")\n\
       Meta<Key>Z:     string("\033z")\n\
       Meta<Key>0:     string("\0330")\n\
       Meta<Key>1:     string("\0331")\n\
       Meta<Key>2:     string("\0332")\n\
       Meta<Key>3:     string("\0333")\n\
       Meta<Key>4:     string("\0334")\n\
       Meta<Key>5:     string("\0335")\n\
       Meta<Key>6:     string("\0336")\n\
       Meta<Key>7:     string("\0337")\n\
       Meta<Key>8:     string("\0338")\n\
       Meta<Key>9:     string("\0339")\n\
       None<Key>Tab:   string("        ")\n\
       Shift<Key>Tab:  string("\033    ")\n\
       None<Key>F1:    string("\033Oq")\n\
       None<Key>F2:    string("\033Or")\n\
       None<Key>F3:    string("\033Os")\n\
       None<Key>F4:    string("\033Ot")\n\
       None<Key>F5:    string("\033Ou")\n\
       None<Key>F6:    string("\033Ov")\n\
       None<Key>F7:    string("\033Ow")\n\
       None<Key>F8:    string("\033Ox")\n\
       None<Key>F9:    string("\033Oy")\n\
       None<Key>F10:   string("\033OP\033Op")\n\
       None<Key>F11:   string("\033OP\033Oq")\n\
       None<Key>F12:   string("\033OP\033Or")\n\
       Shift<Key>F1:   string("\033OP\033Os")\n\
       Shift<Key>F2:   string("\033OP\033Ot")\n\
       Shift<Key>F3:   string("\033OP\033Ou")\n\
       Shift<Key>F4:   string("\033OP\033Ov")\n\
       Shift<Key>F5:   string("\033OP\033Ow")\n\
       Shift<Key>F6:   string("\033OP\033Ox")\n\
       Shift<Key>F7:   string("\033OP\033Oy")\n\
       Shift<Key>F8:   string("\033OQ\033Op")\n\
       Shift<Key>F9:   string("\033OQ\033Oq")\n\
       Shift<Key>F10:  string("\033OQ\033Or")\n\
       Shift<Key>F11:  string("\033OQ\033Os")\n\
       Shift<Key>F12:  string("\033OQ\033Ot")\n\
       Ctrl<Key>F1:    string("\033OQ\033Ou")\n\
       Ctrl<Key>F2:    string("\033OQ\033Ov")\n\
       Ctrl<Key>F3:    string("\033OQ\033Ow")\n\
       Ctrl<Key>F4:    string("\033OQ\033Ox")\n\
       Ctrl<Key>F5:    string("\033OQ\033Oy")\n\
       Ctrl<Key>F6:    string("\033OR\033Op")\n\
       Ctrl<Key>F7:    string("\033OR\033Oq")\n\
       Ctrl<Key>F8:    string("\033OR\033Or")\n\
       Ctrl<Key>F9:    string("\033OR\033Os")\n\
       Ctrl<Key>F10:   string("\033OR\033Ot")\n\
       Ctrl<Key>F11:   string("\033OR\033Ou")\n\
       Ctrl<Key>F12:   string("\033OR\033Ov")\n\
       Meta<Key>F1:    string("\033OR\033Ow")\n\
       Meta<Key>F2:    string("\033OR\033Ox")\n\
       Meta<Key>F3:    string("\033OR\033Oy")\n\
       Meta<Key>F4:    string("\033OS\033Op")\n\
       Meta<Key>F5:    string("\033OS\033Oq")\n\
       Meta<Key>F6:    string("\033OS\033Or")\n\
       Meta<Key>F7:    string("\033OS\033Os")\n\
       Meta<Key>F8:    string("\033OS\033Ot")\n\
       Meta<Key>F9:    string("\033OS\033Ou")\n\
       Meta<Key>F10:   string("\033OS\033Ov")\n\
       Meta<Key>F11:   string("\033OS\033Ow")\n\
       Meta<Key>F12:   string("\033OS\033Ox")\n\
       None<Key>KP_0:  string("0")\n\
       None<Key>KP_1:  string("1")\n\
       None<Key>KP_2:  string("2")\n\
       None<Key>KP_3:  string("3")\n\
       None<Key>KP_4:  string("4")\n\
       None<Key>KP_5:  string("5")\n\
       None<Key>KP_6:  string("6")\n\
       None<Key>KP_7:  string("7")\n\
       None<Key>KP_8:  string("8")\n\
       None<Key>KP_9:  string("9")\n\
       None<Key>KP_Decimal:    string(".")\n\
       Mod2<Key>KP_0:  string("0")\n\
       Mod2<Key>KP_1:  string("1")\n\
       Mod2<Key>KP_2:  string("2")\n\
       Mod2<Key>KP_3:  string("3")\n\
       Mod2<Key>KP_4:  string("4")\n\
       Mod2<Key>KP_5:  string("5")\n\
       Mod2<Key>KP_6:  string("6")\n\
       Mod2<Key>KP_7:  string("7")\n\
       Mod2<Key>KP_8:  string("8")\n\
       Mod2<Key>KP_9:  string("9")\n\
       Mod2<Key>KP_Decimal:    string(".")\n\
       Ctrl<Key>KP_0:  string("\033[KC0~")\n\
       Ctrl<Key>KP_1:  string("\033[KC1~")\n\
       Ctrl<Key>KP_2:  string("\033[KC2~")\n\
       Ctrl<Key>KP_3:  string("\033[KC3~")\n\
       Ctrl<Key>KP_4:  string("\033[KC4~")\n\
       Ctrl<Key>KP_5:  string("\033[KC5~")\n\
       Ctrl<Key>KP_6:  string("\033[KC6~")\n\
       Ctrl<Key>KP_7:  string("\033[KC7~")\n\
       Ctrl<Key>KP_8:  string("\033[KC8~")\n\
       Ctrl<Key>KP_9:  string("\033[KC9~")\n\
       Shift<Key>KP_0: string("\033[KS0~")\n\
       Shift<Key>KP_1: string("\033[KS1~")\n\
       Shift<Key>KP_2: string("\033[KS2~")\n\
       Shift<Key>KP_3: string("\033[KS3~")\n\
       Shift<Key>KP_4: string("\033[KS4~")\n\
       Shift<Key>KP_5: string("\033[KS5~")\n\
       Shift<Key>KP_6: string("\033[KS6~")\n\
       Shift<Key>KP_7: string("\033[KS7~")\n\
       Shift<Key>KP_8: string("\033[KS8~")\n\
       Shift<Key>KP_9: string("\033[KS9~")\n\