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
abf9b5d2
Commit
abf9b5d2
authored
Oct 05, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incorrect cursor position when using small ascii art
parent
7f5f05b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
neofetch
neofetch
+4
-2
No files found.
neofetch
View file @
abf9b5d2
...
@@ -1995,8 +1995,10 @@ getascii() {
...
@@ -1995,8 +1995,10 @@ getascii() {
ascii
=
"
${
ascii_distro
,,
}
"
ascii
=
"
${
ascii_distro
,,
}
"
fi
fi
[
"
$ascii_logo_size
"
==
"small"
]
&&
\
if
[
"
$ascii_logo_size
"
==
"small"
]
;
then
ascii
=
"
${
ascii
/ *
}
_small"
ascii
=
"
${
ascii
/ *
}
_small"
prompt_loc
=
"3"
fi
if
[
-f
"/usr/share/neofetch/ascii/distro/
${
ascii
/ *
}
"
]
;
then
if
[
-f
"/usr/share/neofetch/ascii/distro/
${
ascii
/ *
}
"
]
;
then
ascii
=
"/usr/share/neofetch/ascii/distro/
${
ascii
/ *
}
"
ascii
=
"/usr/share/neofetch/ascii/distro/
${
ascii
/ *
}
"
...
@@ -3244,7 +3246,7 @@ main() {
...
@@ -3244,7 +3246,7 @@ main() {
fi
fi
# Set cursor position next to ascii art
# Set cursor position next to ascii art
printf
"
\0
33[
$((${
lines
:-
0
}
-
4
))
A"
printf
"
\0
33[
$((${
lines
:-
0
}
-
${
prompt_loc
:-
4
}
))
A"
# Reset horizontal cursor position
# Reset horizontal cursor position
printf
"
\0
33[9999999D"
printf
"
\0
33[9999999D"
...
...
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