Sha256: 04a3e31e1e311c480d199c581b01b5751cc092d75eb63a0017b6b13bc10dfc9d
Contents?: true
Size: 694 Bytes
Versions: 1
Compression:
Stored size: 694 Bytes
Contents
require 'curses' module Amun module UI # a line that is rendered by default at the end on the screen # takes one line height and extends to take the whole width of screen # should be linked to \*messages\* memory buffer and each time the #log # is called it will display the message next time #render is called class EchoArea def initialize @window = Curses::Window.new(1, Curses.cols, Curses.lines - 1, 0) end # display a *message* in the echo area def echo(message) @window << message end # render the echo area window def refresh @window.noutrefresh @window.clear end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amun-0.1.2 | lib/amun/ui/echo_area.rb |