• How to #OUTPUT the & character

    From Keith@21:1/5 to All on Thu Nov 16 18:33:57 2023
    I want to print the & character from #OUTPUT. Tried setting #OUTFORMAT and #INFORMAT but it doesn't seem to work. TACL keeps thinking it is a continuation char.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Randall@21:1/5 to Keith on Fri Nov 17 11:41:30 2023
    On Thursday, November 16, 2023 at 9:33:59 p.m. UTC-5, Keith wrote:
    I want to print the & character from #OUTPUT. Tried setting #OUTFORMAT and #INFORMAT but it doesn't seem to work. TACL keeps thinking it is a continuation char.

    Does this work?

    #SET #OUTFORMAT PRETTY
    #OUTPUT Hello ~&

    You can also try
    #OUTPUT Hello ~&~_

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From j-marcus@pacbell.net@21:1/5 to All on Fri Nov 17 12:41:31 2023
    This is probably overkill, but it's what I do when I need to output control characters:

    [#DEF DELTA^CMD DELTA |BODY|J38I]
    [#DEF AMPERSAND TEXT |BODY|[#DELTA /COMMANDS DELTA^CMD/]]
    #output Here is an Ampersand: [AMPERSAND]

    Jon Marcus

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Randall@21:1/5 to j-ma...@pacbell.net on Sat Nov 18 10:53:08 2023
    On Friday, November 17, 2023 at 3:41:33 p.m. UTC-5, j-ma...@pacbell.net wrote:
    This is probably overkill, but it's what I do when I need to output control characters:

    [#DEF DELTA^CMD DELTA |BODY|J38I]
    [#DEF AMPERSAND TEXT |BODY|[#DELTA /COMMANDS DELTA^CMD/]]
    #output Here is an Ampersand: [AMPERSAND]

    Jon Marcus

    Well, if you're going to use DELTA... (good show)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JShepherd@21:1/5 to All on Mon Nov 20 15:31:21 2023
    In article <71f38adc-536e-4757-95e7-cd014fc7aa05n@googlegroups.com>, kgan238@gmail.com says...

    I want to print the & character from #OUTPUT. Tried setting #OUTFORMAT and #INFO
    RMAT but it doesn't seem to work. TACL keeps thinking it is a continuation char.



    [#def CHARACTER struct
    begin
    byte ampb value 38;
    char amp redefines ampb;
    end;
    ]
    #output [CHARACTER:amp]


    == similar with 6530 control codes
    [#def T6530 struct
    begin
    byte b0(0:1) value 27 73 ;
    char clear(0:1) redefines b0;
    byte b1(0:1) value 27 111 ;
    char line25(0:1) redefines b1;
    end;
    ]

    [#output [T6530:line25(0:1)] Line 25 Text ]

    ==
    == have tacl put session info on line 25
    ==
    ?section _prompter routine
    #frame
    #push _text
    [#def T6530 struct
    begin
    byte b0(0:1) value 27 73 ;
    char clear(0:1) redefines b0;
    byte b1(0:1) value 27 111 ;
    char line25(0:1) redefines b1;
    end;
    ]
    #set _text [#DEFAULTS] [#MYTERM] [#USERNAME [#PROCESSINFO/PAID/]]
    #set _text [_text] [#PROCESSINFO/processid/]
    #set _text [#SHIFTSTRING /down/ [_text] ]
    [#output [T6530:line25(0:1)] [_text] ]
    #unframe

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)