mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-04 17:55:36 +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;
|
||||
} else {
|
||||
int internalBit = mapDecSetBitToInternalBit(mode);
|
||||
if (internalBit == -1) {
|
||||
if (internalBit != -1) {
|
||||
value = isDecsetInternalBitSet(internalBit) ? 1 : 2; // 1=set, 2=reset.
|
||||
} else {
|
||||
Log.e(EmulatorDebug.LOG_TAG, "Got DECRQM for unrecognized private DEC mode=" + mode);
|
||||
|
Reference in New Issue
Block a user