-
-
Save milligramme/6109970 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Earthquake.init do | |
output do |item| | |
next unless item['text'] | |
next unless config[:separator] | |
unless config[:screen_width] | |
begin | |
require 'curses' | |
screen = Curses.init_screen | |
config[:screen_width] = screen.maxx | |
Curses.close_screen | |
rescue LoadError | |
config[:screen_width] = 72 | |
end | |
end | |
puts (config[:separator] * config[:screen_width]).c(:info) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment