Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>tty2()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
TTY2()

    TTY2() is a variant on the TTY() function. The major difference is
    that TTY2() will display your character string across the screen
    from right to left upon a backdrop of dots like so:

    1)  ............................Pr.....
    2)  ......................Press an.....
    3)  .............Press any key to .....
    4)  .....Press any key to continue.....
    5)  .....ey to continue................
    etcetera

    The syntax is as follows:

    TTY2(<row>, <message>, [<delay>, <color>])

    Required Parameters

    <row> is a numeric expression representing the row at which to
    display the message.

    <message> is the character string to be displayed.  If this string
    is longer than 70 characters, it will be truncated to the first 70
    characters.  If you pass a null string, "Press any key to continue"
    will be used.

    Optional Parameters

    <delay> is a numeric expression representing the delay factor to
    introduce into the scrolling process.  As with TTY(), values between
    10 and 100 are recommended, but please feel free to experiment.  If
    you do not pass this parameter or pass a zero, the clicking teletype
    sound will occur during the scrolling process.

    <color> is a character string representing the color to be used for
    the scrolling message.  If this is not passed, the current color
    will be used.

    Return Value

    None

    The message will scroll across the screen until the user presses a
    key.

    Sample usage

    TTY2(12, '', 50)                  && use default message, no sound
    TTY2(24, 'Barometer: 30.92 & falling', 50)             && no sound
    TTY2(13, 'Get on with it', 0, '+W/B')    && white on blue w/ sound
    TTY2(24, 'AMEX: 39.50 down 1/4')         && default color w/ sound

See Also: TTY()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson