rpl.rb/lib/rpl/words/display.rb
Gwenhael Le Moine edd0884f9d
s/display/frame_buffer/g
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2022-08-30 13:37:34 +02:00

27 lines
773 B
Ruby

# frozen_string_literal: true
module RplLang
module Words
module Display
include Types
def populate_dictionary
super
@dictionary.add_word( ['erase'],
'Display',
'( -- ) erase display',
proc do
initialize_frame_buffer
end )
@dictionary.add_word( ['display→', 'display->'],
'Display',
'( -- pict ) put current display state on stack',
proc do
@stack << @frame_buffer # FIXME: RplPict type
end )
end
end
end
end