You are not logged in.

#1 2022-11-14 07:43:16

hully
Member
Registered: 2022-11-14
Posts: 150

[SOLVED] ancient-packages terminal width

I would like to use `ancient-packages` to list packages not anymore in the repositories (including the AUR repository), as suggested by [the wiki](https://wiki.archlinux.org/title/system … d_packages).

I installed it with yay, but when I try to run it, I get the following error:

`The terminal width must be at least 150 columns.`

Both with gnome-console and with kitty.

My terminals are in full screen.

Last edited by hully (2023-08-21 11:03:19)

Offline

#2 2022-11-14 19:57:23

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: [SOLVED] ancient-packages terminal width

Try it with ye-olde' XTerm. If that doesn't work, I'd say post a msg on the AUR package for the maintainer. ancient-packages is in the AUR, so not officially supported.

Offline

#3 2022-11-14 20:28:50

seth
Member
Registered: 2012-09-03
Posts: 51,831

Re: [SOLVED] ancient-packages terminal width

Post the outputs of

tput cols
echo $COLUMNS
stty size
resize # that actually comes w/ xterm

Depending on how "ancient-packages" is implemented, this could either hinge on the TE or the shell (eg. fish instead of bash)

Online

#4 2022-11-15 07:25:54

hully
Member
Registered: 2022-11-14
Posts: 150

Re: [SOLVED] ancient-packages terminal width

❯ tput cols
62

~ 
❯ echo $COLUMNS
62

~ 
❯ stty size
16 62

~ 
❯ resize # that actually comes w/ xterm
fish: Unknown command: resize

Thanks!

Last edited by hully (2022-11-15 07:26:16)

Offline

#5 2022-11-15 07:36:02

seth
Member
Registered: 2012-09-03
Posts: 51,831

Re: [SOLVED] ancient-packages terminal width

That terminal has 62 columns -  try again w/ fullscreen?
As mentioned, "resize" comes w/ the xterm package and "fish:" might be the issue, too.
This

stat /bin/sh

points to bash?

Still run "ancient-packages" from within a bash shell.

Online

#6 2023-08-21 11:02:48

hully
Member
Registered: 2022-11-14
Posts: 150

Re: [SOLVED] ancient-packages terminal width

I opened the script

nvim /usr/bin/ancient-packages

and commented out lines 76-80:

# Terminal
# if [ ${Quiet} == 0 ] && [ `stty size | cut -d" " -f2` -lt ${MinCols} ]; then
# 	echo -e "${Red}${Bold}Error${UnBold}${Reset}: The terminal width must be at least ${MinCols} columns." >&2
# 	exit 1
# fi

It works now

Offline

#7 2023-08-21 13:05:55

seth
Member
Registered: 2012-09-03
Posts: 51,831

Re: [SOLVED] ancient-packages terminal width

There're to possible realities here:
1. ancient-packages includes a completely pointless terminal width check in a naughty effor to annoy you
2. You just did this here:
DOwuJt.gif

Online

Board footer

Powered by FluxBB