• Cursor Location

    From Armitage@VERT/QWKMAT to All on Sat Jul 12 15:24:00 2003
    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@VERT/ANJO to Armitage on Sat Jul 12 17:23:00 2003
    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@VERT to Armitage on Sat Jul 12 19:59:00 2003
    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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Armitage@VERT/QWKMAT to Angus Mcleod on Sun Jul 13 06:13:00 2003
    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@VERT/QWKMAT to Digital Man on Sun Jul 13 06:14:00 2003
    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@VERT to Armitage on Sun Jul 13 21:57:00 2003
    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."

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net