comparison src/com/five_ten_sg/connectbot/transport/TN5250.java @ 166:9d6b581b4656

add ctrl keys for attn and sysreq
author Carl Byington <carl@five-ten-sg.com>
date Tue, 24 Jun 2014 12:46:23 -0700
parents be91eb9743fc
children 2a7199ad90be
comparison
equal deleted inserted replaced
165:924523c03ca7 166:9d6b581b4656
78 } 78 }
79 79
80 public vt320x5250(int width, int height) { 80 public vt320x5250(int width, int height) {
81 super(width, height); 81 super(width, height);
82 controls = new HashMap<Integer, Integer>(); 82 controls = new HashMap<Integer, Integer>();
83 controls.put(0x01, KEY_PAUSE); // ctrl-a -> [attn]
83 controls.put(0x08, KEY_BACK_SPACE); 84 controls.put(0x08, KEY_BACK_SPACE);
84 controls.put(0x09, KEY_TAB); 85 controls.put(0x09, KEY_TAB);
85 controls.put(0x0d, KEY_ENTER); 86 controls.put(0x0d, KEY_ENTER);
86 controls.put(0x1b, KEY_ESCAPE); 87 controls.put(0x12, KEY_ESCAPE); // ctrl-r -> [reset]
88 controls.put(0x13, KEY_SYSREQ); // ctrl-s -> [sysreq]
89 controls.put(0x1b, KEY_ESCAPE); // esc -> [reset]
87 mnemonics = new HashMap<Integer, String>(); 90 mnemonics = new HashMap<Integer, String>();
88 mnemonics.put(KEY_PAUSE , "[attn]"); 91 mnemonics.put(KEY_PAUSE , "[attn]");
89 mnemonics.put(KEY_F1 , "[pf1]"); 92 mnemonics.put(KEY_F1 , "[pf1]");
90 mnemonics.put(KEY_F2 , "[pf2]"); 93 mnemonics.put(KEY_F2 , "[pf2]");
91 mnemonics.put(KEY_F3 , "[pf3]"); 94 mnemonics.put(KEY_F3 , "[pf3]");
127 mnemonics.put(KEY_NUMPAD9 , "9"); 130 mnemonics.put(KEY_NUMPAD9 , "9");
128 mnemonics.put(KEY_DECIMAL , "."); 131 mnemonics.put(KEY_DECIMAL , ".");
129 mnemonics.put(KEY_ADD , "+"); 132 mnemonics.put(KEY_ADD , "+");
130 mnemonics.put(KEY_ESCAPE , "[reset]"); 133 mnemonics.put(KEY_ESCAPE , "[reset]");
131 mnemonics.put(KEY_TAB , "[tab]"); 134 mnemonics.put(KEY_TAB , "[tab]");
135 mnemonics.put(KEY_SYSREQ , "[sysreq]");
132 } 136 }
133 137
134 @Override 138 @Override
135 public void debug(String s) { 139 public void debug(String s) {
136 Log.d(TAG, s); 140 Log.d(TAG, s);