class Hokaido::Broadcast::InputHandler

Public Class Methods

new(ptyin) click to toggle source
# File lib/hokaido/broadcast.rb, line 47
def initialize(ptyin)
  @ptyin = ptyin

  async.run
end

Public Instance Methods

run() click to toggle source
# File lib/hokaido/broadcast.rb, line 53
def run
  while char = $stdin.getch
    @ptyin.putc char
  end

  terminate
end