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

Messy prompt #503

Open
mooreye opened this issue Nov 1, 2023 · 0 comments
Open

Messy prompt #503

mooreye opened this issue Nov 1, 2023 · 0 comments

Comments

@mooreye
Copy link

mooreye commented Nov 1, 2023

This is my .bashrc fragment relevant to hstr:

if [[ $- == *i* ]]; then
    _hstrnotiocsti() {
        { READLINE_LINE="$( { </dev/tty hstr "${@:-}" $READLINE_LINE; } 2>&1 1>&3 3>&- )"; } 3>&1
        READLINE_POINT=${#READLINE_LINE}
    }
    export HSTR_TIOCSTI=n
    export HSTR_CONFIG='blacklist,hicolor,help-on-opposite-side,raw-history-view,static-favorites'
    export HSTR_PROMPT='> '
    bind -x '"\C-r": _hstrnotiocsti --'
    bind -x '"\C-s": _hstrnotiocsti -f'
fi

This is what happens when you type, backspace and then type again:
a
you can see characters randomly disappear in the prompt.

Versions:

  • Fedora 38
  • # GNOME Terminal 3.48.1 using VTE 0.72.2 +BIDI +GNUTLS +ICU +SYSTEMD
  • hstr version "3.1.0" (2023-04-18T08:50:00)
@dvorka dvorka self-assigned this Feb 24, 2024
@dvorka dvorka added this to the 3.1 TIOCSTI strikes back! milestone Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants