Skip to content

Commit

Permalink
Bugfix: spureous hidden characters appear on output when running in b…
Browse files Browse the repository at this point in the history
…atch mode
  • Loading branch information
ml0renz0 committed Jun 25, 2019
1 parent 8744c91 commit 77e6420
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vcli
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# vcli internal variables
declare SCRIPTNAME
SCRIPTNAME="$(basename "$0")"
declare VERSION="0.5.14"
declare VERSION="0.5.15"
declare VERBOSE=${VERBOSE:-"no"}
declare DEBUG=${DEBUG:-"no"}
declare DEBUG_HEXDUMP="no"
Expand Down Expand Up @@ -2263,8 +2263,10 @@ function main(){
clean_n_exit
;;
$'\x20'|*) # NORMAL CHARS
tput ich 1 # insert chars rather than overwriting them
[[ ! $disable_prompt ]] && echo -n "$_key" #| hexdump -C
if [[ ! $disable_prompt ]]; then
tput ich 1 # insert chars rather than overwriting them
echo -n "$_key" #| hexdump -C
fi
let len+=1
let pos+=1
tmpmsg="${#cmd}: \"$cmd\""
Expand Down

0 comments on commit 77e6420

Please sign in to comment.