|
|
|
@ -3688,7 +3688,7 @@ get_term_size() { |
|
|
|
|
|
|
|
|
|
|
|
# If the sequences above don't work and the user is on a macOS system |
|
|
|
# If the sequences above don't work and the user is on a macOS system |
|
|
|
# or a system not running an X server, return early. |
|
|
|
# or a system not running an X server, return early. |
|
|
|
[[ -z "$DISPLAY" || "$os" == "Mac OS X" ]] && \ |
|
|
|
[[ -z "$DISPLAY" ]] && \ |
|
|
|
{ term_width=0; return; } |
|
|
|
{ term_width=0; return; } |
|
|
|
|
|
|
|
|
|
|
|
# Get terminal width/height if \e[14t is unsupported. |
|
|
|
# Get terminal width/height if \e[14t is unsupported. |
|
|
|
|