improved handling of automatic enter presses of execute
This commit is contained in:
2
demo.sh
2
demo.sh
@@ -13,7 +13,6 @@ function wait()
|
|||||||
else
|
else
|
||||||
read -rst "$PROMPT_TIMEOUT"
|
read -rst "$PROMPT_TIMEOUT"
|
||||||
fi
|
fi
|
||||||
printf "\n"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function type()
|
function type()
|
||||||
@@ -31,6 +30,7 @@ function execute()
|
|||||||
{
|
{
|
||||||
prompt
|
prompt
|
||||||
type "$@" && wait
|
type "$@" && wait
|
||||||
|
printf "\n"
|
||||||
eval "$@"
|
eval "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user