FAQ 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. This file is a list of frequently reported problems with ncurses which are
  2. considered bugs elsewhere or configuration problems. If you're going to report a
  3. bug in ncurses, you should probably look over this list first.
  4. ********
  5. If you use escape codes to configure a terminal, ncurses applications will just
  6. overwrite your settings when they exit.
  7. The proper way to do this is to also provide a custom terminfo type which sets
  8. the terminal correctly. For instance, for controlling the cursor
  9. shape/color/etc., change the 'cnorm' capability.
  10. ********
  11. If you hit the "Print Screen" key while in a Linux console, your current
  12. application will likely dump core.
  13. The kernel maps that key to ^\, which generates a SIGQUIT by default. There's no
  14. bug here (although why that key was chosen is unclear).
  15. ********
  16. Home/End keys don't work in some non-full-screen applications.
  17. The situation with this is somewhat complicated. For a background summary, see:
  18. http://dickey.his.com/xterm/xterm.faq.html#xterm_pc_style
  19. http://dickey.his.com/xterm/xterm.faq.html#xterm_arrows
  20. Essentially, the key sequences in terminfo entries (particularly khome and kend)
  21. are for full-screen applications only. This means that they are only valid after
  22. an 'smkx' sequence, to put the terminal into application mode. If you want to
  23. use these sequences in non-application mode, you need to recognize similar
  24. sequences - the versions which start with CSI (\E [) rather than SS3 (\E O). One
  25. example of how is in /etc/zshrc in recent Debian ZSH packages.
  26. ********
  27. The Debian terminfo entry for xterm doesn't work with some other xterms
  28. There's no way to win this. For a while, Debian made its xterm default to a
  29. terminal type of 'xterm-debian', which seemed to fix the problem. In that case,
  30. however, connecting to remote non-Debian machines requires you to change your
  31. terminal type (since there will be no entry for xterm-debian there). Having
  32. changed back to a default terminal type of 'xterm', when you sit at a non-Debian
  33. system using some other version of xterm, applications on the Debian system may
  34. use features not available in your current xterm.
  35. The only workaround for this problem is to set your terminal type from xterm to
  36. one of the feature-limited versions when you log in to a Debian system remotely.
  37. "xterm-r6" and the associated terminal types are appropriate for this.