PageRenderTime 88ms CodeModel.GetById 24ms RepoModel.GetById 7ms app.codeStats 0ms

#! | 83 lines | 64 code | 19 blank | 0 comment | 0 complexity | 0be9cd1b9eb233b6d81975695c19b771 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. The files in this directory provide simple line-editing and history
  2. support for the standalone javascript engine, through the 'editline'
  3. library.
  4. editline has only been enabled for those platforms on which it is
  5. known to build; to try it on a different platform, define JS_EDITLINE
  6. before building. Line editing (and js.c) is not a supported feature
  7. of the javascript library, so your mileage my vary.
  8. The editline API is a compatible subset of the FSF readline API; if
  9. you have readline installed and would like to link to that instead,
  10. define JS_READLINE. Note that the readline library is distributed
  11. under the GPL, so any resulting binaries are not legally
  12. distributable.
  13. The editline files used here have been modified to work with the js
  14. build system and to quiet some compiler warnings, and also to remove
  15. filename-completion support.
  16. If anyone knows of a more recent version of these files, or a site on
  17. which they are being maintained, please let me know!
  18. Mike McCabe,
  19. The original README file distributed with the editline library follows.
  20. This is a line-editing library. It can be linked into almost any
  21. program to provide command-line editing and recall.
  22. It is call-compatible with the FSF readline library, but it is a
  23. fraction of the size (and offers fewer features). It does not use
  24. standard I/O. It is distributed under a "C News-like" copyright.
  25. Configuration is done in the Makefile. Type "make testit" to get
  26. a small slow shell for testing.
  27. An earlier version was distributed with Byron's rc. Principal
  28. changes over that version include:
  29. Faster.
  30. Is eight-bit clean (thanks to
  31. Written in K&R C, but ANSI compliant (gcc all warnings)
  32. Propagates EOF properly; rc trip test now passes
  33. Doesn't need or use or provide memmove.
  34. More robust
  35. Calling sequence changed to be compatible with readline.
  36. Test program, new manpage, better configuration
  37. More system-independant; includes Unix and OS-9 support.
  38. This contains some changes since the posting to comp.sources.misc:
  39. Bugfix for completion on absolute pathnames.
  40. Better handling of M-n versus showing raw 8bit chars.
  41. Better signal handling.
  42. Now supports termios/termio/sgttyb ioctl's.
  43. Add M-m command to toggle how 8bit data is displayed.
  44. There is one known bug:
  45. History-searching redraws the line wrong if the text
  46. retrieved is shorter then the prompt.
  47. Enjoy,
  48. Rich $alz
  49. <>
  50. Copyright 1992,1993 Simmule Turner and Rich Salz. All rights reserved.
  51. This software is not subject to any license of the American Telephone
  52. and Telegraph Company or of the Regents of the University of California.
  53. Permission is granted to anyone to use this software for any purpose on
  54. any computer system, and to alter it and redistribute it freely, subject
  55. to the following restrictions:
  56. 1. The authors are not responsible for the consequences of use of this
  57. software, no matter how awful, even if they arise from flaws in it.
  58. 2. The origin of this software must not be misrepresented, either by
  59. explicit claim or by omission. Since few users ever read sources,
  60. credits must appear in the documentation.
  61. 3. Altered versions must be plainly marked as such, and must not be
  62. misrepresented as being the original software. Since few users
  63. ever read sources, credits must appear in the documentation.
  64. 4. This notice may not be removed or altered.