home *** CD-ROM | disk | FTP | other *** search
/ Telecom / 1996-04-telecom-walnutcreek.iso / book.reviews / termcap.and.terminfo < prev    next >
Text File  |  1995-01-01  |  4KB  |  86 lines

  1.  
  2. Date: 29 Nov 93 13:06 -0600
  3. From: Rob Slade <roberts@decus.arc.ab.ca>
  4. Subject: Book Review: "Termcap and Terminfo" by Strang/Mui/O'Reilly
  5.  
  6.  
  7. BKTERMCP.RVW  931102
  8.  
  9. O'Reilly & Associates, Inc.
  10. 103 Morris Street, Suite A
  11. Sebastopol, CA   95472
  12. 800-998-9938  707-829-0515  
  13. fax: 707-829-0104
  14. info@ora.com
  15.  
  16. "Termcap and Terminfo", Strang/Mui/O'Reilly, 1991, 0-937175-22-6
  17.  
  18. I remember a certain federal government EDP office being very smug
  19. about the fact that they were able to allow us to use WordStar on a
  20. Turbo DOS system, with VT100s, as well as whatever oddball terminals
  21. they had.  Of course, we had to invoke the program with "WSVT100"
  22. since the program files were completely different, compiled with two
  23. different drivers.  (For those of you who find it difficult to install
  24. WordPerfect, you would have *hated* early MS-DOS versions of WordStar,
  25. with many settings required during the installation process harking
  26. back to the various terminal options of previous systems.)
  27.  
  28. I also recall getting the (then) brand new VT320 terminals in another
  29. VAX shop.  Well pleased with having the latest technology, I hooked it
  30. up, logged on, started All-in-1 ... and was presented with the TTY
  31. menu.  The VT320 was so new at that time that the All-in-1 driver had
  32. not yet been completed.
  33.  
  34. Such is life in the technological fast lane.  Some programs simply
  35. print line after line of information, seeing the screen as an
  36. infinitely long roll of typewriter paper.  Most of the more
  37. interesting applications, however, want more than that.  They want to
  38. be able to "paint" a screen, use areas of it for windows, change text
  39. depending upon the user's interaction, allow choices by highlighting
  40. items from a menu, and so forth.  To do this, the program needs to
  41. know the functions and commands for the terminal.  Therefore, you need
  42. a different program, or a different driver, for each terminal type to
  43. be used.
  44.  
  45. The vi editor is now considered to be difficult, awkward and
  46. unfriendly.  When Bill Joy first wrote it, though, it was a remarkable
  47. advance on what was available.  Therefore, there was a great demand to
  48. port it to different systems ... and *many* different terminals.  In
  49. true UNIX community "roll your own" fashion, Joy developed a system
  50. whereby a library of terminal capability subroutines could be linked
  51. to a database describing the commands for each terminal.  This system,
  52. because it dealt with *ter*minal *cap*abilities was referred to as
  53. termcap.  Termcap is used in BSD versions of UNIX; a slightly variant
  54. version called terminfo is used in System V.  Curses, a more modern
  55. subroutine library, can also use termcap terminal database entries.
  56.  
  57. Although intended for use by system administrators, this book is so
  58. very well designed and written that it makes termcap and terminfo
  59. accessible to reasonably computer-literate users as well.  Writing
  60. device drivers is hard, but the difficulty tends to lie in the
  61. availability of tools, and the time needed to cover all the bases.
  62. This book points to, and explains, the tools, and allows users to
  63. experiment with what is important to them on their own time.
  64.  
  65. Part one, chapters one to six, is a tutorial covering the basic
  66. concepts, syntax, environment variables and basic commands.  Part two,
  67. chapters seven to sixteen, is basically the termcap language
  68. reference.  Appendices cover vi capabilities, access from C programs,
  69. and a cross-reference.
  70.  
  71. You may be fortunate enough to have a full and debugged terminal
  72. database.  If not, and particularly if your users insist on a variety
  73. of PC terminal emulators of questionable "accuracy", then you need
  74. this book.  If nothing else, you can give it to the user who insists
  75. on "Joe's Modem Supreme Program" and tell him to figure it out for
  76. himself.
  77.  
  78. copyright Robert M. Slade, 1993   BKTERMCP.RVW  931102
  79. Permission granted to distribute with unedited copies of the TELECOM
  80. Digest and associated newsgroups/mailing lists.
  81.  
  82.  
  83. DECUS Canada Communications, Desktop, Education and Security group newsletters
  84. Editor and/or reviewer ROBERTS@decus.ca, RSlade@sfu.ca, Rob Slade at 1:153/733
  85. DECUS Symposium '94, Vancouver, BC, Mar 1-3, 1994, contact: rulag@decus.ca
  86.