From: Richard W.M. Jones <"Richard W.M. Jones "> Date: Wed, 17 Oct 2007 15:48:40 +0000 (+0100) Subject: Don't call curses endwin if we are in script mode. X-Git-Tag: 1.0.4~116 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=757832f0f789d30abcad040216bd8a69e25842d5;p=virt-top.git Don't call curses endwin if we are in script mode. --- diff --git a/virt-top/virt_top_main.ml b/virt-top/virt_top_main.ml index edf87de..cb3486e 100644 --- a/virt-top/virt_top_main.ml +++ b/virt-top/virt_top_main.ml @@ -34,7 +34,7 @@ let error = try main_loop setup; - endwin (); + if !script_mode then endwin (); false with | Libvirt.Virterror err ->