xref: /freebsd/contrib/llvm-project/lldb/include/lldb/Core/IOHandlerCursesGUI.h (revision 700637cbb5e582861067a11aaca4d053546871d2)
1 //===-- IOHandlerCursesGUI.h ------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_CORE_IOHANDLERCURSESGUI_H
10 #define LLDB_CORE_IOHANDLERCURSESGUI_H
11 
12 #include "lldb/Core/IOHandler.h"
13 
14 namespace lldb_private {
15 namespace curses {
16 class Application;
17 } // namespace curses
18 
19 class IOHandlerCursesGUI : public IOHandler {
20 public:
21   IOHandlerCursesGUI(Debugger &debugger);
22 
23   ~IOHandlerCursesGUI() override;
24 
25   void Run() override;
26 
27   void Cancel() override;
28 
29   bool Interrupt() override;
30 
31   void GotEOF() override;
32 
33   void Activate() override;
34 
35   void Deactivate() override;
36 
37   void TerminalSizeChanged() override;
38 
39 protected:
40   std::unique_ptr<curses::Application> m_app_up;
41 };
42 
43 } // namespace lldb_private
44 
45 #endif // LLDB_CORE_IOHANDLERCURSESGUI_H
46