Sinbad
2017-08-21 11:41:38 UTC
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
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