-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple.src
387 lines (315 loc) · 4.84 KB
/
simple.src
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
# simple.src
# Simple Synchronet Command Shell - for beginner/first-time users
# $Id: simple.src,v 1.13 2020/04/23 02:46:09 rswindell Exp $
# @format.tab-size 8, @format.use-tabs true
!include sbbsdefs.inc
replace_text 563 "\1n\1h\1b{\1wContinue? Yes/No\1b} "
# Set return point for main menu commands (via end_cmd)
cmd_home
# Update node status
node_action node_main
cls
async
menu simple/main
menu simple/prompt
print "\x01n"
getstrupr 10
crlf
pause_reset
# Write command to log file
logstr
# Commands
cmdstr C
exec_bin chat_sec
end_cmd
cmdstr CHAT
exec_bin chat_sec
end_cmd
cmdstr Q
msg_qwk
end_cmd
# Send Post/Email menu
cmdstr S
cmd_home
cls
async
menu simple/sendmsg
menu simple/prompt
print "\x01n"
getstrupr 10
crlf
pause_reset
# Send Email
cmdstr E
call sendmail
end_cmd
cmdstr EMAIL
call sendmail
end_cmd
# Post Message
cmdstr P
call postmessage
end_cmd
cmdstr POST
call postmessage
end_cmd
# Send NetMail
cmdstr N
call sendnetmail
end_cmd
cmdstr NETMAIL
call sendnetmail
end_cmd
# Quit back to main
cmdstr Q
cmd_pop
end_cmd
end_cmd
# Read messages/mail menu
cmdstr R
cmd_home
cls
async
menu simple/readmsg
menu simple/prompt
print "\x01n"
getstrupr 10
crlf
pause_reset
# Read your Email
cmdstr E
mail_read
end_cmd
cmdstr EMAIL
mail_read
end_cmd
# Read your sent Email
cmdstr F
mail_read_sent
end_cmd
# Read messages in a conference
cmdstr A
msg_select_area
if_true
msg_read
end_if
end_cmd
cmdstr ALL
msg_read
end_cmd
# Bulletins
cmdstr B
text_file_section
end_cmd
# Read all new messages
cmdstr N
print "\x01l\x01b\x01hScanning for new messages...\r\n"
msg_new_scan_all
end_cmd
cmdstr NEW
print "\x01l\x01b\x01hScanning for new messages...\r\n"
msg_new_scan_all
end_cmd
# Read all new messages TO: YOU
cmdstr Y
print "\x01l\x01b\x01hScanning for your messages...\r\n"
msg_your_scan_all
end_cmd
cmdstr YOU
print "\x01l\x01b\x01hScanning for your messages...\r\n"
msg_your_scan_all
end_cmd
cmdstr YOUR
print "\x01l\x01b\x01hScanning for your messages...\r\n"
msg_your_scan_all
end_cmd
cmdstr C
call msg_cfg
end_cmd
# Quit back to main menu
cmdstr Q
cmd_pop
end_cmd
end_cmd
#Open door menu
cmdstr O
xtrn_section
end_cmd
cmdstr OPEN
xtrn_section
end_cmd
cmdstr DOOR
xtrn_section
end_cmd
cmdstr DOORS
xtrn_section
end_cmd
#Account config (user defaults)
cmdstr A
user_defaults
end_cmd
#Page another user
cmdstr P
private_message
pause_reset
end_cmd
#List users online
cmdstr L
cls
nodelist_users
end_cmd
#List files
cmdstr F
cmd_home
cls
async
menu simple/filelist
menu simple/prompt
print "\x01n"
getstrupr 10
crlf
pause_reset
cmdstr A
file_select_area
if_false
end_cmd
end_if
setstr "*.*"
file_list
end_cmd
cmdstr N
print "\r\n\x01b\x01hUse \x01c@NEWFILETIME@\x01b for new file scan "
yes_no "date/time"
if_false
file_ptrs_cfg
if_false
end_cmd
end_if
end_if
file_new_scan_all
end_cmd
cmdstr F
print "\r\n\x01c\x01hFind Text in File Descriptions (no wildcards)\r\n"
file_find_text_all
end_cmd
cmdstr S
print "\r\n\x01c\x01hSearch for Filename(s)\r\n"
file_find_name_all
end_cmd
# Quit back to main menu
cmdstr Q
cmd_pop
end_cmd
end_cmd
#Download file
cmdstr D
file_download_batch
if_true
end_cmd
end_if
print "\r\nEnter the filename or wildcard to download\r\n"
getfilespec
if_true
file_download
endif
end_cmd
#Upload a file
cmdstr U
file_select_area
if_false
end_cmd
end_if
chkfile "%ztext/menu/upload.*"
if_true
menu upload
end_if
file_upload
end_cmd
#Logoff
cmdstr G
call logoffbbs
end_cmd
cmdstr BYE
call logoffbbs
end_cmd
cmdstr GOODBYE
call logoffbbs
end_cmd
cmdstr OFF
call logoffbbs
end_cmd
cmdstr LOGOFF
call logoffbbs
end_cmd
#fall through
end_cmd
:logoffbbs
file_download_batch
if_false
logoff
endif
return
:sendmail
print "\r\n\x01b\x01hSend E-mail to (User name or number): \x01n"
getname 40
compare_str ""
if_true
return
end_if
compare_str "SYSOP"
if_true
setstr "1"
end_if
no_yes "\r\nAttach a file"
if_false
mail_send_file
else
mail_send
end_if
return
:sendnetmail
int i
copy i _netmail_misc
or i _inetmail_misc
and i NMAIL_FILE
compare i 0
if_false
no_yes "\r\nAttach a file"
end_if
if_false
mail_send_netfile
else
mail_send_netmail
end_if
return
:postmessage
msg_select_area
if_true
msg_post
end_if
return
########################### Msg Config Section ##############################
:msg_cfg
menu maincfg
async
print "\r\n\x01y\x01hCommand: \x01n"
getstrupr 10
logkey
cmdkey N
msg_new_scan_cfg
return
end_cmd
cmdkey S
msg_your_scan_cfg
return
end_cmd
cmdkey P
msg_ptrs_cfg
return
end_cmd
cmdkey I
msg_ptrs_reinit
return
end_cmd
return
#end of SIMPLE.SRC