New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REPL / built-in readline: Add CTRL-L support (clear screen) #11354
Comments
This feature is actually implemented but in a library: |
As far as I can see, the upysh library doesn't hook into the readline implementation at all. My aim here is not to clear the screen from python code, not even to type So, |
This commit implements CTRL-L, a somewhat common key to clear the the screen and move the prompt and command line to the top of the screen. At least zsh, fish, ruby, and GNU readline support it. Fixes: micropython#11354
This commit implements CTRL-L, a somewhat common key to clear the the screen and move the prompt and command line to the top of the screen. At least zsh, fish, ruby, and GNU readline support it. Fixes: micropython#11354
This commit implements CTRL-L, a somewhat common key to clear the the screen and move the prompt and command line to the top of the screen. At least zsh, fish, ruby, and GNU readline support it. Fixes: micropython#11354 Signed-off-by: J. Neuschäfer <j.ne@posteo.net>
This commit implements CTRL-L, a somewhat common key to clear the the screen and move the prompt and command line to the top of the screen. At least zsh, fish, ruby, and GNU readline support it. Fixes: micropython#11354 Signed-off-by: J. Neuschäfer <j.ne@posteo.net>
This commit implements CTRL-L, a somewhat common key to clear the the screen and move the prompt and command line to the top of the screen. At least zsh, fish, ruby, and GNU readline support it. Fixes: micropython#11354 Signed-off-by: J. Neuschäfer <j.ne@posteo.net>
This commit implements CTRL-L, a somewhat common key to clear the the screen and move the prompt and command line to the top of the screen. At least zsh, fish, ruby, and GNU readline support it. Fixes: micropython#11354 Signed-off-by: J. Neuschäfer <j.ne@posteo.net>
Right now, the built-in readline implementation (
shared/readline/readline.c
) does not support CTRL-L, which is a somewhat common key to clear the the screen, and move the prompt and command line to the top of the screen. At least bash supports it.This feature could be optional, and features like
MICROPY_REPL_EMACS_KEYS
already are, but the size savings wouldn't very much.I might implement this myself If I get around to it. If anyone else want to do it, please let me know here.
The text was updated successfully, but these errors were encountered: