File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ cmake-build*
54
54
# cmake
55
55
.cache /
56
56
Makefile
57
+ .build /
57
58
58
59
# project specific
59
60
cpp-terminal /version.h
Original file line number Diff line number Diff line change @@ -31,7 +31,12 @@ if(NOT CMAKE_CXX_STANDARD)
31
31
endif ()
32
32
set (CMAKE_CXX_STANDARD_REQUIRED TRUE CACHE STRING "C++ standard required" FORCE )
33
33
set (CMAKE_CXX_EXTENSIONS FALSE CACHE STRING "C++ extensions" FORCE )
34
- option (BUILD_SHARED_LIBS "Build using shared libraries" ON )
34
+
35
+ if (WIN32 ) ##FIXME
36
+ option (BUILD_SHARED_LIBS "Build using shared libraries" OFF )
37
+ else ()
38
+ option (BUILD_SHARED_LIBS "Build using shared libraries" ON )
39
+ endif ()
35
40
36
41
option (CPPTERMINAL_BUILD_EXAMPLES "Set to ON to build examples" ON )
37
42
option (CPPTERMINAL_ENABLE_INSTALL "Set to ON to enable install" ON )
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ std::string Term::Private::InputFileHandler::read() const
149
149
}
150
150
catch (const ErrnoException& exception)
151
151
{
152
- if (exception.code () != 25 ) throw ;
152
+ if (exception.code () != 25 && exception. code () != 0 ) throw ;
153
153
}
154
154
std::string ret (nread, ' \0 ' );
155
155
if (nread != 0 )
Original file line number Diff line number Diff line change 18
18
19
19
int main ()
20
20
{
21
- Term::terminal.setOptions (Term::Option::Raw, Term::Option::NoSignalKeys , Term::Option::ClearScreen);
21
+ Term::terminal.setOptions (Term::Option::Raw, Term::Option::SignalKeys , Term::Option::ClearScreen);
22
22
std::signal (SIGINT,
23
23
[](int sig)
24
24
{
You can’t perform that action at this time.
0 commit comments