-
-
Notifications
You must be signed in to change notification settings - Fork 544
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
"lando ssh" doesn't respect TERM, clobbering it with TERM=xterm #2827
Comments
I'll also just confirm that in the above test with |
@phil-s im not sure why we explicitly set Lando does let you override envvars so that might work but i havent tried it with |
I may have tested that myself. I experimented with adding This wouldn't be an ideal solution in any case, as it would still be hard-coding a specific terminal, and there's no guarantee that someone is always using the same terminal. Even discounting those of us who have reason to use more than one on a single machine (I use two different types daily), a person might easily have a different terminal type when connecting from work vs connecting from home; or desktop vs laptop, etc; so it's still pretty easy to end up with a mismatch. I wouldn't know where to look regarding docker's own behaviours -- I'm fairly new to both lando and docker -- but if you find that it's really a docker issue, I'll happily take this upstream. |
This recent docker issue seems relevant: docker/cli#2938 If I've understood correctly, it also suggests that lando might be able to "add |
@phil-s we allow per-user override files for situations like that: You can also set envvars on a per-service and per-command basis: name: lando-tooling
service:
node:
type: node10
overrides:
environment:
TERM: xterm-256
tooling:
node:
service: node
yarn:
service: node
env:
TERM: my-term To get back to the issue even if we remove our |
Thanks for that; I tried the
That "add |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues. |
"further activity". Making lando pass |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues. |
"further activity". Making lando pass |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues. |
"further activity". Making lando pass |
Tell us about your setup
v3.0.24 on Ubuntu 18.04 GNU/Linux
Tell us about your
.lando.yml
No other config present for this test.
Tell us about the command you were running
Tell us generally about your bug
I think this might be coming from line 18 here:
lando/plugins/lando-core/index.js
Lines 10 to 24 in 546051e
I've noted that in my
~/.lando/compose/PROJECT/globals-0.yml
file I have that same sequence of environment vars set for every single container. E.g.:I tried editing this file as a test, but it gets automatically re-written with that same
TERM: xterm
value; so that's obviously being pulled from somewhere else, but I don't know where -- I don't have thatplugins/lando-core/index.js
file on my system, so I guess that gets compiled into something else. In any case, it meant I wasn't able to confirm whether or not this was actually the culprit; but it certainly looks like it could be.Tell us more
It's important to respect the user's exported
TERM
variable, as any command which is run inside the container and produces output potentially needs to know your terminal in order to produce sane output.As it is, the output produced will always be for an xterm, and therefore potentially broken for the terminal it is actually being displayed in.
The text was updated successfully, but these errors were encountered: