Sha256: d6f55b67384b61e5f0d0968d2131098692a1d603e1a414adae6364cf22073a02
Contents?: true
Size: 347 Bytes
Versions: 3
Compression:
Stored size: 347 Bytes
Contents
require "./lib/kommando" require "tempfile" scratch = Tempfile.new "test" 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 `reset` #TODO: how to reset in kommando?
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kommando-0.1.2 | examples/nano.rb |
kommando-0.1.1 | examples/nano.rb |
kommando-0.1.0 | examples/nano.rb |