Printing Escape Chars in RW 
Author Message
 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}



Mon, 26 Feb 1996 01:00:32 GMT
 Printing Escape Chars in RW

I haven't seen a response, so I thought I would post again:

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}



Sat, 02 Mar 1996 05:20:54 GMT
 Printing Escape Chars in RW
I had success in the past sending escape sequences to an LN03 for bolding      
by just embedding the escape character in a .PRINT string with DEC's EDT        
editor:                                                                        

.PRINT "<ESC>[1mBold Header<ESC>[m"                                            

In EDT the escape character is created with <GOLD>27<GOLD>3                    

The 27 is typed on the typewriter keys and the 3 is on the keypad.              

Good Luck!                                                                      



Fri, 08 Mar 1996 22:22:16 GMT
 Printing Escape Chars in RW

Quote:

> I had success in the past sending escape sequences to an LN03 for bolding
> by just embedding the escape character in a .PRINT string with DEC's EDT
> editor:

> .PRINT "<ESC>[1mBold Header<ESC>[m"

Golly, you're right.  Looks like I can't store escape sequences in strings
and expect Ingres to print them.  Any idea why?  A bug?  Feature? :-)

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}



Sat, 09 Mar 1996 15:08:01 GMT
 
 [ 4 post ] 

 Relevant Pages 

1. How do I preserve trailing spaces with .PRINT in RW

2. RW Help! Can not print a tab

3. How to print a variable which is of 700 chars using print statement

4. escape char

5. How to escape bad chars in xml files

6. PL/SQL function to decode URL using %xx escaped chars

7. Problem w/ sql update, escape char?

8. DB2 tab and newline escape Char

9. Escape Char in ASP, ADO and SQLServer

10. ?Extremely Simple Question: Escape char for '

11. how do i escape chars?


 
Powered by phpBB® Forum Software