home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / applicat / 9829 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.7 KB

  1. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!wupost!waikato.ac.nz!canterbury.ac.nz!otago.ac.nz!jomar
  2. Newsgroups: comp.sys.amiga.applications
  3. Subject: Re: CygnusEd and control character
  4. Message-ID: <1993Jan7.161849.481@otago.ac.nz>
  5. From: jomar@otago.ac.nz
  6. Date: 7 Jan 93 16:18:48 +1300
  7. Followup-To: comp.sys.amiga.applications
  8. References: <bmaple.0gvh@burner.com>
  9. Organization: University of Otago, Dunedin, New Zealand
  10. Lines: 26
  11.  
  12. In article <bmaple.0gvh@burner.com>, bmaple@burner.com (Bob Maple) writes:
  13. > Has anyone any idea why in CygnusEd when you try to enter a control code,
  14. > it does the control code, immediately followed by a linefeed?
  15.  
  16. That ain't no bug, it's a feature.  (Have you heard that before? :-))
  17.  
  18. Remember that CEd is just as happy with binary (eg, executable) files as
  19. text files.  However, I have had problems with text files containing
  20. extremely long lines (~2000 chars).  Herein lies the bug/feature: CEd
  21. handles large files, but not large (long) lines.  Now, where do you break
  22. a line in a binary file?  There's no guarantee of a linefeed char in the
  23. file, let alone anytime soon.  CEd's solution is to break lines frequently
  24. in a binary file, in fact every few characters.  In effect, _almost_
  25. _all_control_codes_act_as_line_feeds_as_well. (Almost because tab and
  26. linefeed are handled specially (ie, aren't displayed).)
  27.  
  28. Thus, when you try to enter a control code, what really happens is that the
  29. (single) control code is entered, and the code's representation (inverse A,
  30. etc) and a line break are displayed.
  31.  
  32. If you're a shell user, try saving a short file containing control chars and
  33. typing at the shell
  34.   TYPE file HEX
  35.  
  36. Hope this helps,
  37. John Marshall.  (jomar@otago.ac.nz)
  38.