home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / vmsnet / tpu / 613 < prev    next >
Encoding:
Text File  |  1993-01-28  |  3.0 KB  |  75 lines

  1. Newsgroups: vmsnet.tpu
  2. Path: sparky!uunet!ukma!bogus.sura.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!pacific.mps.ohio-state.edu!davis
  3. From: davis@pacific.mps.ohio-state.edu ("John E. Davis")
  4. Subject: Re: Anyway to have Eve act like a simple WYSIWYG editor?
  5. In-Reply-To: fairfield@slacvx.slac.stanford.edu's message of Thu, 28 Jan 1993 00:05:25 GMT
  6. Message-ID: <DAVIS.93Jan28021515@pacific.mps.ohio-state.edu>
  7. Sender: news@pacific.mps.ohio-state.edu
  8. Nntp-Posting-Host: pacific.mps.ohio-state.edu
  9. Reply-To: davis@pacific.mps.ohio-state.edu  (John E. Davis)
  10. Organization: "Dept. of Physics, The Ohio State University"
  11. References: <1993Jan27.115051.684@rivers>
  12.     <1993Jan27.160525.1@slacvx.slac.stanford.edu>
  13. Date: Thu, 28 Jan 1993 07:15:15 GMT
  14. Lines: 59
  15.  
  16. In article <1993Jan27.160525.1@slacvx.slac.stanford.edu>
  17. fairfield@slacvx.slac.stanford.edu writes: 
  18.  
  19.            I've done  it  (editing  these  things,  that  is),  but nothing
  20.        special  is  required.  Just use EVE and split the screen  into  two
  21.        windows.  Set one to  NO_TRANSLATE  and  edit  in  the  other.   The
  22.        NO_TRANSLATE  window  gives  you a "real-time" picture of your edits
  23.        while the normal, BLANK_TABS window keeps  the editing point in sync
  24.        with the cursor.
  25.  
  26.  
  27. Although I have no reason to doubt that the above is true, I find it hard to
  28. believe that it works well.  Suppose I insert an escape char into the buffer
  29. in the manner described above.  Then in the ``editing'' window, I will see a
  30. displayable representation for the character, e.g., as ^[.  Then I would
  31. suppose that the editor would move to the apporpriate row and column on the
  32. terminal where the escape is to be ``displayed'' (in the other window) and
  33. output it at that point without translation.  The the editor should move the
  34. terminal cursor back to the editing window.  So, a simple insert of an escape
  35. char in row 1 column 1 would result in the following sent to the terminal:
  36.  
  37.     ^[[1;1H  (position cursor at 1,1
  38.     ^ [      (output two char displayable sequence )
  39.     ^[13;1H  (goto row 13,1 of second window)
  40.     ^[       (literal escape character)
  41.     ^[[1;3H  (move cursor to next position and wait for more user input)
  42.  
  43. The point is, the terminal will see an escape two back to back escapes and
  44. will not know what to do with it and leave the cursor at  13,1.
  45.  
  46. Of course, I am making alot of assumptions about how I think the editor works
  47. so the above scenario may be totally wrong.
  48.  
  49. Instead, I would define strings like
  50.  
  51.    @b  bold
  52.    @r  reverse video
  53.    @n  normal video
  54.    @u  underline
  55.    @l  blink
  56.    etc...
  57.  
  58. Then my  file would look like:
  59.  
  60.    This is @bbold text@n and this is @lblinking text@n etc....
  61.  
  62. Then I would simply do a replace:  @b  --> ^[[5m, etc....
  63. Of course this still presents a problem with formatting, etc, but I at least
  64. it is more readable.
  65.  
  66.    
  67. --
  68.      _____________
  69. #___/John E. Davis\_________________________________________________________
  70. #
  71. # internet: davis@amy.tch.harvard.edu
  72. #   bitnet: davis@ohstpy
  73. #   office: 617-735-6746
  74. #
  75.