-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
COLUMNS is set to 80 rather than terminal width #272
Comments
@yorkshire-pudding to be clear it was determined in lando/lando#1847 that lando should no longer manage this. As far as i understand it Docker now automatically sets this based on your terminal width and that has personally been my experience. I think an exception to that would be anywhere where cc @AaronFeledy for additional input |
Thanks @pirog - that's what I thought too, so I guess the issue will be with Docker rather than Lando; at least Lando has a way I can set it. |
❯ lando ssh -s appserver -c "tput cols"
291
❯ lando exec appserver -- "tput cols"
80
❯ /usr/bin/docker exec --tty --interactive --workdir=/app --user=www-data testdrupal9_appserver_1 tput cols
291 There seems to be some inconsistency. I'm looking into it. |
ahh interesting! i bet |
To give some context I'm coming across this in Bee, the command line tool for Backdrop CMS (now part of the default Backdrop CMS recipe); I'm also the maintainer of the tool so probably find more issues than most in my testing. |
@yorkshire-pudding what are the actual commands you are running to see this? |
I'm running Bee gets terminal width using the PHP command: $terminal_width = exec('if tput cols &>/dev/null; then echo $(tput cols); else $(echo $COLUMNS); fi'); |
k thanks |
…eriting terminal columns and lines correctly
…eriting terminal columns and lines correctly
Thanks Mike @pirog . Much appreciated. |
I thought from lando/lando#1847 that Lando would get columns from the terminal.
I am running Ubuntu 24.04.1 LTS within WSL2 using Windows Terminal
Docker version:
If I do:
then it picks it up and works fine, but if not, it is stuck at
80
, which IMHO is worse than the256
it wasThe text was updated successfully, but these errors were encountered: