mirror of https://github.com/tstack/lnav.git
[build] try to fix brew build error
This commit is contained in:
parent
bea4fe5b3d
commit
679e9f0771
|
@ -1191,7 +1191,7 @@ looper()
|
|||
define_key("\033Oc", KEY_END);
|
||||
|
||||
view_colors& vc = view_colors::singleton();
|
||||
view_colors::init();
|
||||
view_colors::init(false);
|
||||
|
||||
auto ecb_guard
|
||||
= lnav_data.ld_exec_context.add_error_callback([](const auto& um) {
|
||||
|
@ -2982,7 +2982,7 @@ SELECT tbl_name FROM sqlite_master WHERE sql LIKE 'CREATE VIRTUAL TABLE%'
|
|||
textview_curses *log_tc, *text_tc, *tc;
|
||||
bool output_view = true;
|
||||
|
||||
view_colors::init();
|
||||
view_colors::init(true);
|
||||
rescan_files(true);
|
||||
if (!lnav_data.ld_active_files.fc_name_to_errors.empty()) {
|
||||
for (const auto& pair :
|
||||
|
|
|
@ -520,10 +520,10 @@ static color_listener _COLOR_LISTENER;
|
|||
term_color_palette* view_colors::vc_active_palette;
|
||||
|
||||
void
|
||||
view_colors::init()
|
||||
view_colors::init(bool headless)
|
||||
{
|
||||
vc_active_palette = ansi_colors();
|
||||
if (has_colors()) {
|
||||
if (!headless && has_colors()) {
|
||||
start_color();
|
||||
|
||||
if (lnav_config.lc_ui_default_colors) {
|
||||
|
|
|
@ -210,7 +210,7 @@ public:
|
|||
* called before this method, but the returned attributes cannot be used
|
||||
* with curses code until this method is called.
|
||||
*/
|
||||
static void init();
|
||||
static void init(bool headless);
|
||||
|
||||
void init_roles(const lnav_theme& lt,
|
||||
lnav_config_listener::error_reporter& reporter);
|
||||
|
|
|
@ -61,7 +61,7 @@ main(int argc, char* argv[])
|
|||
|
||||
curs_set(0);
|
||||
noecho();
|
||||
view_colors::singleton().init();
|
||||
view_colors::singleton().init(false);
|
||||
|
||||
al.with_string("Plain text");
|
||||
view_curses::mvwattrline(win, y++, 0, al, lr);
|
||||
|
|
|
@ -92,7 +92,7 @@ main(int argc, char* argv[])
|
|||
}
|
||||
}
|
||||
|
||||
view_colors::init();
|
||||
view_colors::init(false);
|
||||
curs_set(0);
|
||||
tc.tc_window = win;
|
||||
tc.do_update();
|
||||
|
|
Loading…
Reference in New Issue