Skip to content

Commit

Permalink
Fixing Backspace for issue #1
Browse files Browse the repository at this point in the history
Some terminals have a different representation for Backspace, using the
number 127 (177 in octal or 0x7F in hex system).
  • Loading branch information
ckardaris committed Oct 5, 2020
1 parent 1dc9da0 commit afb6289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ucollage
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ get_input() {
input="ESCAPE";
break
;;
$'\b')
$'\b'|$'\x7F')
[[ -n "$left" ]] && left="${left:0:-1}"
continue
;;
Expand Down

0 comments on commit afb6289

Please sign in to comment.