Lets's say my prompt looks like this (the _ represents my cursor)
~ % _
Is there any way I could make it look like this
~ % _
[some status]
The question was originally about zsh, but now has other answers.
|
|
The following settings seem to work. The text on the second line disappears if the command line overflows the first line. The
Terminfo is a terminal access API. Zsh has a The sequence of actions is: move the cursor down one line ( If the text on the second line is wider than the terminal, the display may be garbled. Use Ctrl+L in a pinch to repair. |
||||
|
|
|
Here is a
If the terminal doesn't support one of the capabilities, it will fall back to a one-line prompt. The EDIT: Improved script based on Gilles' comments. |
||||
|