From 757832f0f789d30abcad040216bd8a69e25842d5 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] 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(-) 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 -> -- 1.8.3.1