From ef6868d2f3edc883b75c672bb17ece5bc6ef9c37 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 16 Dec 2024 18:17:50 -0800 Subject: workaround for GNU Readline problem. - When the bracketed paste feature is enablied in GNU Readline, then each time the library processes a SIGLARM signal, it emits codes to turn off and on bracketed paste. In between these codes, it also emits a CR character that causes the cursor to jump to the beginning of the line. We work around this by turning off bracketed paste. --- basta.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/basta.sh b/basta.sh index 099c959..88e6496 100644 --- a/basta.sh +++ b/basta.sh @@ -179,6 +179,10 @@ if ! [ $basta_status_alarm_pid ] ; then disown $! fi +# workaround for GNU Readline behavior whereby each time it +# receives a SIGALRM, it emits cruft to the terminal. +bind 'set enable-bracketed-paste 0' + # Copyright 2023 # Kaz Kylheku # Vancouver, Canada -- cgit v1.2.3