Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/TerminalView.java @ 23:cfcb8d9859a8 tn5250
adding tn5250 files
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 03 Jun 2014 11:37:06 -0700 |
parents | 0ce5cc452d02 |
children | 33eb63352be5 |
comparison
equal
deleted
inserted
replaced
22:e067ee54f638 | 23:cfcb8d9859a8 |
---|---|
83 private StringBuffer mAccessibilityBuffer; | 83 private StringBuffer mAccessibilityBuffer; |
84 private Pattern mControlCodes = null; | 84 private Pattern mControlCodes = null; |
85 private Matcher mCodeMatcher = null; | 85 private Matcher mCodeMatcher = null; |
86 private AccessibilityEventSender mEventSender = null; | 86 private AccessibilityEventSender mEventSender = null; |
87 | 87 |
88 public static String android_home_directory = ""; | |
89 | |
88 private static final String BACKSPACE_CODE = "\\x08\\x1b\\[K"; | 90 private static final String BACKSPACE_CODE = "\\x08\\x1b\\[K"; |
89 private static final String CONTROL_CODE_PATTERN = "\\x1b\\[K[^m]+[m|:]"; | 91 private static final String CONTROL_CODE_PATTERN = "\\x1b\\[K[^m]+[m|:]"; |
90 | 92 |
91 private static final int ACCESSIBILITY_EVENT_THRESHOLD = 1000; | 93 private static final int ACCESSIBILITY_EVENT_THRESHOLD = 1000; |
92 private static final String SCREENREADER_INTENT_ACTION = "android.accessibilityservice.AccessibilityService"; | 94 private static final String SCREENREADER_INTENT_ACTION = "android.accessibilityservice.AccessibilityService"; |
94 | 96 |
95 public ScaleGestureDetector mScaleDetector; | 97 public ScaleGestureDetector mScaleDetector; |
96 | 98 |
97 public TerminalView(Context context, TerminalBridge bridge) { | 99 public TerminalView(Context context, TerminalBridge bridge) { |
98 super(context); | 100 super(context); |
101 android_home_directory = context.getApplicationInfo().dataDir; | |
99 this.context = context; | 102 this.context = context; |
100 this.bridge = bridge; | 103 this.bridge = bridge; |
101 paint = new Paint(); | 104 paint = new Paint(); |
102 setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); | 105 setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); |
103 setFocusable(true); | 106 setFocusable(true); |