mirror of https://github.com/fairyglade/ly.git
abort when termbox fails to initialize
This commit is contained in:
parent
ad597daf84
commit
14fc64c2e0
|
|
@ -129,7 +129,11 @@ int main(int argc, char** argv)
|
||||||
load(&desktop, &login);
|
load(&desktop, &login);
|
||||||
|
|
||||||
// start termbox
|
// start termbox
|
||||||
tb_init();
|
if (tb_init() != 0)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Failed to initialize termbox.\n");
|
||||||
|
abort();
|
||||||
|
}
|
||||||
tb_select_output_mode(TB_OUTPUT_NORMAL);
|
tb_select_output_mode(TB_OUTPUT_NORMAL);
|
||||||
tb_clear();
|
tb_clear();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue