Skip to content

Commit

Permalink
Added TEKLINES.BAS demo
Browse files Browse the repository at this point in the history
  • Loading branch information
rbanffy committed Nov 25, 2024
1 parent f1ccd89 commit d1e6659
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
19 changes: 19 additions & 0 deletions TEKLINES.BAS
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
10 REM Play with Tektronix graphics
20 ESC$=CHR$(27)
30 GS$=CHR$(29)
40 US$=CHR$(31)
50 CSI$=ESC$+"["
60 PRINT CSI$+"?38h"
70 FOR I = 1 TO 200
80 X=RND(8)*1024: Y=RND(8)*768: GOSUB 160: C1$=XY$
90 X=RND(9)*1024: Y=RND(9)*768: GOSUB 160: C2$=XY$
100 PRINT GS$+C1$+C2$+US$+CHR$(13)
110 NEXT
120 REM Pause for a short time
130 FOR I = 1 TO 10000: NEXT
140 PRINT CSI$+"?38l"
150 END
160 REM calculate coordinates for x,y
170 REM returns them in xy$
180 XY$=CHR$((Y\32) OR 32) + CHR$((Y MOD 32) OR 96) + CHR$((X\32) OR 32) + CHR$((X MOD 32) OR 64)
190 RETURN
Loading

0 comments on commit d1e6659

Please sign in to comment.