Sha256: 4c1491446ac34bedd9af9bd8fb6edc2aadc4ed86b80a69068fa6d3531d038884

Contents?: true

Size: 297 Bytes

Versions: 1

Compression:

Stored size: 297 Bytes

Contents

require "./lib/kommando"
require "tempfile"

scratch = Tempfile.new

k = Kommando.new "nano #{scratch.path}", {
  output: true
}

Thread.new do
  words = [
    "hello\r",
    "world\r",
    "\x1B\x1Bx",
    "y",
    "\r"
  ]
  words.each do |word|
    k.in << word
    sleep 0.25
  end
end

k.run

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kommando-0.0.11 examples/nano.rb