hstr icon indicating copy to clipboard operation
hstr copied to clipboard

Messy prompt

Open mooreye opened this issue 8 months ago • 0 comments

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)

mooreye avatar Nov 01 '23 11:11 mooreye