Open bb010g opened 1 month ago
Sorry for the delay. I thought I could implement it soon, but I was working on other parts. I'll add the feature.
BTW, the reason that the messages of the visible bell is shown outside the drawing area of the line editor was that I initially wanted to make the visible bell available also from subshell processes. Since the drawing area of the line editor is under the control of the main shell, if a subshell changes its content, the layout and the rendering of the drawing area would be broken. However, the visible bell turned out to be only used by the main shell after ble.sh is matured, so we can safely render the visible bell within the drawing area of the line editor.
I implemented it in commit fe85e0dd02ad0873c0e50cfd1bd8d2c05319b400. The location of the visible bell can be configured using bleopt vbell_align
.
panel
to the possible values of vbell_align
, though it's not turned on by default.left
to right
(which I thought I did several years ago, but I realized I actually didn't). Now, the messages are shown on the top right corner of the terminal by default.You can show the visible-bell messages below the command line by using the following setting:
# blerc
bleopt vbell_align=panel
Since this is a new feature, there are still some parts unstable. @bb010g Could you update ble.sh by running ble-update
in a ble.sh session and check the behavior under the setting bleopt vbell_align=panel
?
@bb010g Could you check the behavior? If not, can I close the issue?
Currently, the visible bell can overwrite potentially important parts of my terminal's scrollback. However, I would like to not completely disable the visible bell. Could an option be added to allow the visible bell to render under the current command line, similar to how completions are rendered, such that terminal scrollback can be preserved?