home *** CD-ROM | disk | FTP | other *** search
-
- ; in order to replace all control characters with their
- ; equivalent ^<letter> combinations from the cursor position
- ; to the end of the current region simply summon this macro
- ;
- ; the conversion will delete all translated characters except
- ; <newline> so that the translated text remains split into the
- ; same lines as it was before.
- ;
- ; I find this useful to grab a region of text that I want to
- ; reproduce in a macro, paste it into the macro file, translate
- ; it and away I go.
- ;
- ; created by : Ken Westerback 73547, 3520
- ;
- ; ( with a little help from the Cap'n )
-
- crtascii :
- int crrchr
- markregion
- do { if (current < 32) { current -> crrchr
- if !isnl del ; keeps lines separated
- insert "^"
- crrchr+64
- insert
- }
- c ;<--- VERY important if you want to avoid being trapped here!
- } while before themark
-