TO-DO 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. -------------------------------------------------------------------------------
  2. -- Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. --
  3. -- --
  4. -- Permission is hereby granted, free of charge, to any person obtaining a --
  5. -- copy of this software and associated documentation files (the --
  6. -- "Software"), to deal in the Software without restriction, including --
  7. -- without limitation the rights to use, copy, modify, merge, publish, --
  8. -- distribute, distribute with modifications, sublicense, and/or sell copies --
  9. -- of the Software, and to permit persons to whom the Software is furnished --
  10. -- to do so, subject to the following conditions: --
  11. -- --
  12. -- The above copyright notice and this permission notice shall be included --
  13. -- in all copies or substantial portions of the Software. --
  14. -- --
  15. -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
  16. -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
  17. -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN --
  18. -- NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
  19. -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
  20. -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE --
  21. -- USE OR OTHER DEALINGS IN THE SOFTWARE. --
  22. -- --
  23. -- Except as contained in this notice, the name(s) of the above copyright --
  24. -- holders shall not be used in advertising or otherwise to promote the --
  25. -- sale, use or other dealings in this Software without prior written --
  26. -- authorization. --
  27. -------------------------------------------------------------------------------
  28. -- $Id: TO-DO,v 1.53 2008/11/28 16:39:12 tom Exp $
  29. -------------------------------------------------------------------------------
  30. SHORT-TERM TO-DO ITEMS:
  31. Known Problems:
  32. + libtool does not work with GNAT.
  33. + The screen optimization has been tested only in an ad hoc manner. We should
  34. develop a good set of regression tests to cover lib_doupdate.c and
  35. lib_mvcur.c.
  36. + Magic cookie support (for nonzero xmc values) does not work, since the logic
  37. does not take into account refresh. Also, the initial optimize does not
  38. adjust the current location when a cookie is emitted.
  39. + Scrolling optimization has holes: for example, it forces repaints of the
  40. screen between calls to refresh().
  41. + SVr4 uses slightly different rules for determining when softkeys are shown.
  42. For example, they are initially displayed (before the ncurses 'e' test
  43. activates them), and a touchwin can apparently also force them to be
  44. displayed.
  45. + The code departs from perfect 8-bit cleanness in one respect; you cannot
  46. specify a character \200 as part of a capability string, because the
  47. terminfo library interprets \200 as a request to embed NUL (\000) at that
  48. point. This is a legacy terminfo property we can't mess with.
  49. + The window classes defined in the c++ subdirectory need documentation. Some
  50. C++ programmer could earn a lot of good karma by doing this...
  51. + vid_attr() should support the set_a_attributes (sgr1) string, but does not.
  52. There appear to be no terminals that require that functionality.
  53. + the configure --disable-ext-funcs option does not work for Ada95 tree.
  54. + the --with-pthread configuration builds for Cygwin, but does not work
  55. properly (test/worm.c shows all of the worms in the same location).
  56. + the Ada95 tree requires a small fix to build on Cygwin, since the GNAT port
  57. to that platform provides an incomplete Interrupts.Names package. For
  58. instance (your gcc version may be different):
  59. /usr/lib/gcc/i686-pc-cygwin/3.4.4/adainclude/a-intnam.ads
  60. cut here...
  61. -------------------------------------------------------------------------------
  62. --- a-intnam.ads.orig 2003-10-21 13:41:51.000000000 +0000
  63. +++ a-intnam.ads 2007-05-05 22:40:02.609375000 +0000
  64. @@ -44,5 +44,6 @@
  65. DUMMY_INTERRUPT_1 : constant Interrupt_ID := 1;
  66. DUMMY_INTERRUPT_2 : constant Interrupt_ID := 2;
  67. + SIGINT : constant Interrupt_ID := 2;
  68. end Ada.Interrupts.Names;
  69. -------------------------------------------------------------------------------
  70. + the --enable-rpath configure option builds for the corresponding platforms;
  71. however combining it with --with-ticlib and --with-termlib does not always
  72. produce libraries that can be run without setting environment variables.
  73. Building those with libtool does not work either. (This is a problem with
  74. the BSD platforms).
  75. Portability (or lack thereof):
  76. + Users of older System V UNIXes (but not Solaris, and probably not SVr4) may
  77. trip over a known problem with the signal-handling code which causes abrupt
  78. termination of ncurses applications following resume from a ^Z suspend (this
  79. problem was first seen running lynx). You will not see this problem if you
  80. are running Linux or one of the 4.4BSD derivatives like FreeBSD, NetBSD, or
  81. BSDI. For details, see the analysis in the header comment of
  82. ncurses/tty/lib_tstp.c .
  83. + In theory, vwprintw and vwscanf are supposed to use the older varargs.h
  84. interface for handling variadic argument lists (and are deprecated by X/Open
  85. for that reason). Linux doesn't have varargs.h, it has the newer
  86. X/Open-standard stdargs.h equivalent. So these functions use stdargs
  87. instead. This is unlikely to be a problem unless you're building ncurses on
  88. a System V old enough to only have varargs.h. (Solaris 2.5.1 used the
  89. stdarg.h binding as well).
  90. + If you're using a BSD earlier than 4.4BSD, or a Linux old enough not to have
  91. a native vsscanf(3) in its library, vwscanw() will not work. You lose. (It
  92. should work on any System V, however). If you want to fix this, add an
  93. implementation to ncurses/vsscanf.c.
  94. + The C++ binding fails to build with a few C++ compilers.
  95. + terminfo.5 does not format with the SunOS (and most other platform's) tbl
  96. utility because it relies on a diversion for each table entry. Get the
  97. groff package.
  98. Untested features:
  99. + The code for the HP color model using set_color_pair is untested.
  100. + The code for handling soft labels on a terminal type with built-in support
  101. for them (num_labels > 0, label_height, label_width, label_format, label_off,
  102. label_on, plab_norm, lab_f*) has not been tested. The label_format and
  103. lab_f* capabilities aren't presently used.
  104. LONGER-TERM TO-DO ITEMS:
  105. 1. Extended COSE conformance
  106. There is an XPG4 standard released in 1996 which describes a superset
  107. of the SVr4 API. The library is BASE conformant with this standard.
  108. We would like to make ncurses fully conformant at the EXTENDED level
  109. supporting internationalization.
  110. 2. DOS port
  111. Only a few of the files in the library depend on the terminfo format.
  112. It should be possible to further kernelize the package, then rewrite
  113. a small number of core files to produce a functionally-compatible
  114. port that would do updates to a memory-mapped screen area. The first
  115. result of this would be a DOS port.
  116. 3. X port
  117. It would be nice if ncurses could recognize when it was running under X and
  118. maintain its own window. With this feature, all ncurses programs would
  119. automatically become X programs. The challenge is to handle resize events
  120. properly.
  121. 4. Unused capabilities
  122. The currently unused capabilities fall naturally into several groups:
  123. A. Status-line capabilities:
  124. Booleans: has_status_line, status_line_esc_ok.
  125. Numerics: width_status_line.
  126. Strings: dis_status_line, from_status_line, to_status_line.
  127. System V Release 1 curses made no use of these at all. SVr4's use, if
  128. any, is unknown. From the AT&T termcap file it looks like curses, in general,
  129. shouldn't use them; terminal variants with status lines have their line count
  130. decremented by 1, suggesting that curses is supposed to leave the status line
  131. alone.
  132. B. Printer capabilities:
  133. Boolean: col_addr_glitch, cr_cancels_micro_mode, has_print_wheel,
  134. row_addr_glitch, semi_auto_right_margin, cpi_changes_res,
  135. lpi_changes_res.
  136. Numeric: buffer_capacity, dot_horz_spacing, dot_vert_spacing,
  137. max_micro_address, max_micro_jump, micro_col_size,
  138. micro_line_size, number_of_pins, output_res_char,
  139. output_res_line, output_res_horz_inch, print_rate,
  140. wide_char_size, bit_image_entwining, bit_image_type.
  141. String: down_half_line, form_feed, up_half_line, set_left_margin,
  142. set_right_margin, clear_margins, change_char_pitch
  143. ... set_page_length (all the SVr4 printer caps),
  144. Curses doesn't use these.
  145. C. Printer-control capabilities:
  146. Boolean: prtr_silent.
  147. Strings: print_screen, prtr_on, prtr_off, prtr_non.
  148. Curses doesn't use these.
  149. D. Dialer strings:
  150. Strings: hangup, dial_phone, quick_dial, tone, pulse, flash_hook,
  151. fixed_pause, wait_tone.
  152. Curses doesn't use these.
  153. E. Window and virtual-terminal capabilities:
  154. Numerics: maximum_windows, virtual_terminal.
  155. Strings: req_for_input, create_window, goto_window, set_window.
  156. These seem to be fossils from some AT&T experiments on character-based
  157. window systems that never escaped the lab. The virtual_terminal cap had
  158. something to do with building terminal emulations into tty line disciplines.
  159. F. Unused VDT capabilities:
  160. Booleans: erase_overstrike, has_meta_key, insert_null_glitch,
  161. move_insert, dest_tabs_magic_smso, transparent_underline,
  162. needs_xon_xoff, hard_cursor.
  163. Numerics: lines_of_memory, buttons.
  164. Strings: pkey_key, pkey_local, pkey_xmit, underline_char,
  165. enter_xon_mode, exit_xon_mode, xon_character, xoff_character,
  166. display_clock, remove_clock, user[0-5], display_pc_char,
  167. enter_scancode_mode, exit_scancode_mode, pc_term_options,
  168. scancode_escape, alt_scancode_esc.
  169. These are the potentially important ones for ncurses. Notes:
  170. i) ncurses doesn't need move_insert; it never uses cup/hpa/vpa while
  171. insert_mode is on.
  172. ii) We probably don't care about dest_tabs_magic_smso; only
  173. Telerays used it and they're all long obsolete.
  174. -- vile:txtmode