From 178d2d3cd354bc93d82e5cd6269976b2077a66c3 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 29 Apr 2018 22:27:28 +1000 Subject: Rework the way UI can trigger a client quitting Add a UserInterface::is_ok method and return false on SIGHUP/stdin closing/socket dropping This should be cleaner and more robust than the previous SIGHUP handling code. Fixes #1594 --- src/user_interface.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/user_interface.hh') diff --git a/src/user_interface.hh b/src/user_interface.hh index d8139336..c3313890 100644 --- a/src/user_interface.hh +++ b/src/user_interface.hh @@ -47,6 +47,8 @@ class UserInterface public: virtual ~UserInterface() = default; + virtual bool is_ok() const = 0; + virtual void menu_show(ConstArrayView choices, DisplayCoord anchor, Face fg, Face bg, MenuStyle style) = 0; -- cgit v1.2.3