home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
forth
/
compiler
/
fpc
/
tcom
/
debugger
/
smonitor.seq
< prev
next >
Wrap
Text File
|
1990-09-11
|
859b
|
25 lines
\ MONITOR.SEQ
\ *******************************************************************
\
\ MONITOR
\ a program which emulates an ordinary terminal
\
\ -------------------------------------------------------------------
: monitor ( -- ) \ behave like a "dumb terminal"
?comminit
cr ." << press Esc to stop >>" cr
begin com-cnt 0<> if com-get femit \ display what's received
at? drop 79 >= if cr then
then
key? if key dup \ send what's typed
control [ <> if com-out false
else drop true \ exit on <esc>
then
else false
then
until
cr ;