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>tty()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
TTY()

    TTY() displays a character string across the screen from left to
    right in a continuously scrolling "teletype" manner until the user
    presses any key.  The syntax is as follows:

    TTY(<row>,<message>,[<delay>,<stop column>])

    Required Parameters

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

    <message> is the character string to be displayed.

    Optional Parameters

    <delay> is a numeric expression representing the delay factor to
    introduce into the scrolling process.  Values between 10 and 100 are
    recommended, although you should experiment to determine what works
    best on your particular computer.  If you do not pass this parameter
    or pass a zero, a clicking pseudo-teletype sound will occur during
    the scrolling process.

    <stop column> is a numeric expression repre- senting the column at
    which to stop displaying the message. This refers to the left
    column, i.e., if you pass a value of 30, TTY() will stop scrolling
    your message when the leftmost character is at column 30. This is
    great for snazzy copyright notices. Note: if you use this parameter,
    TTY() will not wait for the user to press a key - once it gets to
    the stop column, command will return immediately to the calling
    program.

    Return Value

    None

    The message will either scroll across the screen until the user
    presses a key, or stop scrolling once the stop column is reached (if
    that parameter is used).

    Sample Usage

    TTY(12, 'Press a key to return to menu')   && with sound   
    TTY(10, '(C) 1988 by Joe Schmoe', 50, 26)  && without sound

See Also: TTY2()

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