| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Original oneliner MPL sou |
Here's the original (Mystic 1.07.3) source code:
--// snip --------------------------------------------------------------------
# ignatius' oneliners
uses cfg
uses user
var Twriters string array(1..10)
var Toneliner string array(1..10)
var S string
var Foneline string
var Ch char
var Ch2 char
var Count byte
var Count2 byte
getcfg
GetThisUser
### begin show procedure ######################################
Foneline := cfgDataPath+'oneliner.lst'
Procedure show
cls
dispFile('oneh.ans')
For Count := 1 To 10
write('þ ')
write(padRT(Toneliner(count), 64, ' '))
write(' : ')
writeln(padRT(Twriters(count), 10, ' '))
FEnd
PEnd show
If Not fExist(fOneLine) Then
fOpen(1, text, Rewrite, Foneline)
For count := 1 To 10
fWriteLn(1, 'Ia! Cthulhu!')
fWriteLn(1, 'ezdagor')
FEnd
fClose(1)
EndIf
fOpen(1, Text, Reset, Foneline)
For Count := 1 To 10
fReadLn(1, Toneliner(count))
fReadLn(1, Twriters(count))
FEnd
fClose(1)
show
### end show procedure #########################################
### begin bot_bar procedure ####################################
Procedure bot_bar
dispFile('onen.ans')
Ch2 := ReadKey
If Ch2 = Chr(13) then
MenuCmd('go', 'main')
Halt
EndIf
PEnd bot_bar
### end bot_bar procedure ######################################
### begin top_bar procedure ####################################
Procedure top_bar
dispfile('oney.ans')
Ch2 := ReadKey
If Ch2 = Chr(13) then
dispFile('oneline.asc')
Write(': ')
s := stripmci(Input(70, 70, 11, ''))
If s = '' then
WriteLn('aborted')
Halt
EndIf
For Count := 1 To 9
Count2 := Count + 1
Toneliner(count) := Toneliner(count2)
Twriters(count) := Twriters(count2)
Fend
tWriters(10) := userAlias
tOneliner(10) := S
fOpen(1, text, Rewrite, Foneline)
For Count := 1 To 10
fWriteLn(1, tOneliner(count))
fWriteLn(1, tWriters(count))
FEnd
fClose(1)
EndIf
show
PEnd top_bar
### end top_bar procedure ######################################
### begin position procedure ###################################
Procedure position
Repeat
dispFile('onen.ans')
Ch := ReadKey
If IsArrow and Ch = Chr(80) then
dispfile('onen.ans')
bot_bar
ElseIf IsArrow and Ch = Chr(72) then
top_bar
EndIf
Until Ch = Chr(13)
PEnd position
### end position procedure ##########################################
--// snip --------------------------------------------------------------------
Regards,
|09ignatius |07(|15cia|07/|15scrollz|07)
--- Mystic BBS v1.10 A51 (Linux)
þ Synchronet þ thePharcyde_ >> telnet://bbs.pharcyde.org (Wisconsin)
* Origin: catch22bbs.com (46:1/124)SEEN-BY: 19/33 103/705 124/5013 5014 5015 5016 130/803 154/10 203/0 221/0 SEEN-BY: 229/275 426 261/38 280/464 5003 292/624 396/40 45 423/120 633/267 280 SEEN-BY: 640/1384 712/132 620 848 770/1 31999/99 @PATH: 124/5013 5014 396/45 280/464 712/848 633/267 |
|
| 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™.