From 7cbcac28f154e6402e2b5f4157df9926b9363ef6 Mon Sep 17 00:00:00 2001 From: elliottcable Date: Sun, 8 Mar 2009 13:41:40 -0800 Subject: [PATCH] Causing a refresh on printing to a window --- examples/multiple_windows.rb | 2 -- lib/nfoiled/window.rb | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/multiple_windows.rb b/examples/multiple_windows.rb index 569d932..5a62cac 100644 --- a/examples/multiple_windows.rb +++ b/examples/multiple_windows.rb @@ -25,8 +25,6 @@ left.print "left-brain" right.print "right-brain" # ... aaaaand update again! -left.wrapee.wnoutrefresh -right.wrapee.wnoutrefresh ::Ncurses.doupdate sleep 5 diff --git a/lib/nfoiled/window.rb b/lib/nfoiled/window.rb index baa13af..8a9914b 100644 --- a/lib/nfoiled/window.rb +++ b/lib/nfoiled/window.rb @@ -46,6 +46,7 @@ module Nfoiled # Prints a string to the window def print string @wrapee.printw string + @wrapee.wnoutrefresh end ## -- 2.11.4.GIT