Skip to content

Commit

Permalink
Fix issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ckardaris committed Oct 5, 2020
1 parent 3a6e675 commit 2af6ced
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ucollage
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ get_input() {
read -rsN1 -t 0.0001 k1
read -rsN1 -t 0.0001 k2
read -rsN1 -t 0.0001 k3
key="${char}${k1}${k2}${k3}"
read -rsN1 -t 0.0001 k4
key="${char}${k1}${k2}${k3}${k4}"
case "$key" in
$'\e[D') #left arrow press
if [[ -n "$left" ]]
Expand All @@ -214,6 +215,10 @@ get_input() {
fi
continue
;;
$'\e[3~')
[[ -n "$right" ]] && right="${right:1}"
continue
;;
$'\e')
input="ESCAPE";
break
Expand Down

0 comments on commit 2af6ced

Please sign in to comment.