From 757832f0f789d30abcad040216bd8a69e25842d5 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 17 Oct 2007 16:48:40 +0100 Subject: Don't call curses endwin if we are in script mode. --- virt-top/virt_top_main.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'virt-top') 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 -> -- cgit