• Cursor Location

    From Armitage@QWKMAT to All on Saturday, July 12, 2003 19:24:00
    Okay, here I go.. about to work on a Matrix Login with an ANSI screen for background.. wondering about baja cursor positioning with the ANSI escape codes, anyone know about this?


    ---
    ■ Synchronet ■ The Matrix - telnet://matrix.dotheyknow.net
  • From Angus Mcleod@ANJO to Armitage on Saturday, July 12, 2003 21:23:00
    Re: Cursor Location
    By: Armitage to All on Sat Jul 12 2003 19:24:00

    Okay, here I go.. about to work on a Matrix Login with an ANSI screen for background.. wondering about baja cursor positioning with the ANSI escape codes, anyone know about this?

    What's to know? Just PRINT / PRINTF the escape sequences and the cursor will obey -- assuming the caller has ANSI support, which you chould be able to check using ARS as in

    COMPARE_ARS
    IF_TRUE
    # clear screen and home cursor
    PRINT "\x1B[2J"
    END_IF

    Search the WWW for details on what ANSi codes are valid.

    ---
    ■ Synchronet ■ Where we BAJA Rob into writing our modules. The ANJO BBS
  • From Digital Man to Armitage on Saturday, July 12, 2003 23:59:03
    Re: Cursor Location
    By: Armitage to All on Sat Jul 12 2003 07:24 pm

    Okay, here I go.. about to work on a Matrix Login with an ANSI screen for background.. wondering about baja cursor positioning with the ANSI escape codes, anyone know about this?

    The easiest way is probably to use the ANSI cursor-position @-codes. See v310_new.txt for details.

    digital man

    Snapple "Real Fact" #72:
    The average person uses 150 gallons of water per day for personal use.
  • From Armitage@QWKMAT to Angus Mcleod on Sunday, July 13, 2003 10:13:00
    Re: Cursor Location
    By: Angus Mcleod to Armitage on Sat Jul 12 2003 10:23 pm

    Thanks, I will do a lookup... catch ya later...


    ---
    ■ Synchronet ■ The Matrix - telnet://matrix.dotheyknow.net
  • From Armitage@QWKMAT to Digital Man on Sunday, July 13, 2003 10:14:00
    Re: Cursor Location
    By: Digital Man to Armitage on Sun Jul 13 2003 12:59 am

    I looked through the v310_new.txt and it mentions the new codes, but not what they are.


    ---
    ■ Synchronet ■ The Matrix - telnet://matrix.dotheyknow.net
  • From Digital Man to Armitage on Monday, July 14, 2003 01:57:37
    Re: Cursor Location
    By: Armitage to Digital Man on Sun Jul 13 2003 10:14 am

    I looked through the v310_new.txt and it mentions the new codes, but not wha they are.

    Sorry, it was actually in v300_new.txt:

    o New @-codes:
    LOCAL-IP displays current local IP address
    CRLF carriage return/line-feed pair
    UP Move cursor up one row (ANSI)
    UP:n Move cursor up n rows (ANSI)
    DOWN Move cursor down one row (ANSI)
    DOWN:n Move cursor down n rows (ANSI)
    RIGHT Move cursor right one column (ANSI)
    RIGHT:n Move cursor right n columns (ANSI)
    LEFT Move cursor left one column (ANSI)
    LEFT:n Move cursor left n columns (ANSI)
    GOTOXY:x,y Move cursor to x/y (1-based) (ANSI)
    PUSHXY Save current cursor position (ANSI)
    POPXY Restore saved cursor position (ANSI)

    digital man

    Snapple "Real Fact" #160:
    One alternate title that had been considered for NBC's hit "Friends" was "Insomnia Cafe."