lib/sample_cmdlet_patterns/commands/key_reader_read_line.rb
# Execute KeyReaderReadLine subcommand taking input from
# a input stream and writing to output stream
#
# sample: output.puts 'OK'
Execute KeyReaderReadLine subcommand taking input from
a input stream and writing to output stream


Execute KeyReaderReadLine subcommand taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        heading 'Read characters until new line (try ^A and ^B)' 
        heading 'read_line'
        reader.read_line
        heading 'read_line(raw: false)'
        reader.read_line(raw: false)
        heading 'read_line(echo: false)'
        reader.read_line(echo: false)
        heading 'read_line(":):):) >>>>> ")'
        reader.read_line(':):):) >>>>>  ')
        heading 'read_line("> ", value: "edit me")'
        reader.read_line('> ', value: 'edit me')
        :gui
      end
def execute ( input : $stdin , output : $stdout ) heading 'Read characters until new line (try ^A and ^B)' heading 'read_line' reader . read_line heading 'read_line(raw: false)' reader . read_line ( raw : false ) heading 'read_line(echo: false)' reader . read_line ( echo : false ) heading 'read_line(":):):) >>>>> ")' reader . read_line ( ':):):) >>>>>  ' ) heading 'read_line("> ", value: "edit me")' reader . read_line ( '> ' , value : 'edit me' ) :gui end
Execute KeyReaderReadLine subcommand taking input from
a input stream and writing to output stream
Execute KeyReaderReadLine subcommand taking input from a input stream and writing to output stream
# (responds to control characters such as Control-A to Control-B to navigate through history)'
input
output