• console.clear()

    From Alterego@VERT/ALTERANT to Digital Man on Tuesday, October 01, 2019 11:06:55
    Hey DM,

    I've noticed that whenver I use console.clear() (to clear the screen and home the cursor), I'm getting a "pause prompt" (Hit a key) before it actually clears the screen and homes the cursor.

    However, if I home the cursor before hand console.gotoxy(0,0) and then call console.clear(), I do not get that pause prompt.

    Is this expected?
    ...ëîå*

    ... Treat her like a lady and she'll always bring you home.

    ---
    þ Synchronet þ Alterant | an SBBS in Docker on Pi!
  • From Digital Man@VERT to Alterego on Monday, September 30, 2019 20:04:56
    Re: console.clear()
    By: Alterego to Digital Man on Tue Oct 01 2019 11:06 am

    Hey DM,

    I've noticed that whenver I use console.clear() (to clear the screen and home the cursor), I'm getting a "pause prompt" (Hit a key) before it actually clears the screen and homes the cursor.

    If there are potentially unacknowledged/read lines that have been printed on the console, that is normal. Set console.line_counter = 0 if you wish to defeat the auto-pause behavior.

    However, if I home the cursor before hand console.gotoxy(0,0) and then call console.clear(), I do not get that pause prompt.

    Is this expected?

    The line_counter = 0 method would be better. But know that means that some text lines may have not been seen by the user when the screen is being cleared.

    digital man

    Synchronet/BBS Terminology Definition #15:
    CVS = Concurrent Versioning System
    Norco, CA WX: 61.6øF, 64.0% humidity, 7 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Alterego@VERT/ALTERANT to Digital Man on Tuesday, October 01, 2019 14:58:27
    Re: console.clear()
    By: Digital Man to Alterego on Mon Sep 30 2019 08:04 pm

    I've noticed that whenver I use console.clear() (to clear the screen and home the cursor), I'm getting a "pause prompt" (Hit a key) before it actually clears the screen and homes the cursor.
    If there are potentially unacknowledged/read lines that have been printed on the console, that is normal. Set console.line_counter = 0 if you wish to defeat the auto-pause behavior.

    I know there are no pending output to go to the screen.

    It also doesnt matter if the screen stops at line 3, 12 or 24. (I'm sending some pure ANSI to the screen from a file that has been f.read(). Some of the ANSI does have @codes, so it is sent to the screen with console.putmsg().
    ...ëîå*

    ... An object never serves the same function as its image- or its real name.

    ---
    þ Synchronet þ Alterant | an SBBS in Docker on Pi!