You are not logged in.

#1 2023-10-27 06:28:08

alexanderyanin
Member
Registered: 2023-10-27
Posts: 6

[SOLVED] man-pages displayed incorrectly

All man pages are displayed incorrectly. Extra characters like '4m' or '1m' have been added to each instruction. It is impossible to use such instructions.

What could be the reason?

Last edited by alexanderyanin (2023-10-30 06:29:55)

Offline

#2 2023-10-27 06:32:50

alexanderyanin
Member
Registered: 2023-10-27
Posts: 6

Re: [SOLVED] man-pages displayed incorrectly

Offline

#3 2023-10-27 06:39:08

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,677

Re: [SOLVED] man-pages displayed incorrectly

Your terminal program is not interpreting escape codes correctly

Offline

#4 2023-10-27 09:05:01

alexanderyanin
Member
Registered: 2023-10-27
Posts: 6

Re: [SOLVED] man-pages displayed incorrectly

How fix it?

I use alacrity

Last edited by alexanderyanin (2023-10-27 09:15:54)

Offline

#5 2023-10-27 11:58:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: [SOLVED] man-pages displayed incorrectly

Pager?
Does this happen in an xterm?
Can you

print '\e[1mfoo\e[0m'

Post the output of

printenv

cross-ref: https://bbs.archlinux.org/viewtopic.php?id=287185

Offline

#6 2023-10-28 20:32:14

alexanderyanin
Member
Registered: 2023-10-27
Posts: 6

Re: [SOLVED] man-pages displayed incorrectly

First comand

print '\e[1mfoo\e[0m'
bash: print: command not found

Second command

printenv
SHELL=/bin/bash
WINDOWID=12582914
COLORTERM=truecolor
HISTCONTROL=ignoreboth
HISTSIZE=10000
READER=zathura
CREDENTIALS_DIRECTORY=/run/credentials/getty@tty1.service
HISTTIMEFORMAT=%Y-%m-%d %T
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
EDITOR=vim
XDG_SEAT=seat0
PWD=/home/avr
LOGNAME=avr
XDG_SESSION_TYPE=tty
SYSTEMD_EXEC_PID=778
XAUTHORITY=/home/avr/.Xauthority
WINDOWPATH=1
MOTD_SHOWN=pam
HOME=/home/avr
LANG=ru_RU.UTF-8
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/system.slice/system-getty.slice/getty@tty1.service/memory.pressure
CLICOLOR=1
INVOCATION_ID=725669c3465b45728a494f0e20e02daa
ALACRITTY_SOCKET=/run/user/1000/Alacritty-:0-1296.sock
XDG_SESSION_CLASS=user
TERM=xterm-256color
USER=avr
VISUAL=vim
DISPLAY=:0
SHLVL=3
XDG_VTNR=1
XDG_SESSION_ID=2
XDG_RUNTIME_DIR=/run/user/1000
PS1=\[\e[31m\][\[\e[m\]\[\e[33m\]\u\[\e[m\]\[\e[32m\]@\[\e[m\]\[\e[34m\]\h\[\e[m\] \[\e[35m\]\w\[\e[m\]\[\e[31m\]]\[\e[m\]\$
DEBUGINFOD_URLS=https://debuginfod.archlinux.org
LC_ALL=ru_RU.UTF-8
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/avr/.bin/:/home/avr/.local/share/gem/ruby/3.0.0/bin/:/home/avr/.local/bin:/home/avr/.bin/:/home/avr/.local/share/gem/ruby/3.0.0/bin/:/home/avr/.local/bin
ALACRITTY_LOG=/tmp/Alacritty-1296.log
HISTFILESIZE=10000
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
RANGER_LOAD_DEFAULT_RC=false
MAIL=/var/spool/mail/avr
ALACRITTY_WINDOW_ID=12582914
_=/usr/bin/printenv

Offline

#7 2023-10-28 20:37:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: [SOLVED] man-pages displayed incorrectly

zshism, try "printf" instead

Offline

#8 2023-10-29 23:45:49

alexanderyanin
Member
Registered: 2023-10-27
Posts: 6

Re: [SOLVED] man-pages displayed incorrectly

If you use printf you get this

[avr@ibm ~]$ printf '\e[1mfoo\e[0m'
foo[avr@ibm ~]$

Offline

#9 2023-10-30 01:32:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: [SOLVED] man-pages displayed incorrectly

Isn't this just the groff issue?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2023-10-30 06:28:49

alexanderyanin
Member
Registered: 2023-10-27
Posts: 6

Re: [SOLVED] man-pages displayed incorrectly

I don't know how, but everything displays correctly now. I have not changed any settings. Maybe a fix has arrived with the next update.

Offline

Board footer

Powered by FluxBB