You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add rprompt support for right-side prompt display (take 2) (#879)
* Add rprompt support for right-side prompt display
This adds support for displaying a right-aligned prompt (rprompt)
similar to zsh's RPROMPT feature. The rprompt is displayed at the
right edge of the terminal and automatically hides when the input
line gets too long.
Usage:
Reline.readline("> ", rprompt: "[%H:%M]")
The rprompt is rendered as part of Reline's normal render cycle,
so it persists during line editing unlike workarounds using
pre_input_hook.
* Let readline and readmultiline accept both positional and keyword args
for prompt, add_hist, and rprompt.
* add_hist => add_history
0 commit comments