Re: SOLVED: Problem with /usr/X11R6/bin/xterm
Re: SOLVED: Problem with /usr/X11R6/bin/xterm
- Subject: Re: SOLVED: Problem with /usr/X11R6/bin/xterm
- From: "Cook, Rich" <email@hidden>
- Date: Wed, 8 Dec 2010 11:22:15 -0800
- Acceptlanguage: en-US
- Thread-topic: SOLVED: Problem with /usr/X11R6/bin/xterm
OK, not a bug, good, one thing off my plate. :-)
On Dec 7, 2010, at 1:26 PM, Ambrose LI wrote:
> 2010/12/7 Cook, Rich <email@hidden>:
>> I guess that kind of is a bug, you are right. No I have not thought to do
>> that -- not sure where to post bash bugs. :-) I know, Google it. LOL
>> I'm glad it's fixed now, and I'll see if they agree it's a bug. It's
>> interesting that they have a special syntax in the prompt string to tell the
>> shell "these are non printing characters," as if the shell is not able to
>> divine that. Perhaps that's the best solution.
>> I mentioned tcsh once just to say it wasn't any better there. Come to think
>> of it, that's weird. Oh, well, I am glad it's fixed as I say.
>
> Indeed, the shell is not able to divine that, since you never know how
> your particular terminal responds to control characters. Not all
> terminals are ANSI, not all ANSI terminals use the same control
> sequences. And may not always be able to supply a 100% correct $TERM,
> or the corresponding terminfo might not 100% describe all possible
> control sequences (and frequently they do not). So even if the shell
> were to parse the prompt for possible control characters it still
> could miss some, so what bash does here is "trust the user, who should
> know best".
>
> --
> cheers,
> -ambrose
--
✐Richard Cook
✇ Lawrence Livermore National Laboratory
Bldg-453 Rm-4024, Mail Stop L-557
7000 East Avenue, Livermore, CA, 94550, USA
☎ (office) (925) 423-9605
☎ (fax) (925) 423-6961
---
Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden