
Printing Escape Chars in RW
I've been trying to print out an escape sequence from Report Writer.
It indicated that it is possible (look at Q0 on page 4-54). But, it
did not say how. I've tried it with the following test:
$ REPORT CUTLER -ISYS$INPUT: -FTEST.OUT
.NAME TEST
.FORMFEEDS /* init report */
.PAGELENGTH 37
.PAGEWIDTH 132
.LM 45
.RM 132
.DECLARE string = c255 /* declare variables */
.DECLARE initstr = c10
.LET initstr = '?&16D?&l1O' /* printer init string */
/* The ? in above initstr is actually an embedded escape, ascii value 27 */
/* It's been changed so not to mess up someone's news reader. :-) */
/* I would also like to know how I can do something cleaner like:
.LET esc = CHR(27)
.LET initstr = esc + '&16D' + esc + '&l1O'
*/
.DATA TEST
.HEADER report
.PRINTLN $initstr (q0)
.DETAIL
.PRINTLN test
$!
First line of output is:
<FF> &16D &l1O
The <FF> is form feed, modified here to make displayable. Notice that it
prints spaces rather than the actual escape characters in the above line.
I know that spaces are not escape characters (I can tell with my special
editor, it shows <ESC> whenever there's one.) Anyone know a fix for it?
VAX/VMS 5.5-1, INGRES VAX Version 6.4/03 (vax.vms/00)
Regards,
John E. Babbitt, Jr. {UUCP: ...access1!cutler!john}
Cutler & Company, Inc. {Phone: 503/770-9000 (voice) 503/770-9014 (tt)}
Medford, Oregon 97504 {Disclaimer: What I say is my personal opinion}