Add clear and redraw binding
I think the correct binding should be:
And I agree it should be added as a default binding inside /usr/share/yash/initialization/common as it is considered an expected behavior in many shells.
ksh and mksh seem to bind ESC C-L to a clear-and-redraw-all equivalent though bash and zsh do C-L.
Well regardless of the implementation, does yash provide a default key binding to clear and redraw?
I'm not thinking of default-binding clear-and-redraw-all to Ctrl-L, as I suppose such a potentially destructive functionality should not be accessed too easily. Instead, I've added a code example to the sample script in r4241 to show how to rebind the key for users who wish to do so at their own risk.
I think not having this binding by default is frustrating for many users, myself included, as I've spent a good chunk of time trying to find it in the documentation and wondered why it is not enabled by default.
Would you consider adding the following line to the "share/initialization/common" file?
... # some useful key bindings bindkey --emacs '\L' clear-and-redraw-all bindkey --emacs '\N' beginning-search-forward ...
Thanks in advance for your time and effort!