How to code (or enable) escape sequences? - Protocols

This is a discussion on How to code (or enable) escape sequences? - Protocols ; Using K95 v2.1.3, wy370 Using C-Kermit Second Edition, Communication Software (page 404-406) How do you manually code escape sequences? I can't get any of them to work. Perhaps I need to enable something first? Below is a direct copy of ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: How to code (or enable) escape sequences?

  1. How to code (or enable) escape sequences?

    Using K95 v2.1.3, wy370
    Using C-Kermit Second Edition, Communication Software (page 404-406)

    How do you manually code escape sequences? I can't get any of them to work.
    Perhaps I need to enable something first?

    Below is a direct copy of a block of code from the book.
    I copy and pasted it. Ran it, and got less than pleasant results.

    define on_exit echo \27[r\27[0m\27[1:1H\27[1;1H\27[2JGoodbye!
    define \%g \27[0m\27[32m\27[7m\frepeat(=,80)\27[0m\27[34m
    echo \27[1;1H\27[2J\%G\27[47m
    ask \%n { What is your name\? \27[30m\27[7m}
    echo \%g
    echo \27[35m\27[5m Welcome to Kermit, \27[30m\27[5m\%n\13\10\%g
    echo \13\10\27[0J\27[7;24r\27[22;1H
    set prompt {\%g\13\10 \27[33mWhat is your command\? \27[34m}

    I copied the text into Escape.ksc.
    Tried take Escape.ksc. Below is the result.

    [U:\] K-95> take escape.ksc
    ?[1;1H?[2J?[0m?[32m?[7m================================================ =========
    =======================?[0m?[34m?[47m
    What is your name? ?[30m?[7mscott
    ?[0m?[32m?[7m================================================ ===================
    =============?[0m?[34m
    ?[35m?[5m Welcome to Kermit, ?[30m?[5mscott
    ?[0m?[32m?[7m================================================ ===================
    =============?[0m?[34m

    ?[0J?[7;24r?[22;1H
    ?[0m?[32m?[7m================================================ ===================
    =============?[0m?[34m
    ?[33mWhat is your command? ?[34m


    There are commands in there to alter color as well. That didn't happen.
    I'd really like to get some additional formatting such as bold, underscores,
    and move cursor. Coloring would be nice as well.

    What exactly am I missing here?


    - Scott



  2. Re: How to code (or enable) escape sequences?

    On 2006-12-08, Scott Caissie wrote:
    : Using K95 v2.1.3, wy370
    : Using C-Kermit Second Edition, Communication Software (page 404-406)
    :
    : How do you manually code escape sequences? I can't get any of them to work.
    : Perhaps I need to enable something first?
    :
    : Below is a direct copy of a block of code from the book.
    : I copy and pasted it. Ran it, and got less than pleasant results.
    :
    : define on_exit echo \27[r\27[0m\27[1:1H\27[1;1H\27[2JGoodbye!
    : define \%g \27[0m\27[32m\27[7m\frepeat(=,80)\27[0m\27[34m
    : echo \27[1;1H\27[2J\%G\27[47m
    : ask \%n { What is your name\? \27[30m\27[7m}
    : echo \%g
    : echo \27[35m\27[5m Welcome to Kermit, \27[30m\27[5m\%n\13\10\%g
    : echo \13\10\27[0J\27[7;24r\27[22;1H
    : set prompt {\%g\13\10 \27[33mWhat is your command\? \27[34m}
    :
    These are not to be used in Kermit 95's command window. Use them with
    C-Kermit on the host, as seen through Kermit 95's terminal window.

    Kermit 95's command screen does not have a terminal emulator. However,
    you can do some limited things with it; type "help screen" at the K-95>
    prompt for details.

    - Frank

+ Reply to Thread