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

Move cursor to the beginning of the line before erasing #126

Merged
merged 1 commit into from Dec 17, 2021

Commits on Dec 17, 2021

  1. Move cursor to the beginning of the line before erasing

    The \033[K escape sequence signifies 'clear from cursor position to the
    end of the line'. Without moving the cursor to the beggining of the line
    first it results in no text being deleted. The behaviour of Carriage
    Return (\r) in terminal emulators is not formally standardized but it is
    generally interpreted as a move to the beginning of the line.
    
    Fixes briandowns#123
    HarryMichal committed Dec 17, 2021
    Copy the full SHA
    a723f91 View commit details
    Browse the repository at this point in the history