| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | A new project |
Hello Andrew, 07 May 18 18:13 at you wrote to me: AH> That sounds really cool. What did the game do? Check out http://outpostbbs.net/cheepware.html -- look for "The Magic Oracle". All of my doors are DOS right now. However, when the dust settles for me personally (I am in the middle of a ninety-day probation period in a new job), I'm very close to finishing up a working Linux-based Pascal doorkit. I have released doors that run under Linux in a beta form but they are not true doors as they don't monitor time online nor use a FOSSIL but instead use stdio under Linux. Here's the "door" if you're wondering. The ANSWERS.DAT file is just a simple text files with a single line per answer. The codes in the output lines are just ANSI color codes that are "bash-ified". === Cut === #!/bin/bash FILE=answers.dat if [ ! -f "$FILE" ] then echo "ANSWERS.DAT not found!" echo "Program aborting." exit 1 fi clear echo -e "\e[92mThe Magic Oracle/BASH" echo -e "\e[36mWritten by and (C)2017 Sean Dennis." echo echo -e "\e[96mWhat is your question for the Oracle?\e[37m" read QUESTION echo echo -e "\e[92mYour question was:" echo -e "\e[37m$QUESTION" echo echo -e "\e[95mAfter consulting the Oracle, his answer is...\e[33m" # Pick and display a random line in ANSWERS.DAT. sort --random-sort $FILE | head -n 1 echo -e "\e[39m" === Cut === The real trick is in the second to the last line. ;) Later, Sean ... A verbal contract isn't worth the paper it's written on. --- GoldED+/LNX 1.1.5-b20170303* Origin: Outpost BBS * Limestone, TN, USA (1:18/200) SEEN-BY: 15/0 18/200 19/36 34/999 90/1 116/18 120/302 331 123/140 128/2 SEEN-BY: 153/7715 218/700 220/60 222/2 230/150 152 240/1120 250/1 261/38 100 SEEN-BY: 266/404 512 267/155 275/100 280/1027 282/1031 1056 291/1 111 320/119 SEEN-BY: 320/219 340/400 342/13 393/68 396/45 633/267 280 640/384 712/620 848 SEEN-BY: 770/1 801/161 189 2320/100 105 3634/12 5020/1042 @PATH: 18/200 261/38 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™.