mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-07 03:05:18 +08:00
TerminalEmulator: fix bug in DECRQM handling
Reported in https://github.com/termux/termux-app/issues/1752
This commit is contained in:
@@ -748,7 +748,7 @@ public final class TerminalEmulator {
|
|||||||
value = (mScreen == mAltBuffer) ? 1 : 2;
|
value = (mScreen == mAltBuffer) ? 1 : 2;
|
||||||
} else {
|
} else {
|
||||||
int internalBit = mapDecSetBitToInternalBit(mode);
|
int internalBit = mapDecSetBitToInternalBit(mode);
|
||||||
if (internalBit == -1) {
|
if (internalBit != -1) {
|
||||||
value = isDecsetInternalBitSet(internalBit) ? 1 : 2; // 1=set, 2=reset.
|
value = isDecsetInternalBitSet(internalBit) ? 1 : 2; // 1=set, 2=reset.
|
||||||
} else {
|
} else {
|
||||||
Log.e(EmulatorDebug.LOG_TAG, "Got DECRQM for unrecognized private DEC mode=" + mode);
|
Log.e(EmulatorDebug.LOG_TAG, "Got DECRQM for unrecognized private DEC mode=" + mode);
|
||||||
|
Reference in New Issue
Block a user