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.
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.
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.