xaizek / libcursedrl (License: GPLv3+) (since 2019-03-24)
libcursed extension for integration with readline.
Commit bcf9ad20b6ea9e285c0fdbe386a1cbf97c923ee5

Extract as a library
Author: xaizek
Author date (UTC): 2019-03-24 18:45
Committer name: xaizek
Committer date (UTC): 2019-03-24 18:45
Parent(s): f2c39c1ed8a29642b08b20753b1365ee3c81ba03
Signing key: 99DC5E4DB05F6BE2
Tree: 3e9fa6882c43e16889428cff1ff0676a63b83f50
File Lines added Lines deleted
PromptRequest.cpp 3 1
PromptRequest.hpp 8 4
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__
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/libcursedrl

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/libcursedrl

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master