Don't call curses endwin if we are in script mode.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 17 Oct 2007 15:48:40 +0000 (16:48 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 17 Oct 2007 15:48:40 +0000 (16:48 +0100)
virt-top/virt_top_main.ml

index edf87de..cb3486e 100644 (file)
@@ -34,7 +34,7 @@ let error =
 
   try
     main_loop setup;
-    endwin ();
+    if !script_mode then endwin ();
     false
   with
   | Libvirt.Virterror err ->