Mercurial > 510Connectbot
comparison app/src/main/java/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 457:105815cce146 stable-1.9.3-3
minimum version android 5, target and compile version api 28
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 29 Jan 2019 11:21:57 -0800 |
parents | d29cce60f393 |
children | a3239022798d |
comparison
equal
deleted
inserted
replaced
456:b00031b2d6ac | 457:105815cce146 |
---|---|
24 import com.five_ten_sg.connectbot.ConsoleActivity; | 24 import com.five_ten_sg.connectbot.ConsoleActivity; |
25 import com.five_ten_sg.connectbot.bean.HostBean; | 25 import com.five_ten_sg.connectbot.bean.HostBean; |
26 | 26 |
27 | 27 |
28 public class TerminalMonitor { | 28 public class TerminalMonitor { |
29 public final static String TAG = "ConnectBot.TerminalMonitor"; | 29 public final static String TAG = "ConnectBot.TermMonitor"; |
30 | 30 |
31 public static final char MONITOR_CMD_INIT = 0; | 31 public static final char MONITOR_CMD_INIT = 0; |
32 public static final char MONITOR_CMD_ACTIVATE = 1; | 32 public static final char MONITOR_CMD_ACTIVATE = 1; |
33 public static final char MONITOR_CMD_KEYSTATE = 2; | 33 public static final char MONITOR_CMD_KEYSTATE = 2; |
34 public static final char MONITOR_CMD_CURSORMOVE = 3; | 34 public static final char MONITOR_CMD_CURSORMOVE = 3; |
279 keymap.put(0x85, vt320.KEY_F22); // vk_f22 | 279 keymap.put(0x85, vt320.KEY_F22); // vk_f22 |
280 keymap.put(0x86, vt320.KEY_F23); // vk_f23 | 280 keymap.put(0x86, vt320.KEY_F23); // vk_f23 |
281 keymap.put(0x87, vt320.KEY_F24); // vk_f24 | 281 keymap.put(0x87, vt320.KEY_F24); // vk_f24 |
282 // bind to the monitor service | 282 // bind to the monitor service |
283 Intent intent = new Intent("com.five_ten_sg.connectbot.monitor.MonitorService"); | 283 Intent intent = new Intent("com.five_ten_sg.connectbot.monitor.MonitorService"); |
284 intent.setPackage("com.five_ten_sg.connectbot.monitor"); | |
284 parent.bindService(intent, monitor_connection, Context.BIND_AUTO_CREATE); | 285 parent.bindService(intent, monitor_connection, Context.BIND_AUTO_CREATE); |
285 Log.i(TAG, "constructor"); | 286 Log.i(TAG, "constructor"); |
286 } | 287 } |
287 | 288 |
288 | 289 |