Skip to content

Commit 506183f

Browse files
Fixed: Allow sixel DCS command start P3 arg to not end with a semicolon
1 parent 253eee9 commit 506183f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

terminal-emulator/src/main/java/com/termux/terminal/TerminalEmulator.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,12 @@ private int[] getSixelDcsSetupArgs(String dcs, int index) {
14001400
}
14011401

14021402
incArg = true;
1403+
} else if (ch == 'q') {
1404+
// If `P3` did not end with a `;`, but is followed by `q`.
1405+
if (arg == 2) {
1406+
return args;
1407+
}
1408+
break;
14031409
} else {
14041410
break;
14051411
}

0 commit comments

Comments
 (0)