File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ autodetect() {
62
62
IFS=" ;" read -a REPLY -s -t ${timeout} -d " S" -p $' \e [?1;1;0S' >&2
63
63
[[ ${REPLY[1]} == " 0" ]] && numcolors=${REPLY[2]}
64
64
65
+ # BUG WORKAROUND: mlterm does not report number of colors.
66
+ if [[ $TERM =~ mlterm ]]; then numcolors=1024; fi
67
+
65
68
# Increase colors, if needed
66
69
if [[ $numcolors -lt 256 ]]; then
67
70
# Attempt to set the number of colors to 256.
@@ -97,7 +100,7 @@ autodetect() {
97
100
98
101
# BUG WORKAROUND: XTerm cannot show images wider than 1000px.
99
102
# Remove this hack once XTerm gets fixed. Last checked: XTerm(327)
100
- if [[ $width -ge 1000 ]]; then width=1000; fi
103
+ if [[ $TERM =~ xterm && $ width -ge 1000 ]]; then width=1000; fi
101
104
102
105
# Space on either side of each tile is less than 0.5% of total screen width
103
106
tilexspace=$(( width/ 201 ))
You can’t perform that action at this time.
0 commit comments