Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Mandriva

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-26-2008, 10:43 PM
David Mathog
 
Posts: n/a
urxvt issue on Mandriva 2008.1

Installed 2008.1 on a new workstation today. I'm used to having the
current path show up in the title bar of the window for Xterm and rxvt,
and those two still work that way in 2008.1. However,

urpmi rxvt-unicode
urxvt &

Shows the right prompt within the window, but just "urxvt" on the title.
Moreover for both rxvt and xterm:

% set | grep PROMPT
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'

but in a urxvt window:

% set | grep PROMPT
(nothing)

That string gets set in /etc/bashrc and is conditional on TERM
being "xterm". Sure enough, urxvt_set has

TERM=rxvt-unicode

Manually doing in an urxvt window:

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

Sets the display as desired.

Where is the bug? Should /etc/bashrc from Mandriva 2008.1 have another
case for rxvt-unicode, or should rxvt-unicode set TERM to xterm???

Regards,

David Mathog
Reply With Quote
  #2 (permalink)  
Old 06-26-2008, 10:49 PM
Aragorn
 
Posts: n/a
Re: urxvt issue on Mandriva 2008.1

On Friday 27 June 2008 00:43, someone who identifies as *David Mathog* wrote
in /alt.os.linux.mandriva:/

> Installed 2008.1 on a new workstation today. I'm used to having the
> current path show up in the title bar of the window for Xterm and rxvt,
> and those two still work that way in 2008.1. However,
>
> urpmi rxvt-unicode
> urxvt &
>
> Shows the right prompt within the window, but just "urxvt" on the title.
> Moreover for both rxvt and xterm:
>
> % set | grep PROMPT
> PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
>
> but in a urxvt window:
>
> % set | grep PROMPT
> (nothing)
>
> That string gets set in /etc/bashrc and is conditional on TERM
> being "xterm". Sure enough, urxvt_set has
>
> TERM=rxvt-unicode
>
> Manually doing in an urxvt window:
>
> export PROMPT_COMMAND=\
> 'echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
>
> Sets the display as desired.
>
> Where is the bug? Should /etc/bashrc from Mandriva 2008.1 have another
> case for rxvt-unicode, or should rxvt-unicode set TERM to xterm???


Okay, it is quite possible that I'm grossly wrong, but the prompt you are
showing is a percent sign, which indicates that you're using /tcsh/ or some
other variant of the C-shell. */etc/bashrc* is the runtime configuration
file for /bash,/ the Bourne Again SHell. See what I'm talking about? :p

--
*Aragorn*
(registered GNU/Linux user #223157)
Reply With Quote
  #3 (permalink)  
Old 06-27-2008, 03:36 PM
David Mathog
 
Posts: n/a
Re: urxvt issue on Mandriva 2008.1

Aragorn wrote:
> On Friday 27 June 2008 00:43, someone who identifies as *David Mathog* wrote
> in /alt.os.linux.mandriva:/
>
>> Installed 2008.1 on a new workstation today. I'm used to having the
>> current path show up in the title bar of the window for Xterm and rxvt,
>> and those two still work that way in 2008.1. However,
>>
>> urpmi rxvt-unicode
>> urxvt &
>>
>> Shows the right prompt within the window, but just "urxvt" on the title.
>> Moreover for both rxvt and xterm:
>>
>> % set | grep PROMPT
>> PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
>>
>> but in a urxvt window:
>>
>> % set | grep PROMPT
>> (nothing)
>>
>> That string gets set in /etc/bashrc and is conditional on TERM
>> being "xterm". Sure enough, urxvt_set has
>>
>> TERM=rxvt-unicode
>>
>> Manually doing in an urxvt window:
>>
>> export PROMPT_COMMAND=\
>> 'echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
>>
>> Sets the display as desired.
>>
>> Where is the bug? Should /etc/bashrc from Mandriva 2008.1 have another
>> case for rxvt-unicode, or should rxvt-unicode set TERM to xterm???

>
> Okay, it is quite possible that I'm grossly wrong, but the prompt you are
> showing is a percent sign, which indicates that you're using /tcsh/ or some
> other variant of the C-shell. */etc/bashrc* is the runtime configuration
> file for /bash,/ the Bourne Again SHell. See what I'm talking about? :p
>


I see, but that isn't it. The shell is bash in all 3 cases. I got into
the habit many years ago of posting commands with a % in front of them
so that they could be easily distinguished from a comment marked with an #.

Regards,

David Mathog
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Mandriva


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:17 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
CreditCards | Car Credit | Problem Mortgage | Credit Cards UK | Debt Loans



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109