-
Notifications
You must be signed in to change notification settings - Fork 286
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
basic image shell line-wrapping / command-recall unusable #550
Comments
root ➜ /usr/local/bin $ tput cols
|
|
Discussed in #456
Originally posted by cevich April 1, 2024
I'm not able to use Docker, so my container engine is podman (
v4.9.3
). I'm using a very basic devcontainer through the CLI. Theup
andexec
commands seem to work fine, and I'm able to run specific commands in my devcontainer without any problems.The issue is, if I
exec
thebash
(orzsh
) command, the terminal prompt's line-wrapping and command-recall functions misbehave and render the console unusable.I'm able to reproduce the problem with the
mcr.microsoft.com/vscode/devcontainers/base:ubuntu-22.04
image as well. I've tried within the GNOME Terminal app as well as directly on a Linux console (i.e. ctrl-alt-F3). I'm even able to reproduce directly using the image:As you can see, it's wrapping ONTO the current terminal line, not a new one. If I press the up-arrow (command-recall) I get a similar effect. After a series of badly wrapped lines, this "off-by-one line" problem seems to stack, jumping the cursor up an extra line each time, rendering the terminal unusable.
Has anyone else experienced this behavior and/or know of a way to fix it?
Note: Inside the devcontainer or when directly running the base image, the system is aware of the terminal size, including when I change it:
The text was updated successfully, but these errors were encountered: