#113 allow jexer.ECMA48.iTerm2Images to work when XTVERSION is not supported

This commit is contained in:
Autumn Lamonte 2022-02-25 13:12:39 -06:00
parent 7d0cc6077d
commit 16d27b6f41

View file

@ -1093,16 +1093,14 @@ public class ECMA48Terminal extends LogicalScreen
}
if (!daResponseSeen) {
if (xtversionQuery == false) {
String str = System.getProperty("jexer.ECMA48.iTerm2Images");
// Default to not supporting iTerm2 images.
if (str != null) {
if (str.equals("false")) {
iterm2Images = false;
}
if (str.equals("true")) {
iterm2Images = true;
}
String str = System.getProperty("jexer.ECMA48.iTerm2Images");
// Default to not supporting iTerm2 images.
if (str != null) {
if (str.equals("false")) {
iterm2Images = false;
}
if (str.equals("true")) {
iterm2Images = true;
}
}