Skip to content

Instantly share code, notes, and snippets.

@madprops
Created August 31, 2022 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madprops/8dd2d267e8f0b87053eb677d0f1b63ab to your computer and use it in GitHub Desktop.
Save madprops/8dd2d267e8f0b87053eb677d0f1b63ab to your computer and use it in GitHub Desktop.
# require "open3"
# lines = "aaa\nbbb\nccc"
# cmd = "rofi -dmenu -selected-row 0"
# stdin, stdout, stderr, wait_thr = Open3.popen3(cmd)
# stdin.puts(lines)
# puts stdout.read
# puts wait_thr.value.exitcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment