Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Somehow use ($COLUMNS / $LINES) which will allow us to drop tput. #11

Closed
dylanaraps opened this issue Jan 4, 2016 · 1 comment
Closed

Comments

@dylanaraps
Copy link
Owner

I've doubled script speed by reducing tput usage to just tput lines and tput cols. We could remove tput altogether (This means dropping ncurses) if we can somehow find a quick and reliable way to get the values of these shell variables directly.

Scripts can't read these variables as they're shell variables and not environment variables. Here are the current ways I've found to set these variables in a script:

  • eval $(resize) (Slow on vte based terminals)
  • Sending the signal WINCH to the shell (I couldn't get this to work but I came across it multiple times when searching)

Any ideas?

@dylanaraps
Copy link
Owner Author

It turns out that ncurses which tput is a part of is a dependency of bash anyway. I'm closing this as the user will always have ncurses installed.

saeziae pushed a commit to saeziae/neofetch that referenced this issue Nov 3, 2022
Removed duplicate IRIX entry and added placeholder GhostBSD entry
nsavinda pushed a commit to nsavinda/unifetch that referenced this issue Jun 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant