lib/reterm/init.rb
# This method resyncs the visible terminal with the internal
# RETerm environment. It should be called any time the user
# needs to update the UI after making changes.
#
# @example
#   init_reterm {
#     win = Window.new
#     win.border! # draw window border
#     update_rti  # resync terminal ouput
#     win.getch   # wait for input
#   }
#
This method resyncs the visible terminal with the internal
RETerm environment. It should be called any time the user
needs to update the UI after making changes.
This method resyncs the visible terminal with the internal RETerm environment . It should be called any time the user needs to update the UI after making changes .
def update_reterm(force_refresh=false)
    if force_refresh
      Window.top.each { |w|
        w.erase
        w.draw!
      }
    else
      Window.top.each { |w| w.noutrefresh }
    end
    Ncurses.doupdate
  end
def update_reterm ( force_refresh = false ) if force_refresh Window . top . each { | w | w . erase w . draw! } else Window . top . each { | w | w . noutrefresh } end Ncurses . doupdate end
This method resyncs the visible terminal with the internal
RETerm environment.
This method resyncs the visible terminal with the internal RETerm environment .
#Ncurses::Panel.update_panels
force_refresh
<not_specific>
example
init_reterm { win = Window.new win.border. # draw window border update_rti # resync terminal ouput win.getch # wait for input }
init_reterm { win = Window . new win . border . # draw window border update_rti # resync terminal ouput win . getch # wait for input }