unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#40369: guix environment messed up shell
@ 2020-04-01 10:03 Alexandru-Sergiu Marton
  2020-04-02 10:34 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Alexandru-Sergiu Marton @ 2020-04-01 10:03 UTC (permalink / raw)
  To: 40369


[-- Attachment #1.1: Type: text/plain, Size: 743 bytes --]

Hi,

Whenever I run `guix environment <package>`, the shell I get has
problems when I write commands that span multiple lines. The most basic
glitch is that when I get to the end of the first line, the next
characters end up at the beginning of the same line, overwriting
everything I wrote so far. One of the wilder scenarios is the one where
each new character is added on a new line, _on top_ of the one I'm
currently writing.

Steps to reproduce:
1. $ guix environment neovim
2. Write stuff that is longer than a single line.

I attached a screenshot for the first situation. You can see how the
text has overwritten my prompt.

Cheers,
--
Alexandru-Sergiu Marton <brown121407@member.fsf.org>
https://brown.121407.xyz

[-- Attachment #2: guix-env.png --]
[-- Type: image/png, Size: 12305 bytes --]

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

* bug#40369: guix environment messed up shell
  2020-04-01 10:03 bug#40369: guix environment messed up shell Alexandru-Sergiu Marton
@ 2020-04-02 10:34 ` Ludovic Courtès
  2020-04-02 11:03   ` Alexandru-Sergiu Marton
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2020-04-02 10:34 UTC (permalink / raw)
  To: Alexandru-Sergiu Marton; +Cc: Alexandru-Sergiu Marton, 40369

Hi,

"Alexandru-Sergiu Marton" <brown121407@posteo.ro> skribis:

> Whenever I run `guix environment <package>`, the shell I get has
> problems when I write commands that span multiple lines. The most basic
> glitch is that when I get to the end of the first line, the next
> characters end up at the beginning of the same line, overwriting
> everything I wrote so far. One of the wilder scenarios is the one where
> each new character is added on a new line, _on top_ of the one I'm
> currently writing.
>
> Steps to reproduce:
> 1. $ guix environment neovim
> 2. Write stuff that is longer than a single line.

What shell do you use?

Could you check if this is somehow due to PS1?  For instance run:

  guix environment neovim
  export PS1='\u\$ '
  write a loooong line

Thanks in advance,
Ludo’.

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

* bug#40369: guix environment messed up shell
  2020-04-02 10:34 ` Ludovic Courtès
@ 2020-04-02 11:03   ` Alexandru-Sergiu Marton
  2020-04-02 16:39     ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Alexandru-Sergiu Marton @ 2020-04-02 11:03 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Alexandru-Sergiu Marton, 40369

> What shell do you use?

bash

> Could you check if this is somehow due to PS1? For instance run:
>
> guix environment neovim
> export PS1='\u\$ '
> write a loooong line

That fixed it, so it isn't a Guix bug. Thanks a lot!

It was something wrong with how I set the colors with tput that only
manifested when I entered an environment cause that appends a colored
"[env]" to my PS1.

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

* bug#40369: guix environment messed up shell
  2020-04-02 11:03   ` Alexandru-Sergiu Marton
@ 2020-04-02 16:39     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2020-04-02 16:39 UTC (permalink / raw)
  To: Alexandru-Sergiu Marton; +Cc: Alexandru-Sergiu Marton, 40369

"Alexandru-Sergiu Marton" <brown121407@posteo.ro> skribis:

>> What shell do you use?
>
> bash
>
>> Could you check if this is somehow due to PS1? For instance run:
>>
>> guix environment neovim
>> export PS1='\u\$ '
>> write a loooong line
>
> That fixed it, so it isn't a Guix bug. Thanks a lot!
>
> It was something wrong with how I set the colors with tput that only
> manifested when I entered an environment cause that appends a colored
> "[env]" to my PS1.

Cool, thanks for letting us know!

Ludo’.

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

end of thread, other threads:[~2020-04-02 16:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-01 10:03 bug#40369: guix environment messed up shell Alexandru-Sergiu Marton
2020-04-02 10:34 ` Ludovic Courtès
2020-04-02 11:03   ` Alexandru-Sergiu Marton
2020-04-02 16:39     ` Ludovic Courtès

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

	https://git.savannah.gnu.org/cgit/guix.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).