unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27407: 25.2; SGR reset is ignored if it terminates Eshell's output
@ 2017-06-17 11:31 Pierre Neidhardt
  2017-06-17 18:19 ` npostavs
  0 siblings, 1 reply; 7+ messages in thread
From: Pierre Neidhardt @ 2017-06-17 11:31 UTC (permalink / raw)
  To: 27407

Steps to reproduce:

- M-x eshell
- Enter "^[[33mhello^[[0m"

The new prompt becomes yellow.

It does not happen if the SGR reset sequence is not last.
This is fine for instance:

- echo "^[[33mhello^[[0m"X
- echo -n "^[[33mhello^[[0m"

Maybe an off-by-one error in the `ansi-*' function?



In GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.10)
 of 2017-04-22 built on juergen
Windowing system distributor 'The X.Org Foundation', version 11.0.11903000
System Description:	Arch Linux

Configured using:
 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe
 -fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-07-03 14:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-17 11:31 bug#27407: 25.2; SGR reset is ignored if it terminates Eshell's output Pierre Neidhardt
2017-06-17 18:19 ` npostavs
2017-06-18  6:49   ` Pierre Neidhardt
2017-06-18 17:50     ` npostavs
2017-06-18 18:07       ` Pierre Neidhardt
2017-06-18 19:34         ` npostavs
2017-07-03 14:12           ` npostavs

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).