home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / applicat / 8434 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  2.6 KB

  1. Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!corton!gna!amipb.gna.org!amipb
  2. From: amipb@amipb.gna.org (Philippe Berard)
  3. Newsgroups: comp.sys.amiga.applications
  4. Subject: Re: AREXX question for CED Pro users
  5. Message-ID: <amipb.02ui@amipb.gna.org>
  6. Date: 5 Nov 92 12:36:51 GMT
  7. Organization: IWANIMA
  8. Lines: 55
  9. X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith
  10.  
  11. In article <1992Oct28.151432.22477@black.ox.ac.uk> ociszam@black.ox.ac.uk (Iftikhar Zaman) writes:
  12. > (I don't see anyone speaking about CED, which is, I think, an
  13. > excellent editor...)
  14. >
  15. > Numerous scripts which I write need at some time or another, to
  16. > know what character is under the cursor at a certain time.  Now,
  17. > on screen one can set the environment so that the ASCII value of
  18. > the character under the cursor shows up in the status line...
  19. > Unfortunately, I don't say any "status" variable which AREXX
  20. > could query to get the ASCII value of the character under the
  21. > cursor...
  22. >
  23. > Any workarounds?
  24.  
  25.     Here is a little example (quite slow though, but surely better) :
  26.     
  27. /* Display the character the cursor is currently on */
  28. options results
  29.  
  30. address 'rexx_ced'
  31.  
  32. status 55
  33. string = result              /* Get the full line at the cursor pos */
  34. status 46
  35. pos = result + 1             /* Get the cursor pos */
  36. say SUBSTR(string,result,1)  /* Show the substring */
  37.  
  38.  
  39. > Is there a better way?  Anyone know why ASDG doesn't want to
  40. > make this value (which is sitting there on the status line)
  41. > available to AREXX?
  42.  
  43.     I haven't heard about ASDG & CygnusSoft Software for a long time.
  44.     I currently have CygnusEd v2.12 and, IMO, it's better than
  45.     TurboText. I've heard about INNOVATRONICS developping a wonderful
  46.     editor, hope it'll be as good as CygnusEd without it's minor bugs.
  47.     I really need a superfast editor, not an unuseable AGA/256 col.
  48.     one.
  49.  
  50. > BTW CED Pro with AREXX is incredible for my type of work--
  51. > textbases which get moved back and forth across different
  52. > platforms etc...It's (almost) a completely programmable
  53. > text editor...
  54.  
  55.     I agree. And I laugh on the PC when I have to use Borland's Turbo-C
  56.     editor, or even better, the Q-Ed (Quick Editor).
  57.     
  58.     Sincerely,
  59.                                    -- Philippe
  60.  
  61. /------------------------------------------------------------------------------\
  62. |    Philippe Berard  (French Amiga User)       |                              |
  63. |    "They hold a cup of wisdom,                |  amipb@amipb.gna.org         |
  64. |     But there is nothing within" (Kate Bush). |                              |
  65. \------------------------------------------------------------------------------/
  66.