Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/TerminalView.java @ 91:33eb63352be5
remove 5250 configuration
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 16 Jun 2014 16:17:48 -0700 |
parents | cfcb8d9859a8 |
children | e5259eab903e |
comparison
equal
deleted
inserted
replaced
90:3f587bd647a5 | 91:33eb63352be5 |
---|---|
59 * @author jsharkey | 59 * @author jsharkey |
60 */ | 60 */ |
61 public class TerminalView extends View implements FontSizeChangedListener { | 61 public class TerminalView extends View implements FontSizeChangedListener { |
62 | 62 |
63 private final Context context; | 63 private final Context context; |
64 public final TerminalBridge bridge; | 64 public final TerminalBridge bridge; |
65 public final String homeDirectory = ""; | |
65 private final Paint paint; | 66 private final Paint paint; |
66 private final Paint cursorPaint; | 67 private final Paint cursorPaint; |
67 private final Paint cursorStrokePaint; | 68 private final Paint cursorStrokePaint; |
68 | 69 |
69 // Cursor paints to distinguish modes | 70 // Cursor paints to distinguish modes |
83 private StringBuffer mAccessibilityBuffer; | 84 private StringBuffer mAccessibilityBuffer; |
84 private Pattern mControlCodes = null; | 85 private Pattern mControlCodes = null; |
85 private Matcher mCodeMatcher = null; | 86 private Matcher mCodeMatcher = null; |
86 private AccessibilityEventSender mEventSender = null; | 87 private AccessibilityEventSender mEventSender = null; |
87 | 88 |
88 public static String android_home_directory = ""; | |
89 | 89 |
90 private static final String BACKSPACE_CODE = "\\x08\\x1b\\[K"; | 90 private static final String BACKSPACE_CODE = "\\x08\\x1b\\[K"; |
91 private static final String CONTROL_CODE_PATTERN = "\\x1b\\[K[^m]+[m|:]"; | 91 private static final String CONTROL_CODE_PATTERN = "\\x1b\\[K[^m]+[m|:]"; |
92 | 92 |
93 private static final int ACCESSIBILITY_EVENT_THRESHOLD = 1000; | 93 private static final int ACCESSIBILITY_EVENT_THRESHOLD = 1000; |
96 | 96 |
97 public ScaleGestureDetector mScaleDetector; | 97 public ScaleGestureDetector mScaleDetector; |
98 | 98 |
99 public TerminalView(Context context, TerminalBridge bridge) { | 99 public TerminalView(Context context, TerminalBridge bridge) { |
100 super(context); | 100 super(context); |
101 android_home_directory = context.getApplicationInfo().dataDir; | 101 this.context = context; |
102 this.context = context; | 102 this.bridge = bridge; |
103 this.bridge = bridge; | 103 this.homeDirectory = context.getApplicationInfo().dataDir; |
104 paint = new Paint(); | 104 paint = new Paint(); |
105 setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); | 105 setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); |
106 setFocusable(true); | 106 setFocusable(true); |
107 setFocusableInTouchMode(true); | 107 setFocusableInTouchMode(true); |
108 cursorPaint = new Paint(); | 108 cursorPaint = new Paint(); |