home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / doc / libncurses5 / FAQ < prev    next >
Encoding:
Text File  |  2007-03-05  |  2.3 KB  |  55 lines

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