Skip to content

Commit 844bd31

Browse files
committed
fixes
1 parent 25feddb commit 844bd31

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ cmake-build*
5454
# cmake
5555
.cache/
5656
Makefile
57+
.build/
5758

5859
# project specific
5960
cpp-terminal/version.h

CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ if(NOT CMAKE_CXX_STANDARD)
3131
endif()
3232
set(CMAKE_CXX_STANDARD_REQUIRED TRUE CACHE STRING "C++ standard required" FORCE)
3333
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()
3540

3641
option(CPPTERMINAL_BUILD_EXAMPLES "Set to ON to build examples" ON)
3742
option(CPPTERMINAL_ENABLE_INSTALL "Set to ON to enable install" ON)

cpp-terminal/private/file.cpp

+1-1
Original file line numberDiff line numberDiff 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)

examples/signal.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
int 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
{

0 commit comments

Comments
 (0)