! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
garbled prompt in terminal
Status:
RESOLVED: INVALID
Product:
Xfce4-terminal
Component:
General

Comments

Description Aaditya Bagga 2017-06-02 17:34:51 CEST
Created attachment 7147 
garbled text prompt in terminal

Hi,

I am using xfce4-terminal 0.8.5.1 for testing on Slackware64 14.2 (compiled it myself).

If I right click on thunar -> open terminal on a folder where the path is long (longer than the width of the terminal I believe), I get garbled text. Have attached to show better [1].

Initially if I maximize or minimize the terminal it remains the same [2], but if I maximize and press enter it gets corrected [3] and then if i minimize it remains corrected.

My shell is bash and $PS1 is as follows:

\[\033[01;32m\]\u\[\033[01;34m\] \w \[\033[01;32m\]$\[\033[00m\]


P.S. xfce4-terminal 0.8.5.1 seems to have other bugs with displaying the entered commands when the terminal prompt is too long (like eating the first character of the typed command) [4].
Comment 1 Aaditya Bagga 2017-06-02 17:35:36 CEST
Created attachment 7148 
on maximizing the initial garbled prompt terminal
Comment 2 Aaditya Bagga 2017-06-02 17:37:33 CEST
Created attachment 7149 
after pressing enter on maximized screen it gets corrected
Comment 3 Aaditya Bagga 2017-06-02 17:39:43 CEST
Created attachment 7150 
first character of command eaten if prompt is too long
Comment 4 Aaditya Bagga 2017-06-02 17:51:40 CEST
Created attachment 7151 
eats last character as well on alternativelt pressing enter

On pressing enter it alternatively eats the last character of the typed command as well [5].
Comment 5 Igor editbugs 2017-06-02 18:15:24 CEST
Hi, thanks for the report.
I cannot reproduce your problem here: the terminal is showing correctly the path 2 times longer than the window width.
I suspect your $PS1 can be the root cause. Can you try it with something more traditional, like "\u@\h \w$ "?
Comment 6 Igor editbugs 2017-06-02 18:18:15 CEST
Actually, your $PS1 works fine for me, but please try a simple one anyway.

Another question: what is the version of vte3 (or vte-2.91) package in your system?
Comment 7 Aaditya Bagga 2017-06-02 18:35:34 CEST
Hey Igor,

Thanks for the quick response!

Yes, it does seem my PS1 has something to do with it (used to work earlier though), on changing to the PS1 you wrote ("\u@\h \w$ ") it worked.

vte package version is 0.44.3 (inside the package its vte-2.91).
Comment 8 Aaditya Bagga 2017-06-02 18:43:03 CEST
Created attachment 7152 
this is how it looks like wit the suggested simple PS1
Comment 9 Igor editbugs 2017-06-02 19:04:21 CEST
(In reply to Aaditya Bagga from comment #8)
> Created attachment 7152 
> this is how it looks like wit the suggested simple PS1

Part of the path is still swallowed, this is weird. It's not happening here.

IDK, it could be related to vte or basj, I guess. Can you try updating those packages?
Also, can you try another terminal app which is based on vte, e.g. gnome-terminal?
Comment 10 Aaditya Bagga 2017-06-03 17:24:39 CEST
Hi Igor,

Compiling gnome-terminal is proving to be slightly tricky:


checking for TERM... configure: error: Package requirements (vte >= 0.26.0
   glib-2.0 >= 2.25.0
   gthread-2.0
   gio-2.0 >= 2.25.12
   gtk+-2.0 >= 2.18.0
   gconf-2.0 >= 2.31.3
   x11) were not met:

No package 'vte' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables TERM_CFLAGS
and TERM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


vte-0.44.3 is installed as pointed out earlier.

As soon as I am able solve this or try it on another distro, I will let you know.
Comment 11 Igor editbugs 2017-06-03 23:34:56 CEST
(In reply to Aaditya Bagga from comment #10)
> Hi Igor,
> 
> Compiling gnome-terminal is proving to be slightly tricky:
> 
> 
> checking for TERM... configure: error: Package requirements (vte >= 0.26.0
>    glib-2.0 >= 2.25.0
>    gthread-2.0
>    gio-2.0 >= 2.25.12
>    gtk+-2.0 >= 2.18.0
>    gconf-2.0 >= 2.31.3
>    x11) were not met:
> 
> No package 'vte' found


Hi Aaditya,

It seems you're trying to build a very old gtk2 version of gnome-terminal. Can you build a newer gtk3 version?
Also, is it possible to update vte-2.91 version?
Comment 12 Aaditya Bagga 2017-06-04 06:55:37 CEST
Hey Igor,

I check on another distribution where I have xfce4-terminal-0.8.5.1 and vte-0.46.1 (2.91), and this bug is not present :-)

So its likely the bug lies with vte; will try upgrading to vte-0.46.1 (2.91) on my Slackware install and see if it gets fixed.
Comment 13 Igor editbugs 2017-06-04 17:25:55 CEST
Hi Aaditya,

Thanks for the update! Ok, so this seems to be a vte or a system configuration issue.
Comment 14 Igor editbugs 2017-06-07 04:59:50 CEST
Hi Aaditya, any news?
Comment 15 Aaditya Bagga 2017-06-07 12:34:55 CEST
Hi Igor,

Updating to vte-0.46.1 is proving to be slightly difficult as it needs libpcre2-8 >= 10.21 and many packages depend on libpcre2.8 so upgrading it would not be easy.

So I think this bug can be marked as resolved due to the issue likely being with vte rather than xfce4-terminal.

If later on after upgrading vte this bug is still present then I can reopen it.

Thanks for your help,
Aaditya

Bug #13617

Reported by:
Aaditya Bagga
Reported on: 2017-06-02
Last modified on: 2017-06-07

People

CC List:
1 user

Version

Version:
0.8.5.1

Attachments

Additional information