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*
5454# cmake
5555.cache /
5656Makefile
57+ .build /
5758
5859# project specific
5960cpp-terminal /version.h
Original file line number Diff line number Diff line change @@ -31,7 +31,12 @@ if(NOT CMAKE_CXX_STANDARD)
3131endif ()
3232set (CMAKE_CXX_STANDARD_REQUIRED TRUE CACHE STRING "C++ standard required" FORCE)
3333set (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 ()
3540
3641option (CPPTERMINAL_BUILD_EXAMPLES "Set to ON to build examples" ON )
3742option (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
149149 }
150150 catch (const ErrnoException& exception)
151151 {
152- if (exception.code () != 25 ) throw ;
152+ if (exception.code () != 25 && exception. code () != 0 ) throw ;
153153 }
154154 std::string ret (nread, ' \0 ' );
155155 if (nread != 0 )
Original file line number Diff line number Diff line change 1818
1919int main ()
2020{
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);
2222 std::signal (SIGINT,
2323 [](int sig)
2424 {
You can’t perform that action at this time.
0 commit comments