Skip to content

Commit

Permalink
Use only ascii characters in less prompt.
Browse files Browse the repository at this point in the history
Multibyte unicode characters are no longer rendering with the current
configuration in recent versions of `less`.
  • Loading branch information
xwmx committed Sep 30, 2024
1 parent 9b4d0ac commit dd9c544
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nb
Original file line number Diff line number Diff line change
Expand Up @@ -2524,8 +2524,12 @@ _less_prompt() {

if [[ "${_COLUMNS}" -gt 81 ]]
then
# NOTE: Multibyte unicode characters not rendering in recent versions of less.
# TODO: Resolve unicode rendering and revert prompt.
# _prompt="\
# > scroll for more, f / b to jump ↓ / ↑, h for help, or q to quit"
_prompt="\
> scroll for more, f / b to jump / , h for help, or q to quit"
> scroll for more, f / b to jump forward / back, h for help, or q to quit"
fi

printf "%s\\n" "${_prompt}"
Expand Down

0 comments on commit dd9c544

Please sign in to comment.