| File PromptRequest.cpp changed (mode: 100644) (index 3e637d7..e4e7fd5) |
| 1 |
|
// pipedial -- terminal element picker |
|
|
1 |
|
// libcursedrl -- libcursed extension for integration with readline |
| 2 |
2 |
// Copyright (C) 2019 xaizek <xaizek@posteo.net> |
// Copyright (C) 2019 xaizek <xaizek@posteo.net> |
| 3 |
3 |
// |
// |
| 4 |
4 |
// This file is part of pipedial. |
// This file is part of pipedial. |
| |
| 37 |
37 |
#include "cursed/Screen.hpp" |
#include "cursed/Screen.hpp" |
| 38 |
38 |
#include "cursed/utils.hpp" |
#include "cursed/utils.hpp" |
| 39 |
39 |
|
|
|
40 |
|
using namespace cursedrl; |
|
41 |
|
|
| 40 |
42 |
namespace { |
namespace { |
| 41 |
43 |
|
|
| 42 |
44 |
// Saves and restores signal handling information. |
// Saves and restores signal handling information. |
| File PromptRequest.hpp changed (mode: 100644) (index 51b0cca..b1a29ec) |
| 1 |
|
// pipedial -- terminal element picker |
|
|
1 |
|
// libcursedrl -- libcursed extension for integration with readline |
| 2 |
2 |
// Copyright (C) 2019 xaizek <xaizek@posteo.net> |
// Copyright (C) 2019 xaizek <xaizek@posteo.net> |
| 3 |
3 |
// |
// |
| 4 |
4 |
// This file is part of pipedial. |
// This file is part of pipedial. |
| |
| 16 |
16 |
// You should have received a copy of the GNU General Public License |
// You should have received a copy of the GNU General Public License |
| 17 |
17 |
// along with pipedial. If not, see <https://www.gnu.org/licenses/>. |
// along with pipedial. If not, see <https://www.gnu.org/licenses/>. |
| 18 |
18 |
|
|
| 19 |
|
#ifndef PIPEDIAL__PROMPTREQUEST_HPP__ |
|
| 20 |
|
#define PIPEDIAL__PROMPTREQUEST_HPP__ |
|
|
19 |
|
#ifndef LIBCURSEDRL__PROMPTREQUEST_HPP__ |
|
20 |
|
#define LIBCURSEDRL__PROMPTREQUEST_HPP__ |
| 21 |
21 |
|
|
| 22 |
22 |
#include <functional> |
#include <functional> |
| 23 |
23 |
#include <string> |
#include <string> |
| |
| ... |
... |
class Screen; |
| 33 |
33 |
|
|
| 34 |
34 |
} |
} |
| 35 |
35 |
|
|
|
36 |
|
namespace cursedrl { |
|
37 |
|
|
| 36 |
38 |
// Describes result of a prompt request. |
// Describes result of a prompt request. |
| 37 |
39 |
class PromptResult |
class PromptResult |
| 38 |
40 |
{ |
{ |
| |
| ... |
... |
private: |
| 129 |
131 |
bool cancelled; // Whether input was cancelled. |
bool cancelled; // Whether input was cancelled. |
| 130 |
132 |
}; |
}; |
| 131 |
133 |
|
|
| 132 |
|
#endif // PIPEDIAL__PROMPTREQUEST_HPP__ |
|
|
134 |
|
} |
|
135 |
|
|
|
136 |
|
#endif // LIBCURSEDRL__PROMPTREQUEST_HPP__ |