Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : NN0305.ZIP
Filename : TTY.PRG

 
Output of file : TTY.PRG contained in archive : NN0305.ZIP
* Program: Tty.prg
* Author: Greg Lief
* Version: Clipper Summer '87
*
* Copyright (c) 1988-89 Greg Lief.
* Placed into Public Domain.
*
* Syntax: Tty(, , [, ])
*
* Thanks to Jeanne Nerwinski, who had the idea in the first
* place, and Jeff Wolach, who suggested the .
*

FUNCTION Tty
PARAM xrow, msg, delay, stopcol
PRIVATE xcol, yy
* set delay and stop column if parameters were not passed
delay = IF(PCOUNT() < 3, 20, delay)
stopcol = IF(PCOUNT() < 4, -1, stopcol)
xcol = 0
DO WHILE INKEY() = 0 .AND. stopcol != xcol
@ xrow, xcol SAY CHR(32) + IF(xcol < 79, ;
SUBSTR(msg, 1, 79 - xcol), '')
IF 79 - xcol < LEN(msg)
@ xrow, 0 SAY SUBSTR(msg,80-xcol,LEN(msg)-79+xcol)
ENDIF
FOR yy = 1 TO delay
NEXT
xcol = IF( xcol = 79, 0, xcol + 1)
ENDDO
RETURN ('')
* EOF: Tty.prg


  3 Responses to “Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : NN0305.ZIP
Filename : TTY.PRG

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/