Shell prompts can be fairly long, so it would be nice to split the prompt over two lines, e.g.
[oracle]:[niels]:/home/oracle
$
To reproduce this prompt in fluidshell use:
declare -x PROMPT="[\\\${USERNAME}]:[\\\${DATABASE}]:\\\${PWD}\$ "
That worked fine - but I wanted a multiline prompt which can be achieved using:
declare -x PROMPT="[\\\${USERNAME}]:[\\\${DATABASE}]:\\\${PWD}
\$ "
However - While the prompt displays properly, e.g.
[ajpowell]:[WG0036]:[master]:Q:\SQL\SQLServer
$
any subsequent command does not display correctly, each keypress seems to introduce a line feed.
Field | Old Value | New Value |
---|---|---|
Dev Assignee | NielsGron (Niels Gron) | funfun (Fun Fun) |
QA Assignee | funfun (Fun Fun) | NielsGron (Niels Gron) |
Field | Old Value | New Value |
---|---|---|
Fixed Build | trunk/29641 | |
Resolution | Fixed | |
Resolved Date | Oct 9, 2012 2:33 AM | |
Status | New | Resolved |
In bash, if window is resized and shell PROMPT contains 1 or more line feed characters, bash only redraws the text after the last line feed character. This can be easily supported by fluid shell.
Field | Old Value | New Value |
---|---|---|
Status | Resolved | Closed |
Discussed with Fung and Verified in 12.0.0
Discussed with Fung and Verified in 12.0.0
Issue #7740 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build trunk/29641 |
No time estimate |
In bash, if window is resized and shell PROMPT contains 1 or more line feed characters, bash only redraws the text after the last line feed character. This can be easily supported by fluid shell.