Help to send a key or space to telnet?

#1

Hi guys, someone can help me with telnet?

How to send an space or other letter to it?
After sending the command it gets blocked and is disconnected by timeout, I’ve tried after host.print(65.chr) but not work.

I’m stuck at this output:

SPACE for next page, CR for next line, A for all, Q

require ‘net/telnet’

host = Net::Telnet::new(
    'Host'  =>  '123.123.123.123',
    'Port'  =>   23)

host.login('admin', 'admin')

host.cmd('port description list 1/1/1') do |c|
  print c
end

Sorry my english and thanks if someone help me.