Skip to content
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

shared/readline: Implement CTRL-L (clear screen, redraw prompt) #14332

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

neuschaefer
Copy link
Contributor

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: #11354

Copy link

codecov bot commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.39%. Comparing base (49ce7a6) to head (d1b0814).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #14332   +/-   ##
=======================================
  Coverage   98.39%   98.39%           
=======================================
  Files         161      161           
  Lines       21204    21204           
=======================================
  Hits        20864    20864           
  Misses        340      340           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dpgeorge
Copy link
Member

Can you please rebase again on latest master, to pick up #14349?

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>
Copy link

Code size report:

   bare-arm:    +0 +0.000% 
minimal x86:   +32 +0.017% 
   unix x64:   +24 +0.003% standard
      stm32:   +28 +0.007% PYBV10
     mimxrt:   +32 +0.009% TEENSY40
        rp2:   +24 +0.007% RPI_PICO
       samd:   +28 +0.011% ADAFRUIT_ITSYBITSY_M4_EXPRESS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

REPL / built-in readline: Add CTRL-L support (clear screen)
2 participants