Skip to main content
Nivethan Thiyagarajah
Participating Frequently
Dec 4, 2022 2:37 AM UTC

Wintegrate Escape Codes to Control Wintegrate

Inside a proc you can do T I27,"`:" to set the column width of the wintegrate emulator to 80 characters. Is there a listing of what escape sequences exist to manipulate the wintegrate emulator?

The end goal is to change the wintegrate terminal type programmatically.

Thanks in advance!

------------------------------
Nivethan Thiyagarajah
Programmer
Asynchron Systems Inc
Toronto ON CA
------------------------------

    2 replies

    Mike Young
    Participating Frequently
    Dec 5, 2022 10:50 AM UTC
    Inside a proc you can do T I27,"`:" to set the column width of the wintegrate emulator to 80 characters. Is there a listing of what escape sequences exist to manipulate the wintegrate emulator?

    The end goal is to change the wintegrate terminal type programmatically.

    Thanks in advance!

    ------------------------------
    Nivethan Thiyagarajah
    Programmer
    Asynchron Systems Inc
    Toronto ON CA
    ------------------------------
    In the wIntegrate installation sub-directory CONFIG (ie c:\\program files (x86)\\wintegrate\\config) there are client scripts (mainly to resize wIntegrate cols, rows, backpages, font) we use to resize/config wIntegrate using WIN.PCSCRIPT called sz{cols}x{rows}.wis e.g. sz80x24.wis

    In your routine you could simply run the script by setting COLS and ROWS e.g.
    COLS = 80
    ROWS = 24
    CALL WIN.PCSCRIPT("Config/sz" : COLS : "x" : ROWS : ".wis", "")

    ------------------------------
    Mike Young
    Senior PS Techical Consultant
    Aptean
    Atlanta GA US
    ------------------------------
    Nivethan Thiyagarajah
    Participating Frequently
    Dec 6, 2022 9:27 AM UTC
    In the wIntegrate installation sub-directory CONFIG (ie c:\\program files (x86)\\wintegrate\\config) there are client scripts (mainly to resize wIntegrate cols, rows, backpages, font) we use to resize/config wIntegrate using WIN.PCSCRIPT called sz{cols}x{rows}.wis e.g. sz80x24.wis

    In your routine you could simply run the script by setting COLS and ROWS e.g.
    COLS = 80
    ROWS = 24
    CALL WIN.PCSCRIPT("Config/sz" : COLS : "x" : ROWS : ".wis", "")

    ------------------------------
    Mike Young
    Senior PS Techical Consultant
    Aptean
    Atlanta GA US
    ------------------------------
    Thank you, that pointed me in the right direction.

    You can also do CALL WIN.COMSUB('Set Emulation="vt100"') to set specific variables without having a script on the host PC.


    https://community.rocketsoftware.com/forums/forum-home/digestviewer/view-question?ContributedContentKey=6acb43de-13b8-4e62-9864-c0631c4a3353&CommunityKey=9623ec16-9dfa-45ef-b0ef-482ea8980f44&tab=digestviewer


    ------------------------------
    Nivethan Thiyagarajah
    Programmer
    Asynchron Systems Inc
    Toronto ON CA
    ------------------------------