You are not logged in.

#1 2008-07-03 16:46:46

XFire
Member
From: UK
Registered: 2008-05-11
Posts: 192

Sakura, Xterm and Yaourt

I use Sakura for my terminalling, but when I download and install a program from yaourt, when the process has finished, it changes the title of Sakura to say xterm, but its really Sakura, as it has all of the functionality and stuff.

My question is: Have I not done something right, or is it a harmless bug?

Thanks in advance for you help :)


There is a difference between bleeding [edge] and haemorrhaging. - Allan

Offline

#2 2008-07-03 17:13:20

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Sakura, Xterm and Yaourt

Its a sign telling you to use a decent terminal


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#3 2008-07-03 17:24:17

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,675

Re: Sakura, Xterm and Yaourt

dolby wrote:

Its a sign telling you to use a decent terminal

big_smile


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#4 2008-07-03 17:46:43

XFire
Member
From: UK
Registered: 2008-05-11
Posts: 192

Re: Sakura, Xterm and Yaourt

dolby wrote:

Its a sign telling you to use a decent terminal

Not quite what I had in mind


There is a difference between bleeding [edge] and haemorrhaging. - Allan

Offline

#5 2008-07-03 19:06:56

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Sakura, Xterm and Yaourt

I would think it's harmless

Offline

#6 2008-07-03 19:56:34

XFire
Member
From: UK
Registered: 2008-05-11
Posts: 192

Re: Sakura, Xterm and Yaourt

OK, thanks


There is a difference between bleeding [edge] and haemorrhaging. - Allan

Offline

#7 2008-07-03 20:43:27

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: Sakura, Xterm and Yaourt

I would venture to guess that TERM=xterm.  Try to echo $TERM and see what you get.  As Cerebral said, this is harmless I'm sure.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#8 2008-07-03 21:58:16

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,675

Re: Sakura, Xterm and Yaourt

gnome-terminal has a nice feature for not displaying dynamically set term titles wink

But urxvt will rock your momma!


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#9 2008-07-03 23:34:38

k.mandla
Member
From: Japan
Registered: 2006-05-16
Posts: 86
Website

Re: Sakura, Xterm and Yaourt

There's an option in /etc/yaourtrc that resets the terminal title after yaourt runs. You can set it to "off" in there, and it stops that behavior.

I'm not sure why that feature would be desirable, but it's there.


Linux user No. 409907

Offline

#10 2008-07-04 00:35:22

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 792

Re: Sakura, Xterm and Yaourt

Edit /usr/bin/yaourt:

die(){
    # reset term title
    if [ $TERMINALTITLE -eq 0 -o -z "$DISPLAY" ]; then
        exit $1
    fi
# begin change - no more xterm
#    echo -n -e "\033]0;$TERM\007"
    echo -n -e "\033]0;User Terminal\007"
# end change

Of course, you can make User Terminal whatever you like.  I like to have my terminal title and taskbar (prompt too) show me when I am root and when I am not.

Offline

#11 2008-07-04 03:20:51

Lyceuhns
Member
From: João Pessoa, Paraíba, Brasil
Registered: 2008-05-09
Posts: 121

Re: Sakura, Xterm and Yaourt

Same here. It's boring.

man yaourtrc wrote:

UpdateTerminalTitle
         If set to "no", don't show the current yaourt's  action  in  terminal
       title.
         By default, yaourt show messages like "Installing xxx from AUR".
         It's recommended to add something like this in your .bashrc

           example:   PROMPT_COMMAND='echo   -ne  "\033]0;${USER}@${HOSTNAME}:
       ${PWD}\007"'

Here i add this to my .bashrc:

PROMPT_COMMAND='echo   -ne  "\033]0;Terminal: ${USER}@${HOSTNAME}\007"'

I'm a more happy person now. smile

Offline

#12 2008-07-04 07:19:53

XFire
Member
From: UK
Registered: 2008-05-11
Posts: 192

Re: Sakura, Xterm and Yaourt

Thanks for all of the help


There is a difference between bleeding [edge] and haemorrhaging. - Allan

Offline

#13 2008-07-04 14:20:20

Lyceuhns
Member
From: João Pessoa, Paraíba, Brasil
Registered: 2008-05-09
Posts: 121

Re: Sakura, Xterm and Yaourt

I changed to this:

PROMPT_COMMAND='echo -ne "\033]0;Sakura\007"'

And i have always the correct name of the aplication. ;D

Offline

#14 2008-07-04 14:37:20

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,717

Re: Sakura, Xterm and Yaourt

you should add the following line to ~/.bashrc

alias sakura='sakura -t "who cares about a stupid terminal name"'

tongue

Offline

#15 2008-07-20 14:09:21

anxious
Member
From: Texas
Registered: 2008-07-18
Posts: 10

Re: Sakura, Xterm and Yaourt

dolby wrote:

Its a sign telling you to use a decent terminal

LOL

Offline

Board footer

Powered by FluxBB