akinomyoga/ble.sh

Terminal Emulator not Refreshing on Right Key Press.

Closed this issue · 2 comments

Shell information:

GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu) [EndeavourOS]
ble.sh, version 0.4.0-devel4+a9b962d2 (noarch) [git 2.45.2, GNU Make 4.4.1, GNU Awk 5.3.0, API 4.0, PMA Avon 8-g1, (GNU MPFR 4.2.1, GNU MP 6.3.0)]
bash-completion, version 2.14.0 (hash:480ffcc6a751e55621ec526eb5dea7a0d86d9e72, 17877 bytes) (noarch)
starship, version 1.19.0 (rustc 1.78.0 (9b00956e5 2024-04-29) (Arch Linux rust 1:1.78.0-1), 2024-05-15 19:07:12 +00:00)
zoxide, version 0.9.4 (/usr/bin/zoxide)
locale: LANG=en_CA.UTF-8 LC_ADDRESS=en_CA.UTF-8 LC_IDENTIFICATION=en_CA.UTF-8 LC_MEASUREMENT=en_CA.UTF-8 LC_MONETARY=en_CA.UTF-8 LC_NAME=en_CA.UTF-8 LC_NUMERIC=en_CA.UTF-8 LC_PAPER=en_CA.UTF-8 LC_TELEPHONE=en_CA.UTF-8 LC_TIME=en_CA.UTF-8
terminal: TERM=xterm-kitty wcwidth=15.0-west/15.1-2+ri, kitty:0 (1;4000;35)

The Problem:

While using ble.sh, the terminal does not refresh automatically after pressing right. When typing or moving the cursor left, the terminal refreshes. When pressing right, I can only see the new location of the cursor after pressing another key or waiting for the cursor to blink. I noticed this happening in all terminal emulators that I tested with both my normal .bashrc and an empty one (aside from ble.sh initialization).

Thanks for the report. It doesn't reproduce in my environment. I've never experienced the reported behavior.

Could you try the following and answer Q1..Q5?

$ bash  # <-- start a child Bash session
$     # <-- Q1. Does the behavior reproduce here?
$ exit  # <-- exit from the child session
$ INPUTRC=/dev/null bash   # <-- start a child Bash session without loading any ~/.inputrc or /etc/inputrc
$     # <-- Q2. Does the problem reproduce here?
$ exit  # <-- exit from the child session
$ bind -v | grep keyseq-timeout
        <-- Q3. What is the output?
$ bind 'set keyseq-timeout 1'
$     # <-- Q4. Does the problem reproduce here?
$ builtin bind -spX > ~/blesh473.txt
        <-- Q5. Could you attach the file created at ~/blesh473.txt?
            You can drag and drop the text file in the textarea of GitHub

Q1: Yes
Q2: No, This does work
Q3: set keyseq-timeout 500
Q5: No, This works as well
Q5: blesh473.txt

Thanks for the response!

The issue seemed to have been with my .inputrc file. After removing it, everything worked as expected.