[Bug 6930] New: Terminal escape sequences in prompts are broken
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Fri Oct 18 16:31:34 UTC 2024
https://bz.mercurial-scm.org/show_bug.cgi?id=6930
Bug ID: 6930
Summary: Terminal escape sequences in prompts are broken
Product: Mercurial
Version: 6.8.1
Hardware: PC
OS: NetBSD
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: Mercurial
Assignee: bugzilla at mercurial-scm.org
Reporter: mercurial-bugzilla at campbell.mumble.net
CC: mercurial-devel at mercurial-scm.org
Python Version: ---
Some time between 6.7.4 on Python 3.11 and 6.8.1 on Python 3.12, color prompts
broke in my environment:
$ hg amend -i
diff --git a/tests/lib/libc/sys/t_select.c b/tests/lib/libc/sys/t_select.c
1 hunks, 1 lines changed
[0;33mexamine changes to 'tests/lib/libc/sys/t_select.c'?[0m[0;33m(enter ? for
help) [Ynesfdaq?][0m
In 6.7.4, the prompt was displayed in yellow text with a line break between the
question and the parenthesis, and the escape sequences were sent to the
terminal rather than displayed:
$ hg amend -i
diff --git a/tests/lib/libc/sys/t_select.c b/tests/lib/libc/sys/t_select.c
1 hunks, 1 lines changed
examine changes to 'tests/lib/libc/sys/t_select.c'?
(enter ? for help) [Ynesfdaq?]
Environment variables:
TERM=screen
HOME=/home/riastradh
TMPDIR=/tmp/riastradh
LANG=C.UTF-8
PATH=/bin:/sbin:/home/riastradh/usr/bin:/usr/bin:/usr/sbin
(screen is running under rxvt-unicode but that is unlikely to be relevant.)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list