Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
f3b803ae
Commit
f3b803ae
authored
Jan 25, 2017
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Image: Fix images in Terminology and Tmux
parent
237eeeb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
neofetch
neofetch
+4
-5
No files found.
neofetch
View file @
f3b803ae
...
...
@@ -1987,7 +1987,6 @@ image_backend() {
clear
zws="
"
else
unset image_program
to_ascii "
Image: Failed to find terminal window size.
"
err "
Image: Check the
'Images in the terminal'
wiki page
for
more info,
"
return
...
...
@@ -2195,7 +2194,7 @@ get_term_size() {
printf "%b" "\033Ptmux;\033\033[14t\033\033[c\033\\"
read_flags=(-d c)
elif [[ "$image_
program
" == "tycat" ]]; then
elif [[ "$image_
backend
" == "tycat" ]]; then
printf "%b" "\033}qs\000"
else
...
...
@@ -2209,7 +2208,7 @@ get_term_size() {
IFS=";" read -s -t 1 "${read_flags[@]}" -r -a term_size
# Split the string into height/width.
if [[ "$image_
program
" == "tycat" ]]; then
if [[ "$image_
backend
" == "tycat" ]]; then
term_width="$((term_size[2] * term_size[0]))"
term_height="$((term_size[3] * term_size[1]))"
...
...
@@ -2219,7 +2218,7 @@ get_term_size() {
fi
# Get terminal width/height if \033[14t is unsupported.
if [[ -z "$term_width" && "$image_
program
" == "w3m" ]]; then
if [[ -z "$term_width" && "$image_
backend
" == "w3m" ]]; then
if type -p xdotool >/dev/null 2>&1; then
current_window="$(xdotool getactivewindow)"
source <(xdotool getwindowgeometry --shell "$current_window")
...
...
@@ -4067,7 +4066,7 @@ main() {
# w3m-img: Draw the image a second time to fix
# rendering issues in specific terminal emulators.
[[
"
$image_
program
"
==
*
w3m
*
]]
&&
display_image 2>/dev/null
[[
"
$image_
backend
"
==
*
w3m
*
]]
&&
display_image 2>/dev/null
# Take a screenshot.
[[
"
$scrot
"
==
"on"
]]
&&
take_scrot
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment