mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
general: term_size, macos fix.
This commit is contained in:
2
neofetch
2
neofetch
@@ -3688,7 +3688,7 @@ get_term_size() {
|
||||
|
||||
# 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.
|
||||
[[ -z "$DISPLAY" || "$os" == "Mac OS X" ]] && \
|
||||
[[ -z "$DISPLAY" ]] && \
|
||||
{ term_width=0; return; }
|
||||
|
||||
# Get terminal width/height if \e[14t is unsupported.
|
||||
|
Reference in New Issue
Block a user