| Summary: | Cursor position when completing and using a prompt with colour escape characters is wrong | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Enrique <cquike> |
| Component: | zsh | Assignee: | James Antill <james.antill> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 13 | CC: | james.antill |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-02-18 15:03:32 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Enrique
2011-02-18 14:08:39 UTC
1. Don't use \e directly, use %F{red} and %K{blue} etc.
2. Use %{\e[0;32m%}blah ... which tells the prompt that the characters are zero width (also see the docs. for %G.
Option 2. worked perfectly. It is a pleasure to see a promptly and accurate response. Thank you! |