Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
a5912b91
Commit
a5912b91
authored
24 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Initial check-in of BullsEye! bulletin module.
parent
434343eb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/bullseye.src
+78
-0
78 additions, 0 deletions
exec/bullseye.src
with
78 additions
and
0 deletions
exec/bullseye.src
0 → 100644
+
78
−
0
View file @
a5912b91
# bullseye.src
# Bulletins written in Baja by Rob Swindell
# $id$
# @format.tab-size 8, @format.use-tabs true
!include file_io.inc
!include sbbsdefs.inc
# Load the configuration file (SBBS\CTRL\BULLSEYE.CFG)
int i
int b
int file
int filepos
int total
int mode
str fname
printf "\r\nSynchronet BullsEye! Version 1.00 by Rob Swindell\r\n"
pause_reset
set str "%zBULLSEYE.CFG"
fopen file O_RDONLY str
if_false
printf "\r\n!ERROR %ld opening %s\r\n" _errno str
return
end_if
fread_line file str
copy mode str
fget_pos file filepos
set total 0
#print "%l: %s" total str
:count_bulls
fread_line file str
#print "%ld: %s" total str
if_true # not end of file
add total 1
goto count_bulls
end_if
# Display menu, list bulletins, display prompt, etc.
:menu
printfile "%zBULLSEYE.ASC"
print "\1n\r\n\1b\1hEnter number of bulletin to view or press (\1wENTER\1b) to continue: \1w"
getnum b total
compare b 1
if_less
return
end_if
fset_pos file filepos
set i 0
:next
fread_line file str
if_true # not end of file
add i 1
compare i b
if_equal
print "\1n\1l"
truncsp str
copy fname str
compare_substr str ".htm"
if_true
exec_bin typehtml
else
printfile_str
end_if
sprintf str "Node %d %s viewed bulletin #%d: %s" _node_num _useron.alias i fname
print_local "%s"
clear_abort
goto menu
end_if
goto next
end_if
printf "\r\nInvalid bulletin number: %d" b
goto menu
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment