home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / cprog / cursesp.zip / README.NOW < prev    next >
Text File  |  1991-12-03  |  18KB  |  362 lines

  1.                PCCURSES v.1.4 Release Notes - 900114
  2.     ===================================================
  3.  
  4.   This is the release note for the fifth version of PCcurses, v.1.4.
  5. Below this note, the release notes for v.1.0 - v.1.3 are included. Read
  6. those first.
  7.  
  8.   In PCcurses v.1.4, both portability improvements and bugfixes have
  9. been made. The files have been changed to allow lint-free compilation
  10. with MicroSoft 'C' v.5.1, and with Turbo 'C' v.2.0. The source should
  11. still compile without problems on older compilers, although this has
  12. not been verified.
  13.  
  14.   The makefiles have been changed to suit both the public release and
  15. the author, who maintains a special kind of libraries for himself. In
  16. the case of MicroSoft 'C', changes were done in the makefile to lower
  17. the warning level to 2 (was 3). This was to avoid ANSI warnings which
  18. are abundant because PCcurses does not attempt to follow strict ANSI
  19. 'C' standard.
  20.  
  21.   BUG FIXES FROM V.1.3 TO V.1.4:
  22.  
  23.   !!!IMPORTANT CHANGE!!!
  24.  
  25.   The definitions for OK and ERR in curses.h were exchanged. This was
  26. done to be more consistent with UNIX versions. Also, it permits func-
  27. tions like newwin() and subwin() to return 0 (=NULL) when they fail
  28. due to memory shortage. This incompatibility with UNIX curses was
  29. pointed out by Fred C. Smith. If you have tested success/failure by
  30. comparisons to anything other than ERR and OK, your applications will
  31. need to be be changed on that point. Sorry... but presumably most of
  32. you used the symbolic constants?
  33.  
  34.   (END OF IMPORTANT CHANGE)
  35.  
  36.   Fred also pointed out a bug in the file update.c. The bug caused the
  37. first character printed after 'unauthorized' screen changes (like du-
  38. ring a shell escape, for example) to be placed at the wrong screen posi-
  39. tion. This happened even if the normal precautions (clear / touch / re-
  40. fresh) were taken. The problem has now been fixed.
  41.  
  42.   PCcurses is currently also being used on a 68000 system with hard-
  43. coded ESCape sequences for ANSI terminals. However, int's used by the
  44. 68000 C compiler are 32 bits. Therefore int's have been turned into
  45. short's wherever possible in the code (otherwise all window structures
  46. occupy twice as much space as required on the 68000). This does not
  47. affect PC versions since normally both int's and short's are 16 bits
  48. for PC C compilers.
  49.  
  50.   At some places in the source code there are references made to the
  51. 68000 version. There are also a makefile, a curses68.c file, and a
  52. curses68.cmd file. These are for making, low-level I/O, and linking
  53. commands when building the 68000 version. These files are probably
  54. useful to no-one but the author, since it is very specific for it's
  55. special hardware environment. Still in an effort to keep all curses-
  56. related sources in one place they are included. Note however that
  57. PCcurses will not officially support a non-PC environment.
  58.  
  59.   The file cursesio.c, which was included in the package at revision
  60. level 1.2, and which was to be an alternative to the cursesio.asm
  61. file, has been verified to behave incorrectly in the function
  62. _curseskeytst(). The problem was that the value of 'cflag' does not
  63. contain the proper data for the test that is attempted. Furthermore,
  64. neither Turbo'C' or MicroSoft'C' allows any way to return the data
  65. that is needed, and consequently you should not use cursesio.c. The
  66. best solution is to simply use the ASM version. In v.1.2 and v.1.3,
  67. the user could edit the makefile to select which version he wanted to
  68. use. The makefiles in v.1.4 have removed this possiblity forcing the
  69. use of the ASM file, and cursesio.c has been dropped from the distri-
  70. bution.
  71.  
  72.   A bug in the wgetstr() function caused PCcurses to echo characters
  73. when reading a keyboard string, even if the echo had been turned off.
  74. Thanks to Per Foreby at Lund University, Sweden, for this. Per also
  75. reported bugs concerning the handling of characters with bit 8 set.
  76. Their ASCII code were considered as lower than 32, so they were
  77. erased etc. like control characters, i.e. erasing two character posi-
  78. tions. The control character test was changed to cope with this.
  79.  
  80.   The overlay() and overwrite() functions were changed so that the
  81. overlaying window is positioned at it's 'own' coordinates inside the
  82. underlying window (it used to be at the underlying window's [0,0]
  83. position). There is some controversy about this - the documentation
  84. for different curses versions say different things. I think the
  85. choice made is the most reasonable.
  86.  
  87.   The border() and wborder() functions were changed to actually draw
  88. a border, since this seems to be the correct behaviour of these func-
  89. tions. They used to just set the border characters to be used by
  90. box(). These functions are  not present in standard BSD UNIX curses.
  91.  
  92.   The subwin() function previously did not allow the subwindow to be
  93. as big as the original window in which it was created. This has now
  94. been fixed. There was also the problem that the default size (set by
  95. specifying numlines or numcols (or both) as 0 made the resulting
  96. actual size 1 line/column too small.
  97.  
  98.   There were a few spelling errors in function names, both in the
  99. function declarations and in curses.h. This was reported by Carlos
  100. Amaral at INESC in Portugal. Thanks! There was also an unnecessary
  101. (but harmless) parameter in a function call at one place.
  102.  
  103.  
  104.  
  105.                PCCURSES v.1.3 Release Notes - 881005
  106.     ===================================================
  107.  
  108.   This is the release note for the fourth version of PCcurses, v.1.3.
  109. Below this note, the release notes for v.1.0, v.1.1 and v.1.2 are in-
  110. cluded. Read those first.
  111.  
  112.   The file 'border.c' is now included. It allows you to explicitely speci-
  113. fy what characters should be used as box borders when the box() functions
  114. are called. If the new border characters are non-0, they override the bor-
  115. der characters specified in the box() call. In my understanding, this func-
  116. tionality is required for AT&T UNIX sV.3 compatibility. Thanks for this
  117. goes to Tony L. Hansen (hansen@pegasus.UUCP) for posting an article about
  118. it on UseNet (newsgroup comp.unix.questions; his posting was not related
  119. at all to PCcurses).
  120.  
  121.   The only other difference between v.1.2 and v.1.3 is that the latter has
  122. been changed to avoid warning diagnostics if the source files are compiled
  123. with warning switches on (for MicroSoft this means '-W3', for Turbo'C' it
  124. means '-w -w-pro'). Of these, the Turbo'C' warning check is clearly to be
  125. used rather than MicroSoft, even if neither of them comes even close to a
  126. real UNIX 'lint'. Some of the warnings in fact indicated real bugs, mostly
  127. functions that did not return correct return values or types.
  128.  
  129.   The makefiles for both MSC and TRC have been modified to produce warning
  130. messages as part of normal compilation.
  131.  
  132.  
  133.  
  134.  
  135.                PCCURSES v.1.2 Release Notes - 881002
  136.     ===================================================
  137.  
  138.   This is the release note for the third version of PCcurses, v.1.2.
  139. Below this note, the release notes for v.1.0 and v.1.1 are included. Read
  140. those first.
  141.  
  142.   The changes from v.1.1 to v.1.2 are minor. The biggest change is that there
  143. was a bug related to limiting the cursor movement if the application tried to
  144. move it outside the screen (something that should not be done anyway). Such
  145. erronous application behaviour is now handled appropriately.
  146.  
  147.   All modules have been changed to have a revison string in them, which makes
  148. it easier to determine what version is linked into a program (or what library
  149. version you have).
  150.  
  151.   There is now a 'cursesio.c' file. That file does the same as 'cursesio.asm'
  152. (i.e. it provides the interface to the lower-level system I/O routines). It
  153. is written in 'C' and thus it is (possibly) more portable than the assembler
  154. version (but still not so portable since it uses 8086 INT XX calls directly).
  155. When one creates new curses libraries, one chooses whether to use the assem-
  156. bler or the 'C' version of cursesio. The choice is made by commenting out the
  157. appropriate dependencies for cursesio.obj, near the end of the makefiles.
  158.  
  159.   There is now a 'setmode.c' file. That file contains functions that save and
  160. restore terminal modes. They do it into other variables than do savetty() and
  161. resetty(), so one should probably use either savetty()/resetty() or the new
  162. functions only - and not mix the both ways unless one really knows what one
  163. does.
  164.  
  165.   Diff lists vs v.1.0 are no longer included in the distribution. The make
  166. utility still is. PCcurses v.1.2 still compiles with MicroSoft 'C' v.4.0,
  167. and with Borland Turbo 'C' v.1.0. There is as far as I know no reason to be-
  168. lieve that it does not compile under MicroSoft 'C' v.3.0 and 5.x, or Turbo-
  169. 'C' v.1.5, but this has not been tested.
  170.  
  171.   There are two makefile's included, one for MicroSoft 'C', one for Turbo-'C'.
  172. They are both copies of my personal makefile's, and as such they reflect the
  173. directory structure on my own computer. This will have to be changed before
  174. you run make. Check $(INCDIR) and $(LIBDIR) in particular, and make the choice
  175. of ASM or 'C' cursesio version as mentioned above (the distribution version
  176. uses the 'C version of cursesio).
  177.  
  178.   The manual file (curses.man) has been changed at appropriate places.
  179.  
  180.   I would like to thank the following persons for their help:
  181.  
  182.       Brandon S. Allbery (alberry@ncoast.UUCP)
  183.         for running comp.binaries.ibm.pc (at that time)
  184.         and comp.source.misc.
  185.  
  186.     Steve Balogh (Steve@cit5.cit.oz.AU)
  187.           for writing a set of manual pages and posting
  188.         them to the net.
  189.  
  190.     Torbjorn Lindh
  191.         for finding bugs and suggesting raw
  192.         character output routines.
  193.  
  194.     Nathan Glasser (nathan@eddie.mit.edu)
  195.           for finding and reporting bugs.
  196.  
  197.     Ingvar Olafsson (...enea!hafro!ingvar)
  198.           for finding and reporting bugs.
  199.  
  200.     Eric Rosco (...enea!ipmoea!ericr)
  201.           for finding and reporting bugs.
  202.  
  203.     Steve Creps (creps@silver.bacs.indiana.edu)
  204.           for doing a lot of work - among others
  205.         posting bug fixes to the net, and writing
  206.         the new cursesio.c module.
  207.  
  208.     N. Dean Pentcheff (dean@violet.berkeley.edu)
  209.           for finding bugs and rewriting cursesio.asm
  210.         for Turbo 'C' 1.5.
  211.  
  212.   Finally, Jeff Dean (parcvax,hplabs}!cdp!jeff)
  213.                (jeff@ads.arpa)
  214.     has had a shareware version of curses deliverable since
  215.     about half a year before I released PCcurses 1.0 on Use-
  216.     Net. He is very concerned about confusion between the two
  217.     packages, and therefore any references on the network
  218.     should make clear whether they reference Dean's PCcurses
  219.     or Larsson's PCcurses.
  220.  
  221.  
  222.  
  223.                PCCURSES v.1.1 Release Notes - 880306
  224.     ===================================================
  225.  
  226.   This is the release note for the second version of PCcurses, v.1.1.
  227. Below this note, the release note for v.1.0 is included. Read that first.
  228. The changes from v.1.0 to v.1.1 are minor. There are a few bug fixes, and
  229. new (non-portable) functions for verbatim IBM character font display have
  230. been added (in charadd.c and charins.c). The manual file (curses.man) has
  231. been changed at appropriate places.
  232.  
  233.   In the file v10tov11.dif there are listings of the differencies between
  234. version 1.0 and 1.1. The diff listings are in UNIX diff(1) format.
  235.  
  236.   Version 1.1 compiles with Turbo 'C' v.1.0, as well as MicroSoft 'C' v.3.0
  237. and v.4.0. On the release disk there is a make.exe utility which is very simi-
  238. lar to UNIX make (If the package was mailed to you, the make utility will be
  239. in uuencoded format - in make.uu - and must be uudecoded first). It is much
  240. more powerful than MicroSoft's different MAKE'S; the latter ones will NOT ge-
  241. nerate libraries properly if used with the PCcurses makefiles.
  242.  
  243.   There are three makefiles:
  244.  
  245.     makefile        generic MSC 3.0 makefile
  246.     makefile.ms        MSC 4.0 makefile
  247.     makefile.tc        Turbo 'C' 1.0 makefile
  248.  
  249.   To make a library with for example Turbo 'C', make directories to hold .H
  250. and .LIB files (these directories are the 'standard places'), edit makefile.tc
  251. for this, and type
  252.  
  253.     make -f makefile.tc all
  254.  
  255. and libraries for all memory models will be created in the .LIB directory,
  256. while the include files will end up in the .H directory. Also read what is
  257. said about installation below!
  258.  
  259.  
  260.  
  261.  
  262.                PCCURSES v.1.0 Release Notes - 870824
  263.     ===================================================
  264.  
  265.  
  266.  
  267.   This is the release notes for the PCcurses v.1.0 cursor/window control
  268. package. PCcurses offers the functionality of UNIX curses, plus some
  269. extras. Normally it should be possible to port curses-based programs from
  270. UNIX curses to PCcurses on the IBM PC without changes. PCcurses is a port/
  271. rewrite of Pavel Curtis' public domain 'ncurses' package. All the code has
  272. been re-written - it is not just an edit of ncurses (or UNIX curses). I
  273. mention this to clarify any copyright violation claims. The data struc-
  274. tures and ideas are very similar to ncurses. As for UNIX curses, I have
  275. not even seen any sources for it.
  276.  
  277.  For an introduction to the use of 'curses' and it's derivatives, you
  278. should read 'Screen Updating and Cursor Movement Optimization: A Library
  279. Package' by Kenneth C. R. C. Arnold, which describes the original Berkely
  280. UNIX version of curses. It is available as part of the UNIX manuals. The
  281. other source of information is 'The Ncurses Reference Manual' by Pavel
  282. Curtis. The latter is part of Curtis' ncurses package.
  283.  
  284.   The only other documentation provided is a 'man' page which describes
  285. all the included functions in a very terse way. In the sources, each
  286. function is preceded by a rather thourough description of what the
  287. function does. I didn't have time to write a nice manual/tutorial - sorry.
  288.  
  289.   PCcurses is released as a number of source files, a man page, and a make
  290. file. A uuencoded copy of a 'make' utility, and a manpage for the 'make' is
  291. also provided to make it easier to put together PCcurses libraries. Even if
  292. you are not interested in PCcurses, it may be worthwhile to grab the make.
  293.  
  294.   The makefile assumes the presence of the MicroSoft 'C' compiler (3.0 or
  295. 4.0), MicroSoft MASM and LIB, plus some MS-DOS utilities. The reason for
  296. supplying MAKE.EXE is that the MicroSoft 'MAKE:s' are much inferior to a
  297. real UNIX make. The supplied make is a port of a public domain make, pub-
  298. lished on UseNet. It is almost completely compatible with UNIX make. When
  299. generating the curses libraries, the makefile will direct make to do some
  300. directory creating and file copying, and then re-invoke itself with new
  301. targets. The workings of the makefile are not absolutely crystal clear at
  302. first sight... just start it and see what it does.
  303.  
  304.   For portability, the curses libraries depend on one assembler file for
  305. access to the BIOS routines. There is no support for the EGA, but both
  306. CGA, MGA, and the HGA can be used. The libraries are originally for Micro-
  307. Soft 'C', but all C modules should be portable right away. In the assembler
  308. file, segment names probably need to be changed, and possibly the parameter
  309. passing scheme. I think Turbo C will work right away - as far as I under-
  310. stand, all it's conventions are compatible with MicroSoft C.
  311.  
  312.   There are some parts left out between ncurses and PCcurses. One is the
  313. support for multiple terminals - not very interesting on a PC anyway. Be-
  314. cause we KNOW what terminal we have, there is no need for a termcap or
  315. termio library. PCcurses also has some things that neither curses nor
  316. ncurses have. Compared to the original UNIX curses, PCcurses has lots
  317. of extras.
  318.  
  319.   The BIOS routines are used directly, which gives fast screen updates.
  320. PCcurses does not do direct writes to screen RAM - in my opinion it is
  321. a bit ugly to rely that much on hardware compatibility. Anyone could fix
  322. that, of course...
  323.  
  324.   One of the more serious problems with PCcurses is the way in which nor-
  325. mal, cbreak, and raw input modes are done. All those details are in the
  326. 'charget' module - I do raw I/O via the BIOS, and perform any buffering
  327. myself. If an application program uses PCcurses, it should do ALL it's
  328. I/O via PCcurses calls, otherwise the mix of normal and PCcurses I/O may
  329. mess up the display. I think my code is reasonable... comments are welcome,
  330. provided you express them nicely...
  331.  
  332.   To install, copy all files to a work directory, edit 'makefile' to define
  333. the standard include and library file directory names of your choice (these
  334. directories must exist already, and their path names must be relative to the
  335. root directory, not to the current one). You must also run uudecode on
  336. make.uu, to generate MAKE.EXE. You can do that on your PC, if you have
  337. uudecode there, otherwise you can do it under UNIX and do a binary transfer
  338. to the PC. When you have MAKE.EXE in your work directory (or in your /bin
  339. directory), type make.
  340.  
  341.   Make will now create 4 sub-directories (one for each memory model), copy
  342. some assembler include files into them, copy two include files to your
  343. include directory, CHDIR to each sub-directory and re-invoke itself with
  344. other make targets to compile and assemble all the source files into the
  345. appropriate directories. Then the library manager is run to create the
  346. library files in your desired library directory. Presto!
  347.  
  348.   If you only want to generate a library for one memory model, type 'make
  349. small', 'make large', etc. The name of the memory model must be in lower
  350. case, like in the makefile.
  351.  
  352.   I think the package is fairly well debugged - but then again, that's
  353. what I always think. It was completed in May-87, and no problems found
  354. yet. Now it's your turn... Comments, suggestions and bug reports and
  355. fixes (no flames please) to
  356.  
  357. Bjorn Larsson
  358. INFOVOX AB
  359. Box 2503                    (bl@infovox.se)
  360. S-171 02 Solna
  361. SWEDEN
  362.