guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guix search, colors and INSIDE_EMACS


From: zimoun
Subject: Re: Guix search, colors and INSIDE_EMACS
Date: Tue, 11 Feb 2020 19:09:43 +0100

Hi Jack,

On Tue, 11 Feb 2020 at 17:37, Jack Hill <address@hidden> wrote:

> I've been trying to follow this discussion as I have observed problems
> with the linking characters in eshell. However, it seems I am having
> seeing different behavior than others. In both Emacs 26.3 and Emacs-next
> 27.0.50, running as `emacs -q`, INSIDE_EMACS is not being set in eshell
> so, guix describe looks like
>
> guix describe
> ]8;;file://lib-its13/var/guix/profiles/per-user/install/current-guix-66-link\Generation
>  66      Feb 07 2020 10:38:56]8;;\       (current)

We are discussing the character ]8;; which is the special character OSC.
The terminal emulator should either provide an hyperlink, either do
nothing and ignore what is inside the special character.
As you see, the terminal emulator does not render it correctly.
Setting INSIDE_EMACS turn off that. If it is by default is another story. :-)

However, I thought that it was fixed in Emacs 27. Ouch!


>      commit: 
> ]8;;https://git.savannah.gnu.org/cgit/guix.git/commit/?id=232f344f9b9dc775fe8f9c7db2e45ba20431b071\232f344f9b9dc775fe8f9c7db2e45ba20431b071]8;;\

Note that the OSC also appears in some 'guix system' subcommand if I
remember correctly.


> In shell and term mode, INSIDE_EMACS is being set, and everything looks fine
> (although without any highlighting).

You mean set by default, right?

However, note that '*shell*' render correctly the highlighting
(Generation in bold face) so the OSC could be turned off and the
highlight on.



All the best,
simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]