help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] Capture tab in a readline.


From: Sinbad
Subject: [Help-bash] Capture tab in a readline.
Date: Mon, 21 Aug 2017 17:11:38 +0530

Hi,

I'm trying to capture tab with readline. The following is not working as
expected.
I don't want to use "-n 1", as i need the command editing capability. Any
advice ?


while IFS= read -e -i "$cmd" -p $prompt char
do
    if [[ "$char" == "$mytab" ]]; then
        echo "got tab"
    fi
done


reply via email to

[Prev in Thread] Current Thread [Next in Thread]