Sha256: 39941a16a3ca62a8bd5f445e065001b46db49b8f371468cf2f22eebfcd448a8f
Contents?: true
Size: 361 Bytes
Versions: 1
Compression:
Stored size: 361 Bytes
Contents
require "./lib/kommando" require "tempfile" scratch = Tempfile.new k = Kommando.new "nano scratch.path", { output: true } k.out.on "GNU nano" do k.in << "hello\r" k.in << "\x1B\x1Bx" k.out.on "Save modified buffer" do k.in << "y" k.out.on "File Name to Write" do k.in << "\r" end end end k.run `reset` #TODO: reset in kommando
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kommando-0.0.12 | examples/nano_match.rb |