Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8056013082 | ||
|
|
8e90545c4b | ||
|
|
426ddbacbd | ||
|
|
7e1f8a551f | ||
|
|
e169af0447 |
@@ -13,8 +13,8 @@ android {
|
|||||||
applicationId "com.termux"
|
applicationId "com.termux"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 24
|
targetSdkVersion 24
|
||||||
versionCode 41
|
versionCode 42
|
||||||
versionName "0.41"
|
versionName "0.42"
|
||||||
|
|
||||||
ndk {
|
ndk {
|
||||||
moduleName "libtermux"
|
moduleName "libtermux"
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ public final class TermuxKeyListener implements TerminalKeyListener {
|
|||||||
if (keyCode == KeyEvent.KEYCODE_ENTER && !currentSession.isRunning()) {
|
if (keyCode == KeyEvent.KEYCODE_ENTER && !currentSession.isRunning()) {
|
||||||
mActivity.removeFinishedSession(currentSession);
|
mActivity.removeFinishedSession(currentSession);
|
||||||
return true;
|
return true;
|
||||||
} else if (e.isCtrlPressed() && e.isShiftPressed()) {
|
} else if (e.isCtrlPressed() && e.isAltPressed()) {
|
||||||
// Get the unmodified code point:
|
// Get the unmodified code point:
|
||||||
int unicodeChar = e.getUnicodeChar(0);
|
int unicodeChar = e.getUnicodeChar(0);
|
||||||
|
|
||||||
@@ -160,7 +160,7 @@ public final class TermuxKeyListener implements TerminalKeyListener {
|
|||||||
resultingKeyCode = KeyEvent.KEYCODE_INSERT;
|
resultingKeyCode = KeyEvent.KEYCODE_INSERT;
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
resultingKeyCode = KeyEvent.KEYCODE_MOVE_HOME;
|
resultingCodePoint = '~';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Special characters to input.
|
// Special characters to input.
|
||||||
|
|||||||
@@ -46,17 +46,17 @@ public final class TextStyle {
|
|||||||
long result = effect & 0b111111111;
|
long result = effect & 0b111111111;
|
||||||
if ((0xff000000 & foreColor) == 0xff000000) {
|
if ((0xff000000 & foreColor) == 0xff000000) {
|
||||||
// 24-bit color.
|
// 24-bit color.
|
||||||
result |= CHARACTER_ATTRIBUTE_TRUECOLOR_FOREGROUND | (((long) foreColor & 0x00ffffffL) << 40L);
|
result |= CHARACTER_ATTRIBUTE_TRUECOLOR_FOREGROUND | ((foreColor & 0x00ffffffL) << 40L);
|
||||||
} else {
|
} else {
|
||||||
// Indexed color.
|
// Indexed color.
|
||||||
result |= (((long) foreColor) & 0b111111111L) << 40;
|
result |= (foreColor & 0b111111111L) << 40;
|
||||||
}
|
}
|
||||||
if ((0xff000000 & backColor) == 0xff000000) {
|
if ((0xff000000 & backColor) == 0xff000000) {
|
||||||
// 24-bit color.
|
// 24-bit color.
|
||||||
result |= CHARACTER_ATTRIBUTE_TRUECOLOR_BACKGROUND | (((long) backColor & 0x00ffffffL) << 16L);
|
result |= CHARACTER_ATTRIBUTE_TRUECOLOR_BACKGROUND | ((backColor & 0x00ffffffL) << 16L);
|
||||||
} else {
|
} else {
|
||||||
// Indexed color.
|
// Indexed color.
|
||||||
result |= (((long) backColor) & 0b111111111L) << 16L;
|
result |= (backColor & 0b111111111L) << 16L;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -6,9 +6,6 @@ buildscript {
|
|||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.1.3'
|
classpath 'com.android.tools.build:gradle:2.1.3'
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
|
||||||
// in the individual module build.gradle files
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user