Replies: 1 comment 1 reply
-
Hi 👋 This issue seems to be related to the terminal settings and not specifically to the programming or the dev container setup. However, you can try to force the terminal to use the correct settings by adding the following line to your
This line sets the TERM environment variable to xterm, which is a terminal type that supports line wrapping and command recall. After adding this line, you need to source the .bashrc or .zshrc file to apply the changes. If this doesn't solve the issue, it might be a bug in the terminal emulator or in the Podman container engine. In that case, you should report the issue to the maintainers of the software. |
Beta Was this translation helpful? Give feedback.
-
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:
Beta Was this translation helpful? Give feedback.
All reactions