The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Use `tputs`` To Get The Number Of Columns And Lines/Rows Count In A Terminal Window On A Mac

TODO: Pull subtitle into page object

TL;DR - Columns

code_start_default_section code_end_default_section

Notes

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Use `tputs`` To Get The Number Of Columns 
And Lines/Rows Count In A Terminal Window
On A Mac

-- h2

TL;DR - Columns

-- code/
-- bash

tputs cols

-- results

55

-- /code


-- h2

TL;DR - Lines/Rows 

-- code/
-- bash

tputs lines

-- results

38

-- /code


-- notes

- I generally use `tputs`` when I need to
figure out the number of columns or
lines/rows a terminal window has

- This probably works on lots of linux
machines too. ymmv are on windows

- I'm not sure if `tputs`` is installed
by default or if it got installed by
homebrew. I don't remember installing it,
but if you don't have it you may have
to do that work

- `bash`, `zsh`, and some other shells
also set ENV vars that can be used to 
pull the numbers (link below)


-- ref
-- ilink: 2t1wguo5

-- ref
-- title: tput manual page
-- url: https://sites.uclouvain.be/SystInfo/manpages/man1/tput.1.html





-- categories
-- Command Line 

-- metadata
-- date: 2023-07-24 14:53:24
-- id: 2t1yiu9l
-- site: aws
-- type: post
-- status: published