Skip to content

Commit 2151d08

Browse files
Fixed: Allow sixel DCS command start P3 arg to not end with a semicolon and allow not passing all optional parameters
1 parent 253eee9 commit 2151d08

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

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

14021402
incArg = true;
1403+
} else if (ch == 'q') {
1404+
// If optional parameters `P1`, `P2` or `P3` are not all passed, or
1405+
// a parameter did not end with a `;`, but is followed by `q`.
1406+
return args;
14031407
} else {
14041408
break;
14051409
}

0 commit comments

Comments
 (0)