Different nCurses behaviours with different terminals

后端 未结 1 717
时光取名叫无心
时光取名叫无心 2021-01-23 06:33

I obtain two different behaviours using different terminals, this is my code:

(use ncurses)

(initscr)
(curs_set 0)
(noecho)
(start_color)

(define win (newwin 2         


        
相关标签:
1条回答
  • 2021-01-23 07:20

    That sounds as if your TERM variable is set to xterm, which occasionally produces problems for the VTE-based terminals (gnome-terminal, etc). It's an FAQ (Why not just use TERM set to "xterm"?).

    It's not a bug (in ncurses, at any rate).

    Setting it to vte will work if you have a complete terminal database...

    0 讨论(0)
提交回复
热议问题