2

I am learning how to use ncurses, and I have noticed that for some reason, in gnome-terminal (on arch) ncurses window borders are not being displayed properly. It seems to work fine in xterm. Gnome-Terminal Xterm

Not sure what could be causing this, and I haven't had any luck googling. Any ideas?

odin
  • 169
  • 4
  • 1
    See this same question (and my answer) at https://unix.stackexchange.com/questions/394787/linux-terminal-skipping-some-repeating-whitespace-characters/394965. – egmont Sep 28 '17 at 12:45

1 Answers1

2

Fixed it, changing $TERM to "gnome" solved the problem. See https://bbs.archlinux.org/viewtopic.php?pid=1738655#p1738655

odin
  • 169
  • 4
  • Forcing `$TERM` doesn't "fix" your problem; it shifts it one space to the right. – jasonwryan Sep 27 '17 at 20:09
  • Can you please suggest a proper solution then? – odin Sep 27 '17 at 20:26
  • Do NOT set `$TERM`. – jasonwryan Sep 27 '17 at 21:09
  • I had not set `$TERM` before when it was broken. – odin Sep 27 '17 at 21:29
  • 2
    This is actually the right answer jasonwryan. `TERM` must match the terminal. If `TERM` had the value `xterm` or `screen.xterm-256color` before, the terminfo description _did not match the actual terminal_. [`gnome` or `vte` are the proper descriptions for GNOME Terminal](http://invisible-island.net/ncurses/terminfo.ti.html#tic-vte). – JdeBP Sep 28 '17 at 06:55
  • 1
    @JdeBP Nope, `gnome-terminal` has for many years set `TERM=xterm` (and recently `xterm-256color`), and a lot of work has been done to make its emulation behavior as well as the generated escape sequences as close to xterm's as reasonable. `TERM=gnome` and `vte` have been abandoned for many years now, not tested at all by vte/gnome-terminal developers, and due to the tons of recent changes in vte's behavior I'm pretty sure that these obsolete terminal descriptor files actually cause plenty of issues. – egmont Sep 28 '17 at 12:49
  • @egmont That does seem like it is the issue. Thanks for the info. Until the problem is solved in gnome-terminal I guess I will either just use xterm or leave TERM=gnome. If you post an answer I will be happy to accept it as you answer is more informative/correct than mine. – odin Sep 29 '17 at 01:09