Sha256: e1801ae62380a05b8f458eef55d67cabc2923db7b1e2be0efa294109547edd52
Contents?: true
Size: 371 Bytes
Versions: 3
Compression:
Stored size: 371 Bytes
Contents
require "./lib/kommando" require "tempfile" scratch = Tempfile.new "test" 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kommando-0.1.2 | examples/nano_match.rb |
kommando-0.1.1 | examples/nano_match.rb |
kommando-0.1.0 | examples/nano_match.rb |