Man descriptions and titles bugged after update?

Hello,
at first I thought I broke my system while installing a tablet driver (still no success with that) so I did a clean install. It was ok, until the update, so I tested the same situation on a VM and the same thing happened.

it looks like this:

4mNVIM24m(1)                           General Commands Manual                          4mNVI
M24m(1)

1mNAME0m
nvim — edit text

1mSYNOPSIS0m
1mnvim 22m[4moptions24m] [4mfile24m 4m...24m]
1mnvim 22m[4moptions24m] 1m-0m
1mnvim 22m[4moptions24m] 1m-t 4m22mtag0m
1mnvim 22m[4moptions24m] 1m-q 22m[4merrorfile24m]

1mDESCRIPTION0m
1mnvim  22mis  a text editor based on Vim.  Start 1mnvim 22mfollowed by any number of
options
and/or files:

1mnvim [options] [file ...]0m

Commands in 1mnvim 22mbegin with colon (‘:’).  Type ":help subject" to  get  help  on a
specific  subject.   Use <Tab> and CTRL-D to complete subjects (":help cmdline-com‐
pletion").

The "quickref" help section is a condensed reference of editor features:
1m:help quickref0m

If you are new to Vim/Nvim, start with the 30-minute tutorial:
1m:Tutor0m

After installing/updating Nvim, it's a good idea to run the self-check:
1m:checkhealth0m

4mfile24m 4m...24m    File(s) to edit.   Opens  one  buffer  per  file.   To  switch  between
buffers, use the 1m:next 22mand 1m:previous 22mcommands.

1m-           22mReads text from standard input until EOF, then opens a buffer with that
text.  User input is read from standard error, which should be a termi‐
nal.

1mOPTIONS0m
1m-t 4m22mtag24m      Finds  4mtag24m  in  the  tags file, the associated file becomesthe current
file and the associated command is executed.  Cursor is  positioned  at
the tag location in the file.  1m:help tag-commands0m

1m-q 22m[4merrorfile24m](...)

anyone else experiencing the same problem?

System:
Kernel: 6.4.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=d1791ac4-f9aa-4c94-8741-1b6433a4b512 rw rootflags=subvol=@
quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
ibt=off
Desktop: KDE Plasma v: 5.27.6 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: Gigabyte product: B450M DS3H v: N/A
serial: <superuser required>
Mobo: Gigabyte model: B450M DS3H-CF serial: <superuser required>
UEFI: American Megatrends LLC. v: F62 date: 01/24/2022
CPU:
Info: model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 2 gen: 3
level: v3 note: check built: 2020-22 process: TSMC n7 (7nm)
family: 0x17 (23) model-id: 0x71 (113) stepping: 0 microcode: 0x8701021
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
L3: 32 MiB desc: 2x16 MiB
Speed (MHz): avg: 3598 high: 3600 min/max: 2200/4426 boost: disabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 3593 2: 3600
3: 3600 4: 3600 5: 3593 6: 3600 7: 3600 8: 3600 9: 3600 10: 3600 11: 3600
12: 3600 13: 3589 14: 3600 15: 3600 16: 3600 bogomips: 114987
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
vendor: Sapphire driver: amdgpu v: kernel arch: RDNA-1 code: Navi-1x
process: TSMC n7 (7nm) built: 2019-20 pcie: gen: 4 speed: 16 GT/s
lanes: 16 ports: active: DP-1 empty: DP-2,DP-3,HDMI-A-1 bus-ID: 0d:00.0
chip-ID: 1002:731f class-ID: 0300
Device-2: Logitech Webcam C270 driver: snd-usb-audio,uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:4 chip-ID: 046d:0825
class-ID: 0102 serial: <filter>
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 506x285mm (19.92x11.22")
s-diag: 581mm (22.86")
Monitor-1: DP-1 mapped: DisplayPort-0 model: Viewteck GFV22CB built: 2019
res: 1920x1080 dpi: 102 gamma: 1.2 size: 476x267mm (18.74x10.51")
diag: 542mm (21.3") ratio: 16:9 modes: max: 1920x1080 min: 720x400
API: OpenGL v: 4.6 Mesa 23.1.3 renderer: AMD Radeon RX 5600 XT (navi10
LLVM 15.0.7 DRM 3.52 6.4.2-zen1-1-zen) direct-render: Yes
Audio:
Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel v: kernel pcie:
gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0d:00.1 chip-ID: 1002:ab38
class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0f:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Logitech Webcam C270 driver: snd-usb-audio,uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:4 chip-ID: 046d:0825
class-ID: 0102 serial: <filter>
API: ALSA v: k6.4.2-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 0.3.73 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: f000 bus-ID: 09:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
Local Storage: total: 4.09 TiB used: 52.71 GiB (1.3%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT2000P3PSSD8
size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: P9CR40A temp: 40.9 C
scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital model: WDS500G2B0A
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: 90WD scheme: GPT
ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000DM008-2FR102
size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: HDD rpm: 7200 serial: <filter> fw-rev: 0001 scheme: GPT
Partition:
ID-1: / raw-size: 465.75 GiB size: 465.75 GiB (100.00%)
used: 28.75 GiB (6.2%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-2: /boot/efi raw-size: 500 MiB size: 499 MiB (99.80%)
used: 576 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p6 maj-min: 259:6
ID-3: /home raw-size: 465.75 GiB size: 465.75 GiB (100.00%)
used: 28.75 GiB (6.2%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-4: /var/log raw-size: 465.75 GiB size: 465.75 GiB (100.00%)
used: 28.75 GiB (6.2%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-5: /var/tmp raw-size: 465.75 GiB size: 465.75 GiB (100.00%)
used: 28.75 GiB (6.2%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.54 GiB used: 45.8 MiB (0.3%)
priority: 100 dev: /dev/zram0
ID-2: swap-2 type: partition size: 15.62 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/nvme0n1p5 maj-min: 259:5
Sensors:
System Temperatures: cpu: 43.4 C mobo: 41.0 C gpu: amdgpu temp: 56.0 C
mem: 60.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 1018
Info:
Processes: 385 Uptime: 57m wakeups: 0 Memory: available: 15.54 GiB
used: 4.25 GiB (27.4%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 13.1.1 clang: 15.0.7 Packages: pm: pacman
pkgs: 2058 libs: 575 tools: octopi,pamac,paru Shell: fish v: 3.6.1
default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.27
Garuda (2.6.16-1):
System install date:     2023-07-08
Last full system update: 2023-07-08
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut
Windows dual boot:       Probably (Run as root to verify)
Failed units:

Whoogle say

kitty

env | grep TERM
COLORTERM=truecolor
TERM=kitty
TERMINFO=/usr/lib/kitty/terminfo

xfce4-terminal

nv | grep TERM
COLORTERM=truecolor
TERM=kitty

gnome-terminal

env | grep TERM
COLORTERM=truecolor
TERM=kitty
GNOME_TERMINAL_SERVICE=:1.251
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/796c2fab_98a9_451b_a605_d6b8add10802

Looks kind of similar to ansi escape codes used to add colours etc, eg have a look at en.wikipedia.org/wiki/ANSI_escape_code. I suspect shell or terminal misconfiguration. What does env | grep TERM show? Is there a matching terminal somewhere under /usr/share/terminfo or so?

cryptarch

Feb 23, 2021 at 21:08

  • Read man man man -Tps outputs as Postscript. You're outputting vt100 control sequences. ESCape [ 1 m is "Turn on bold font" for a terminal..

waltinator

Feb 23, 2021 at 22:06

If I un tick bold, nothing changed.


and bug since 2017 ???

https://bugzilla.redhat.com/show_bug.cgi?id=517447

3 Likes

Yeah I faced the same issue. To your

~/.config/fish/config.fish

add this line

set -x MANROFFOPT "-c"

at the top like this

set fish_greeting
set VIRTUAL_ENV_DISABLE_PROMPT "1"
set -x MANROFFOPT "-c"
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
set -x SHELL /bin/fish

and save and exit.
Now either reload the config.fish or open a new terminal to check the changes that should solve it.

4 Likes

Now it is throwing an error and not working at all:

man: command exited with status 1: (cd /usr/share/man && /usr/lib/man-db/zsoelim) | (cd /usr/share/man && /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE) | (cd /usr/share/man && preconv -e UTF-8) | (cd /usr/share/man && tbl) | (cd /usr/share/man && nroff -mandoc -rLL=107n -rLT=107n c -Tutf8)

Can you share your

cat ~/.config/fish/config.fish | tb

The solution surely doesn’t work for everyone but it shouldn’t have thrown an error like this.

there you go:

## Set values
# Hide welcome message
set fish_greeting
set VIRTUAL_ENV_DISABLE_PROMPT "1"
set -x MANROFFOPT "c"
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
set -x SHELL /bin/fish
## Export variable need for qt-theme
if type "qtile" >> /dev/null 2>&1
   set -x QT_QPA_PLATFORMTHEME "qt5ct"
end

# Set settings for https://github.com/franciscolourenco/done
set -U __done_min_cmd_duration 10000
set -U __done_notification_urgency_level low


## Environment setup
# Apply .profile: use this to put fish compatible .profile stuff in
if test -f ~/.fish_profile
  source ~/.fish_profile
end

# Add ~/.local/bin to PATH
if test -d ~/.local/bin
    if not contains -- ~/.local/bin $PATH
        set -p PATH ~/.local/bin
    end
end

# Add depot_tools to PATH
if test -d ~/Applications/depot_tools
    if not contains -- ~/Applications/depot_tools $PATH
        set -p PATH ~/Applications/depot_tools
    end
end


## Starship prompt
if status --is-interactive
   source ("/usr/bin/starship" init fish --print-full-init | psub)
end


## Advanced command-not-found hook
source /usr/share/doc/find-the-command/ftc.fish


## Functions
# Functions needed for !! and !$ https://github.com/oh-my-fish/plugin-bang-bang
function __history_previous_command
  switch (commandline -t)
  case "!"
    commandline -t $history[1]; commandline -f repaint
  case "*"
    commandline -i !
  end
end

function __history_previous_command_arguments
  switch (commandline -t)
  case "!"
    commandline -t ""
    commandline -f history-token-search-backward
  case "*"
    commandline -i '$'
  end
end

if [ "$fish_key_bindings" = fish_vi_key_bindings ];
  bind -Minsert ! __history_previous_command
  bind -Minsert '$' __history_previous_command_arguments
else
  bind ! __history_previous_command
  bind '$' __history_previous_command_arguments
end

# Fish command history
function history
    builtin history --show-time='%F %T '
end

function backup --argument filename
    cp $filename $filename.bak
end

# Copy DIR1 DIR2
function copy
    set count (count $argv | tr -d \n)
    if test "$count" = 2; and test -d "$argv[1]"
	set from (echo $argv[1] | trim-right /)
	set to (echo $argv[2])
        command cp -r $from $to
    else
        command cp $argv
    end
end

## Useful aliases
# Replace ls with exa
alias ls='exa -al --color=always --group-directories-first --icons' # preferred listing
alias la='exa -a --color=always --group-directories-first --icons'  # all files and dirs
alias ll='exa -l --color=always --group-directories-first --icons'  # long format
alias lt='exa -aT --color=always --group-directories-first --icons' # tree listing
alias l.='exa -ald --color=always --group-directories-first --icons .*' # show only dotfiles
alias ip='ip -color'

# Replace some more things with better alternatives
alias cat='bat --style header --style snip --style changes --style header'
[ ! -x /usr/bin/yay ] && [ -x /usr/bin/paru ] && alias yay='paru'

# Common use
alias grubup="sudo update-grub"
alias fixpacman="sudo rm /var/lib/pacman/db.lck"
alias tarnow='tar -acf '
alias untar='tar -xvf '
alias wget='wget -c '
alias rmpkg="sudo pacman -Rdd"
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
alias upd='/usr/bin/garuda-update'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='grep -F --color=auto'
alias egrep='grep -E --color=auto'
alias hw='hwinfo --short'                          # Hardware Info
alias big="expac -H M '%m\t%n' | sort -h | nl"     # Sort installed packages according to size in MB
alias gitpkg='pacman -Q | grep -i "\-git" | wc -l' # List amount of -git packages

# Get fastest mirrors
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"

# Help people new to Arch
alias apt='man pacman'

alias apt-get='man pacman'
alias please='sudo'
alias tb='nc termbin.com 9999'

# Cleanup orphaned packages
alias cleanup='sudo pacman -Rns (pacman -Qtdq)'

# Get the error messages from journalctl
alias jctl="journalctl -p 3 -xb"

# Recent installed packages
alias rip="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -200 | nl"


## Run fastfetch if session is interactive
if status --is-interactive && type -q fastfetch
   fastfetch --load-config dr460nized
end

Some more info I also add the line:

set -x SHELL /bin/fish

It was not present in the config.fish file, removing it does not help so not the cause of the problem at this moment.

There is a typo.
It’s “-c” not “c”

2 Likes

Worke fine for me on i3wm.

1 Like

Oh, I am sorry about that. Now it is working as intended:

MAN(1)                                       Manual pager utils                              MAN(1)

NAME
man - an interface to the system reference manuals

SYNOPSIS
man [man options] [[section] page ...] ...
man -k [apropos options] regexp ...
man -K [man options] [section] term ...
man -f [whatis options] page ...
man -l [man options] file ...
man -w|-W [man options] page ...

DESCRIPTION
man  is  the  system's manual pager.  Each page argument given to man is normally the name of a pro‐
gram, utility or function.  The manual page associated with each of these arguments  is  then  found
and  displayed.  A section, if provided, will direct man to look only in that section of the manual.
The default action is to search in all of the available sections following a pre-defined order  (see
DEFAULTS), and to show only the first page found, even if page exists in several sections.

The table below shows the section numbers of the manual followed by the types of pagesthey contain.

1   Executable programs or shell commands
2   System calls (functions provided by the kernel)
3   Library calls (functions within program libraries)
4   Special files (usually found in /dev)
5   File formats and conventions, e.g. /etc/passwd
6   Games
7   Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7), man-pages(7)

Thank you so much.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.