fixed wait function (now presses enter automatically) and added execute
This commit is contained in:
parent
5ac2879344
commit
2ba6689412
4
demo.sh
4
demo.sh
@ -13,6 +13,7 @@ function wait()
|
|||||||
else
|
else
|
||||||
read -rst "$PROMPT_TIMEOUT"
|
read -rst "$PROMPT_TIMEOUT"
|
||||||
fi
|
fi
|
||||||
|
printf "\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
function type()
|
function type()
|
||||||
@ -20,3 +21,6 @@ function type()
|
|||||||
printf "$*\n" | simtyping
|
printf "$*\n" | simtyping
|
||||||
wait
|
wait
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function execute()
|
||||||
|
{ type "$@" && eval "$@"; }
|
||||||
|
Loading…
Reference in New Issue
Block a user