diff options
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -44,10 +44,8 @@ local function prompt_backend_whiptail(msg, menu) end local function prompt_backend_vis_menu(msg, menu, choices) - local cmd1 = 'printf >/dev/tty %s \'' .. msg .. '\n\'' - local cmd2 = 'printf %s \'' .. choices .. '\'' - local cmd3 = 'vis-menu -b -p \'' .. menu .. '\'' - return vis:pipe(cmd1 .. ';' .. cmd2 .. '|' .. cmd3, true) + os.execute('printf >/dev/tty %s \'' .. msg .. '\n\'') + return vis:pipe(choices, 'vis-menu -b -p \'' .. menu .. '\'', true) end local function prompt_backend(path, lfile_path, pid, backend) |
