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

utils.astring: A couple of strip_console_codes fixes #135

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Aug 19, 2024

  1. tests: Add strip_console_codes test

    Signed-off-by: Lukáš Doktor <[email protected]>
    ldoktor committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    0a99d55 View commit details
    Browse the repository at this point in the history
  2. utils.astring: Fix index usage

    we already set the "index += len(tmp_word) + 1" before we get to this
    exception so we must not add the tmp_index.
    
    Signed-off-by: Lukáš Doktor <[email protected]>
    ldoktor committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    10da7da View commit details
    Browse the repository at this point in the history
  3. utils.astring: Enforce the console code starts with the code

    previously we only checked the console_code is found anywhere in the
    text between the two \x1b and then we blindly removed first N
    characters. Let's ensure we check the console code regexp from the
    beginning.
    
    Signed-off-by: Lukáš Doktor <[email protected]>
    ldoktor committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    506e44a View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. utils.astring: Add ^c, ^!p and ^]104 to skip chars

    these are sometimes generated by kernel, ignore them.
    
    Signed-off-by: Lukáš Doktor <[email protected]>
    Signed-off-by: Sebastian Mitterle <[email protected]>
    ldoktor committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    5f07ea1 View commit details
    Browse the repository at this point in the history