superclass=SimpleDelegator
type=class
library=net.telnet
extended=
included=

=== 

  require 'net/telnet'
  
  # ⡼ȥۥ foobar ³
  telnet = Net::Telnet.new("Host" => "foobar") {|c| print c}
  
  # 
  telnet.login("your name", "your password") {|c| print c}
  # 塢ץץȤФޤԤ碌
  
  telnet.cmd("ls") {|c| print c}
  # ޥɼ¹Ը塢ץץȤФޤԤ碌
  
  # ʣ
  telnet.cmd("sleep 5 && echo foobar &") {|c| print c}
  
  STDOUT.flush # <- 줬ʤȤޤǽƤ뤳Ȥ狼ˤ
  
  # ΥޥɤνϤԤ碌
  telnet.waitfor(/foobar\Z/) {|c| print c}
  
  # 󥻥åνλ
  telnet.cmd("exit") {|c| print c}
  telnet.close


Net::Telnet Υ󥹥󥹤ϡåȤΥ᥽åɤdelegateޤ(㤨
Сå󤬽ä close ¹ԤɤǤ礦)
