Fix compilation issue on macOS(CLang compiler) where stdlib doesn't define quick_exit()

This commit is contained in:
Ilia Sharin 2020-02-02 15:27:46 -05:00
parent 283f0fed08
commit 469d2cd736

View File

@ -11,6 +11,11 @@
#include "ftxui/screen/string.hpp"
#include "ftxui/screen/terminal.hpp"
#if defined(__clang__) && defined (__APPLE__)
// Quick exit is missing in standard CLang headers
#define quick_exit(a) exit(a)
#endif
namespace ftxui {
static const char* HIDE_CURSOR = "\e[?25l";