comparison src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 174:b010f9dc801f

add switch session command from the monitor
author Carl Byington <carl@five-ten-sg.com>
date Tue, 01 Jul 2014 20:53:08 -0700
parents 5f26d0ba6abd
children 2a7199ad90be
comparison
equal deleted inserted replaced
173:5f26d0ba6abd 174:b010f9dc801f
18 import java.util.HashMap; 18 import java.util.HashMap;
19 import java.util.concurrent.ArrayBlockingQueue; 19 import java.util.concurrent.ArrayBlockingQueue;
20 import java.util.concurrent.BlockingQueue; 20 import java.util.concurrent.BlockingQueue;
21 import java.util.concurrent.ConcurrentHashMap; 21 import java.util.concurrent.ConcurrentHashMap;
22 22
23 import com.five_ten_sg.connectbot.ConsoleActivity;
24 import com.five_ten_sg.connectbot.bean.HostBean;
25
26
23 public class TerminalMonitor { 27 public class TerminalMonitor {
24 public final static String TAG = "ConnectBot.TerminalMonitor"; 28 public final static String TAG = "ConnectBot.TerminalMonitor";
25 29
26 public static final char MONITOR_CMD_INIT = 0; 30 public static final char MONITOR_CMD_INIT = 0;
27 public static final char MONITOR_CMD_ACTIVATE = 1; 31 public static final char MONITOR_CMD_ACTIVATE = 1;
40 private static final String LOCALHOST = "127.0.0.1"; 44 private static final String LOCALHOST = "127.0.0.1";
41 45
42 private Context parent = null; 46 private Context parent = null;
43 private vt320 buffer = null; 47 private vt320 buffer = null;
44 private View view = null; 48 private View view = null;
49 private HostBean host = null;
45 private String init = null; 50 private String init = null;
46 private int start_line = 0; // monitor part of the screen for changes 51 private int start_line = 0; // monitor part of the screen for changes
47 private int end_line = 500; // "" 52 private int end_line = 500; // ""
48 private int start_column = 0; // "" 53 private int start_column = 0; // ""
49 private int end_column = 500; // "" 54 private int end_column = 500; // ""