Skip to content

Commit

Permalink
Added support for interactive terminal applications
Browse files Browse the repository at this point in the history
  • Loading branch information
jo1gi committed Apr 11, 2021
1 parent e478a58 commit 344baea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openurl.cr
Expand Up @@ -15,4 +15,4 @@ if result.nil?
end
# Running command
command, args = Command.parse_command(result, opts.url)
Process.run(command, args: args, output: opts.output ? STDOUT : Process::Redirect::Close)
Process.run(command, args: args, output: opts.output ? STDOUT : Process::Redirect::Close, input: STDIN, shell: true)

0 comments on commit 344baea

Please sign in to comment.