Compare commits

...

6 Commits
v0.19 ... v0.20

Author SHA1 Message Date
Fredrik Fornwall
36cc010a87 Show bold text in bright colors
Fixes 17. Could be made an option in the future if necessary.
2015-11-24 17:31:48 +01:00
Fredrik Fornwall
b1aaf5abe5 Add *.apk to .gitignore 2015-11-24 17:31:32 +01:00
Fredrik Fornwall
9b3dc57447 Remove junk from app/build.gradle 2015-11-20 23:29:44 +01:00
Fredrik Fornwall
f7ce206212 Bump version to 0.20 2015-11-20 00:40:52 +01:00
Fredrik Fornwall
0deacd8fc6 Show "-press Enter to close" at session exit
This makes it more clear how to close the session after finishing.
Fixes #15.
2015-11-20 00:38:58 +01:00
Fredrik Fornwall
65cfcffa6f Update to gradle 2.9 2015-11-17 21:53:40 +01:00
6 changed files with 10 additions and 23 deletions

1
.gitignore vendored
View File

@@ -4,6 +4,7 @@
# Built application files
build/
*.apk
# Crashlytics configuations
com_crashlytics_export_strings.xml

View File

@@ -14,31 +14,14 @@ android {
applicationId "com.termux"
minSdkVersion 21
targetSdkVersion 22
versionCode 19
versionName "0.19"
}
signingConfigs {
release {
if (System.getenv("TRAVIS")) {
storeFile rootProject.file('travis.keystore')
storePassword 'abcdef'
keyAlias 'travis'
keyPassword 'abcdef'
} else {
storeFile new File(TERMUX_KEYSTORE_FILE)
storePassword TERMUX_KEYSTORE_PASSWORD
keyAlias TERMUX_KEYSTORE_ALIAS
keyPassword TERMUX_KEYSTORE_PASSWORD
}
}
versionCode 20
versionName "0.20"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
}

View File

@@ -119,7 +119,7 @@ public final class TerminalSession extends TerminalOutput {
// Negated signal.
exitDescription += " with signal " + (-exitCode);
}
exitDescription += "]";
exitDescription += " - press Enter to close]";
byte[] bytesToWrite = exitDescription.getBytes(StandardCharsets.UTF_8);
mEmulator.append(bytesToWrite, bytesToWrite.length);

View File

@@ -205,7 +205,10 @@ final class TerminalRenderer {
final boolean strikeThrough = (effect & TextStyle.CHARACTER_ATTRIBUTE_STRIKETHROUGH) != 0;
final boolean dim = (effect & TextStyle.CHARACTER_ATTRIBUTE_DIM) != 0;
int foreColorARGB = palette[foreColor];
// Let bold have bright colors if applicable (one of the first 8):
final int actualForeColor = foreColor + (bold && foreColor < 8 ? 8 : 0);
int foreColorARGB = palette[actualForeColor];
if (dim) {
int red = (0xFF & (foreColorARGB >> 16));
int green = (0xFF & (foreColorARGB >> 8));

Binary file not shown.

View File

@@ -1,6 +1,6 @@
#Fri Nov 06 00:04:44 CET 2015
#Tue Nov 17 21:52:59 CET 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-bin.zip