[BUG] Line wrapping issue typing long commands in bash (part 2)
Description
In Docker 26.0.0, I can still get #253 with my pet PS1 prompt.
Without looking at the code, I'm going to guess that something fails to properly determine column when given ANSI escape sequences?
Steps To Reproduce
docker run --rm -itu root debian:stable-slim /bin/bash -l
export PS1='\e]0;\u@\h\a\[\e[49m\]\[\e[01;34m\]/\n\[\e[39m\](\u@\h)\[\e[01;34m\]$\e[0;0m '
echo "Oh freddled gruntbuggly, thy micturations are to me as plurdled gabbleblotchits on a lurgid bee. Groop, I implore thee, my foonting turlingdromes and hooptiously drangle me with crinkly bindlewurdles, or I will rend thee in the gobberwarts with my blurglecruncheon. See if I don't."
Compose Version
Docker Compose version v2.25.0
Docker Environment
Client: Docker Engine - Community
Version: 26.0.0
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.13.1
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.25.0
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 9
Running: 3
Paused: 0
Stopped: 6
Images: 109
Server Version: 26.0.0
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
runc version: v1.1.12-0-g51d5e94
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.7.9-amd64
Operating System: Debian GNU/Linux 12 (bookworm)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.41GiB
Name: nirvana
ID: f0957f41-bbd5-4aaf-ab50-386325427e63
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Anything else?
No response
Do you have more details about what you're seeing, and what the expected output would be? (Perhaps a screenshot if that's easier to demonstrate the issue)
Also I notice you're using docker run for the reproducer (which would not be directly related to compose).
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.
This issue is unrelated with compose. Closing. If your issue persists please create a bug in https://github.com/moby/moby