Skip to content

Instantly share code, notes, and snippets.

@eflukx
Created August 10, 2016 16:10
Show Gist options
  • Save eflukx/dec615a7268e76124e15596b1ceb7589 to your computer and use it in GitHub Desktop.
Save eflukx/dec615a7268e76124e15596b1ceb7589 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
# probeersel van weleer.
current_terminal = `tty`.gsub(/\n/, '')
dev_handle = IO.sysopen(current_terminal, "w")
io_stream = IO.new(dev_handle, "w")
Process.daemon
while true do
io_stream.print "Howdy World #{RUBY_VERSION}"
sleep(1)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment