• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
16 class IOHandlerCursesGUI : public IOHandler {
17 public:
18   IOHandlerCursesGUI(Debugger &debugger);
19 
20   ~IOHandlerCursesGUI() override;
21 
22   void Run() override;
23 
24   void Cancel() override;
25 
26   bool Interrupt() override;
27 
28   void GotEOF() override;
29 
30   void Activate() override;
31 
32   void Deactivate() override;
33 
34   void TerminalSizeChanged() override;
35 
36 protected:
37   curses::ApplicationAP m_app_ap;
38 };
39 
40 } // namespace lldb_private
41 
42 #endif // LLDB_CORE_IOHANDLERCURSESGUI_H
43