metal3d / bashsimplecurses

A simple curses library made in bash to draw terminal interfaces
BSD 3-Clause "New" or "Revised" License
921 stars 115 forks source link

tput cols in RHEL 7 is incorrect while in RHEL 8 it works fine #59

Closed vp0585 closed 1 year ago

vp0585 commented 2 years ago

Hi,

While running simple_curse.sh in RHEL 7 & RHEL 8. I found a issue that "bsc_cols=$(tput cols)" variable is getting set as 80 in RHEL 7 while actual "$(tput cols) value is 183" see below example. In RHEL8 I didn't find this issue as "echo $(tput cols) is 182 & bsc_cols=182" as well

In RHEL 7.7

bash -x one.sh ++ dirname one.sh

========================== In RHEL 8.3

metal3d commented 1 year ago

It seems that it's not a bug from our script but from RHEL.

I can reopen the issue if you provide me an example that I can test.