浏览代码

* Don't unblock signals in init of SLang

tags/v0.99.beta17
Jean-Yves Lamoureux jylam 15 年前
父节点
当前提交
895d027a76
共有 1 个文件被更改,包括 4 次插入6 次删除
  1. +4
    -6
      caca/driver/slang.c

+ 4
- 6
caca/driver/slang.c 查看文件

@@ -140,6 +140,9 @@ static int slang_init_graphics(caca_display_t *dp)

/* Initialise slang library */
SLsig_block_signals();
/* Disable SLang's own SIGINT on ctrl-c */
SLang_set_abort_signal(default_sigint);
SLtt_get_terminfo();

if(SLkp_init() == -1)
@@ -156,17 +159,11 @@ static int slang_init_graphics(caca_display_t *dp)
return -1;
}

SLsig_unblock_signals();

SLsmg_cls();
SLtt_set_cursor_visibility(0);
SLkp_define_keysym("\e[M", 1001);
SLtt_set_mouse_mode(1, 0);
SLsmg_refresh();

/* Disable SLang's own SIGINT on ctrl-c */
SLang_set_abort_signal (default_sigint);
/* Disable scrolling so that hashmap scrolling optimization code
* does not cause ugly refreshes due to slow terminals */
@@ -200,6 +197,7 @@ static int slang_end_graphics(caca_display_t *dp)
SLtt_set_cursor_visibility(1);
SLang_reset_tty();
SLsmg_reset_smg();
SLsig_unblock_signals();

#if defined HAVE_GETENV && defined HAVE_PUTENV
slang_uninstall_terminal(dp);


正在加载...
取消
保存