mirror of
https://github.com/dschmenk/PLASMA.git
synced 2024-08-31 13:29:30 +00:00
Page:
Console I O
Pages
CATalog files
COPY files
Chat Client Server
Command Line Argument Parsing
Console I O
DELete fles
Double Lo Res Graphics
Double Lo Res Test
Fiber Threads
File I O
Game Port SPI I O
Game Port SPI SD FAT
Game Port Wiring
HTTP Server
Hello World
Hi Res Graphics
Hi Res Test
Home
Installation Guide
Joystick and Buzz
Lo Res Graphics Library
Long Jump
Memory Manager
Music Player
Music Sequencer
NEWDIR
Network I O
PLASM compiler
PLASMA Byte Codes
PLASMA JIT Compiler Implementation
Porting Guide
REName files
ROGUE
RPN Calculator
Rod's Colors
SANE Floating Point
Sieve
System Library
TYPE file
Trivial FTP Daemon
Variable assignment and addressing explained
ZIPCHIP
Zero Page Usage (Apple IIe 64K )
code text Editor
23
Console I O
David Schmenk edited this page 2018-05-15 15:07:13 -07:00
A basic library for interacting with the console. Beyond the put* and get* functions from the System Library, there are routines to clear the screen, position the cursor, even draw LoRes Graphics on II and /// machines.
Compatibility: 1*, II, ///
* Apple 1 doesn't support cursor addressing or lo-res graphics
Usage: include "inc/conio.plh"
Values:
const NORMAL = $FF
const INVERSE = $3F
const FLASH = $7F
const ECHO_ON = $80
const ECHO_OFF = $00
API:
conio:keypressed()
conio:getkey()
conio:echo(state)
conio:home()
conio:gotoxy(x, y)
conio:viewport(left, top, width, height)
conio:texttype(type)
conio:textmode(columns)
conio:grmode(mix)
conio:grcolor(color)
conio:grplot(x, y)
conio:tone(duration, freq)
conio:rnd()
Source Code: conio.pla
Sample Source: rpncalc.pla