Method: WindowBlessing::Window::Drawing#draw_background

Defined in:
lib/window_blessing/window.rb

#draw_backgroundObject

Reset @buffer to the designated background. The default implementation resets it to the ‘ ’ character with @bg and @fg colors.

NOTE: Buffer may have a cropping area set

NOTE: Safe to override. Calling ‘super’ is optional. Should fully replace all character, foreground and background colors for @buffer’s current croparea.



237
238
239
# File 'lib/window_blessing/window.rb', line 237

def draw_background
  buffer.fill :string => ' ', :bg => bg, :fg => fg
end