Skip to content
Snippets Groups Projects
Commit e185a34d authored by Simon Oehrl's avatar Simon Oehrl
Browse files

Fix escape char

parent e497b778
No related branches found
No related tags found
No related merge requests found
...@@ -163,7 +163,7 @@ function manage_plugins() { ...@@ -163,7 +163,7 @@ function manage_plugins() {
SAVEIFS=$IFS SAVEIFS=$IFS
IFS='' IFS=''
escape_char=$(printf "\u1b") escape_char=$(printf "\033")
escape=false escape=false
read -rsn1 mode # get 1 character read -rsn1 mode # get 1 character
if [[ $mode == $escape_char ]]; then if [[ $mode == $escape_char ]]; then
...@@ -266,7 +266,7 @@ function show_main_menu() { ...@@ -266,7 +266,7 @@ function show_main_menu() {
SAVEIFS=$IFS SAVEIFS=$IFS
IFS='' IFS=''
escape_char=$(printf "\u1b") escape_char=$(printf "\033")
escape=false escape=false
read -rsn1 mode # get 1 character read -rsn1 mode # get 1 character
if [[ $mode == $escape_char ]]; then if [[ $mode == $escape_char ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment