* problem with my term and Misc/colors
@ 2004-08-10 13:54 Han Boetes
2004-08-11 0:35 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Han Boetes @ 2004-08-10 13:54 UTC (permalink / raw)
To: zsh-workers
Hi,
I found a problem with the colors package:
For example I type:
~% cd /[tab]
Then get a litteral tab as well and it looks like: Note the second
instance of cd /
~% cd / cd /
directory
.systrace/ bin/ etc/ kern/
Here is a fix:
--- colors.orig 2004-08-10 15:31:19.480393544 +0200
+++ colors 2004-08-10 15:32:39.018301944 +0200
@@ -54,7 +54,8 @@
# The following are terminal escape sequences used by colored prompt
themes.
-local lc=$'\e[' rc=m # Standard ANSI terminal escape values
+#local lc=$'\e[' rc=m # Standard ANSI terminal escape values
+local lc=$'%{\e[' rc='m%}' # Standard ANSI terminal escape values
typeset -Hg reset_color bold_color
reset_color="$lc${color[none]}$rc"
# Han
--
\_/ The three questions of greatest concern are -- 1.
m00h ( _ ) -(_)- Is it attractive? 2. Is it amusing? 3. Does it
\ ~O o~__ / \ know its place? -- Fran Lebowitz, Metropolitan
(._.)_|\ Life
________|_|_|_________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: problem with my term and Misc/colors
2004-08-10 13:54 problem with my term and Misc/colors Han Boetes
@ 2004-08-11 0:35 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2004-08-11 0:35 UTC (permalink / raw)
To: zsh-workers
On Tue, 10 Aug 2004, Han Boetes wrote:
> I found a problem with the colors package
Based on the change you made, I'd say it was a problem with your $PS1
setting, not with the colors package.
> Here is a fix:
>
> +++ colors 2004-08-10 15:32:39.018301944 +0200
> @@ -54,7 +54,8 @@
> +local lc=$'%{\e[' rc='m%}' # Standard ANSI terminal escape values
This is definitely not correct. The color values set up by the colors
package are meant to be used in a number of places other than prompts
(despite the comment to the effect that prompt themse use them). If you
use the color values in your prompt, you should use the %{ and %} around
them, but the prompt delimiters do not belong in the colors package.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-11 0:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-10 13:54 problem with my term and Misc/colors Han Boetes
2004-08-11 0:35 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).