| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Sample Teletext prog |
/***********************************************************************/
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
arg Chno page
/* validate channel and page */
tltx = 'com1:'
config = 'teletext.inf'
displayfile = 'teletext.pag'
'{at}del' displayfile
freqs = charin(config,1,82)
page = insert('0',page,0)
page = insert('0',page,2)
page = insert('0',page,4)
page = x2c(page)
'{at}mode com1:9600,n,8,1>nul'
call InitHardware
call ChannelSelect
call PageRequest
call PageRead
EXIT 0
InitHardware:
RC=stream(tltx,'c',open)
RC=call charout(tltx, '0081'x)
if charin(tltx) \= '01'x then
do say 'Problem....!!!'
exit 1
end
Return
ChannelSelect:
RC=call charout(tltx, '82'x)
RC=call charout(tltx, substr(freqs,ChNo*2,2))
RC=call charin(tltx)
Return
PageRequest:
RC=call charout(tltx, '8300'x||page||'10101010'x)
RC=call charin(tltx)
do 15
RC=call charout(tltx, '8400'x)
if charin(tltx) = '01'x then do
/*say 'got it!'*/
RC=call charout(tltx, '8700'x)
say 'RC =' c2x(charin(tltx))
leave
end
else call SysSleep 1
/*else do
call charout tltx, '850000'x
say charin(tltx,,40)
end*/
end
Return
PageRead:
call charout tltx, '8600'x
x=charin(tltx,,960)
call charout displayfile,x
x=charin(tltx,,2)
Return
--- GoldED/2 2.50.Beta4+
* Origin: (2:250/313)SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430 SEEN-BY: 711/807 808 809 934 942 949 955 712/515 713/888 800/1 7877/2809 @PATH: 250/313 440/4 141/209 270/101 396/1 3615/50 229/2 12/2442 711/409 808 @PATH: 711/809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.