-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrenegade.src
905 lines (738 loc) · 12.1 KB
/
renegade.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
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
# renegade.src
# $Id: renegade.src,v 1.16 2020/04/23 02:46:09 rswindell Exp $
# @format.tab-size 8, @format.use-tabs true
!include sbbsdefs.inc
################################# Begins Here #################################
or _sys_misc SM_RA_EMU # Swap Msg ReRead/Reply commands
:main
# Set return point for main menu commands (via end_cmd)
cmd_home
# Display text/menu/main.* if not in expert mode
compare_ars expert
if_false
cls
menu renegade/main
end_if
# Update node status
node_action node_main
async
# Display main Prompt
compare_ars exempt T
if_true
print "\x01n\r\n\x01b\x01hTime Used: [\x01c@TUSED@\x01b] "
else
print "\x01n\r\n\x01b\x01hTime Left: [\x01c@TLEFT@\x01b] "
end_if
print "\x01b\x01h(\x01c?\x01b=\x01cHelp\x01b)\r\nMain Menu \x01m: \x01n"
# Get key (with / extended commands allowed)
compare_user_misc UM_COLDKEYS
if_false
getkeye
else
getstrupr 60
endif
# Do nothing for control keys and space
cmdkey ^@
end_cmd
cmdkey ^M
end_cmd
cmdkey ^S
end_cmd
cmdkey "
end_cmd
# Write command to log file
logkey_comma
# Show the key hit
compare_user_misc UM_COLDKEYS
if_false
printkey
endif
cmdkey F
cmd_pop
goto file_transfers
end_cmd
compare_user_misc UM_COLDKEYS
if_false
crlf
end_if
pause_reset
# Menu
cmdkey ?
compare_ars expert
if_true
cls
menu renegade/main
end_if
end_cmd
# Sysop Menu
compare_ars SYSOP or exempt Q or I or N
if_true
cmdkey *
call sysop
end_cmd
end_if
# Commands
cmdkey A
auto_message
end_cmd
cmdkey C
exec_bin chat_sec
end_cmd
cmdkey E
cmd_pop
goto E-mail
end_cmd
cmdkey G
file_download_batch
if_true
end_cmd
end_if
logoff
end_cmd
cmdkey /G
file_download_batch
if_true
end_cmd
end_if
logoff_fast
end_cmd
cmdkey I
call main_info
end_cmd
cmdkey W
nodelist_users
end_cmd
cmdkey L
userlist_logons
end_cmd
cmdkey /L
nodelist_all
end_cmd
cmdkey $
minute_bank
end_cmd
cmdkey M
cmd_pop
goto message
end_cmd
cmdkey N
setstr "1"
mail_send_feedback
end_cmd
cmdkey O
xtrn_section
end_cmd
cmdkey P
user_defaults
end_cmd
cmdkey !
msg_qwk
end_cmd
cmdkey S
text_file_section
end_cmd
cmdkey U
userlist_all
end_cmd
cmdkey X
toggle_user_misc UM_expert
end_cmd
cmdkey Y
info_user
end_cmd
# fall through
print "\r\n\x01c\x01hUnrecognized command."
compare_ars expert
if_true
print " Hit '\x01i?\x01n\x01c\x01h' for a menu."
end_if
crlf
end_cmd
# shouldn't hit next line
print "Problem in command shell."
pause
hangup
############################### E-mail Section ################################
:e-mail
cmd_home
compare_ars expert
if_false
cls
menu renegade/email
end_if
async
compare_ars exempt T
if_true
print "\x01n\r\n\x01b\x01hTime Used: [\x01c@TUSED@\x01b] "
else
print "\x01n\r\n\x01b\x01hTime Left: [\x01c@TLEFT@\x01b] "
end_if
print "\x01b\x01h(\x01c?\x01b=\x01cHelp\x01b)\r\nEmail Menu \x01m: \x01n"
# Get key (with / extended commands allowed)
compare_user_misc UM_COLDKEYS
if_false
getkeye
else
getstrupr 60
endif
# Do nothing for control keys and space
cmdkey ^@
end_cmd
cmdkey ^M
end_cmd
cmdkey ^S
end_cmd
cmdkey "
end_cmd
logkey
# Show the key hit
compare_user_misc UM_COLDKEYS
if_false
printkey
endif
compare_user_misc UM_COLDKEYS
if_false
crlf
end_if
pause_reset
cmdkey ?
compare_ars expert
if_true
cls
menu renegade/email
end_if
end_cmd
cmdkey E
print "\x01_\r\n\x01b\x01hE-mail (User name or number): \x01w"
getname 40
compare_str ""
if_true
end_cmd
end_if
compare_str "SYSOP"
if_true
setstr "1"
end_if
mail_send
end_cmd
cmdkey R
mail_read
end_cmd
cmdkey V
mail_read_sent
end_cmd
# Netmail
cmdkey N
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_true
mail_send_netmail
else
mail_send_netfile
end_if
end_cmd
cmdkey Q
cmd_pop
goto main
end_cmd
cmdkey G
file_download_batch
if_true
end_cmd
end_if
logoff
end_cmd
cmdkey /G
file_download_batch
if_true
end_cmd
end_if
logoff_fast
end_cmd
# fall through
print "\r\n\x01c\x01hUnrecognized command."
compare_ars expert
if_true
print " Hit '\x01i?\x01n\x01c\x01h' for a menu."
end_if
crlf
end_cmd
########################### Main Config Section ##############################
:main_cfg
compare_ars expert
if_false
menu maincfg
end_if
async
print "\r\n\x01y\x01hConfig: \x01n"
getcmd ?QNPIS\r
logkey
cmdkey ?
compare_ars expert
if_true
menu maincfg
end_if
goto main_cfg
end_cmd
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
########################### File Transfer Section #############################
:file_transfers
cmd_home
compare_ars expert
if_false
cls
menu renegade/transfer
end_if
# Update node status
node_action node_xfer
async
# Display main Prompt
print "\x01n\r\n\x01b\x01h[@LIB@ @DIR@]\r\n"
compare_ars exempt T
if_true
print "\x01b\x01hTime Used: [\x01c@TUSED@\x01b] "
else
print "\x01b\x01hTime Left: [\x01c@TLEFT@\x01b] "
end_if
print "\x01b\x01h(\x01c?\x01b=\x01cHelp\x01b)\r\nFile Menu \x01m: \x01n"
# Get key (with / extended commands allowed)
compare_user_misc UM_COLDKEYS
if_false
getkeye
else
getstrupr 60
endif
# Do nothing for control keys and space
cmdkey ^@
end_cmd
cmdkey ^M
end_cmd
cmdkey ^S
end_cmd
cmdkey "
end_cmd
# Write command to log file
logkey_comma
# Hitting number changes current sub-board
cmdkey digit
compare_user_misc UM_COLDKEYS
if_false
ungetkey
end_if
file_get_dir_num
end_cmd
# Hitting /number changes current group
cmdkey edigit
compare_user_misc UM_COLDKEYS
if_false
ungetkey
else
shift_str 1
end_if
file_get_lib_num
end_cmd
# Show the key hit
compare_user_misc UM_COLDKEYS
if_false
printkey
endif
# Next library
cmdkey ]
file_directory_up
end_cmd
# Previous library
cmdkey [
file_directory_down
end_cmd
cmdkey Q
cmd_pop
goto main
end_cmd
compare_user_misc UM_COLDKEYS
if_false
crlf
end_if
pause_reset
# Menu
cmdkey ?
compare_ars expert
if_true
cls
menu renegade/transfer
end_if
end_cmd
# Sysop Menu
compare_ars SYSOP or exempt Q or I or N
if_true
cmdkey *
call sysop
end_cmd
end_if
# Commands
cmdkey E
file_batch_section
end_cmd
cmdkey C
exec_bin chat_sec
end_cmd
cmdkey D
print "\r\n\x01c\x01hDownload File(s)\r\n"
file_download_batch
if_true
end_cmd
end_if
getfilespec
if_true
file_download
end_if
end_cmd
cmdkey /D
file_download_user
end_cmd
cmdkey F
print "\r\n\x01c\x01hFind Text in File Descriptions (no wildcards)\r\n"
file_find_text
end_cmd
cmdkey /F
file_find_text_all
end_cmd
cmdkey A
file_show_directories
end_cmd
cmdkey /*
file_show_libraries
end_cmd
cmdkey J
file_select_area
end_cmd
cmdkey L
print "\r\n\x01c\x01hList Files\r\n"
getfilespec
if_true
file_list
end_if
end_cmd
cmdkey /L
nodelist_all
end_cmd
cmdkey W
nodelist_users
end_cmd
cmdkey M
cmd_pop
goto message
end_cmd
cmdkey N
print "\r\n\x01c\x01hNew File Scan\r\n"
file_new_scan
end_cmd
cmdkey /N
file_new_scan_all
end_cmd
cmdkey G
file_download_batch
if_true
end_cmd
end_if
logoff
end_cmd
cmdkey /G
file_download_batch
if_true
end_cmd
end_if
logoff_fast
end_cmd
cmdkey S
print "\r\n\x01c\x01hSearch for Filename(s)\r\n"
file_find_name
end_cmd
cmdkey /S
file_find_name_all
end_cmd
cmdkey /A
file_temp_section
end_cmd
cmdkey U
print "\r\n\x01c\x01hUpload File\r\n"
chkfile "%zmenu/upload.*"
if_true
menu upload
end_if
file_upload
end_cmd
cmdkey /U
file_upload_user
end_cmd
cmdkey V
print "\r\n\x01c\x01hView File(s)\r\n"
getfilespec
if_true
file_view
end_if
end_cmd
cmdkey P
file_ptrs_cfg
end_cmd
cmdkey Y
info_user
end_cmd
cmdkey Z
print "\r\n\x01c\x01hUpload File to Sysop\r\n"
file_upload_sysop
end_cmd
cmdkey #
print "\r\n\x01n\x01cEnter the number of the directory to change to.\r\n"
end_cmd
cmdkey /#
print "\r\n\x01n\x01cEnter the number of the library to change to.\r\n"
end_cmd
# fall through
print "\r\n\x01c\x01hUnrecognized command."
compare_ars expert
if_true
print " Hit '\x01i?\x01n\x01c\x01h' for a menu."
end_if
crlf
end_cmd
# shouldn't hit next line
print "Problem in command shell."
pause
hangup
############################### Message Section ###############################
:message
cmd_home
compare_ars expert
if_false
cls
menu renegade/message
end_if
# Update node status
node_action node_main
async
# Display main Prompt
print "\x01n\r\n\x01b\x01h[@GRP@ @SUB@]\r\n"
compare_ars exempt T
if_true
print "\x01b\x01hTime Used: [\x01c@TUSED@\x01b] "
else
print "\x01b\x01hTime Left: [\x01c@TLEFT@\x01b] "
end_if
print "\x01b\x01h(\x01c?\x01b=\x01cHelp\x01b)\r\nMessage Menu \x01m: \x01n"
# Get key (with / extended commands allowed)
compare_user_misc UM_COLDKEYS
if_false
getkeye
else
getstrupr 60
endif
# Do nothing for control keys and space
cmdkey ^@
end_cmd
cmdkey ^M
end_cmd
cmdkey ^S
end_cmd
cmdkey "
end_cmd
# Write command to log file
logkey_comma
# Hitting number changes current sub-board
cmdkey digit
compare_user_misc UM_COLDKEYS
if_false
ungetkey
end_if
msg_get_sub_num
end_cmd
# Hitting /number changes current group
cmdkey edigit
compare_user_misc UM_COLDKEYS
if_false
ungetkey
else
shift_str 1
end_if
msg_get_grp_num
end_cmd
# Show the key hit
compare_user_misc UM_COLDKEYS
if_false
printkey
endif
cmdkey ?
compare_ars expert
if_true
cls
menu renegade/message
end_if
end_cmd
cmdkey Q
cmd_pop
goto main
end_cmd
cmdkey [
msg_subboard_down
end_cmd
cmdkey ]
msg_subboard_up
end_cmd
compare_user_misc UM_COLDKEYS
if_false
crlf
end_if
pause_reset
cmdkey A
msg_show_subboards
end_cmd
cmdkey /A
msg_show_groups
end_cmd
cmdkey C
exec_bin chat_sec
end_cmd
cmdkey /L
nodelist_all
end_cmd
cmdkey W
nodelist_users
end_cmd
cmdkey N
msg_new_scan
end_cmd
cmdkey R
msg_read
end_cmd
cmdkey P
msg_post
end_cmd
cmdkey F
cmd_pop
goto file_transfers
end_cmd
cmdkey S
print "\r\n\x01c\x01hSearch for Text in Messages\r\n"
msg_find_text
end_cmd
cmdkey U
userlist_sub
end_cmd
cmdkey G
file_download_batch
if_true
end_cmd
end_if
logoff
end_cmd
cmdkey /G
file_download_batch
if_true
end_cmd
end_if
logoff_fast
end_cmd
cmdkey E
print "\x01_\r\n\x01b\x01hE-mail (User name or number): \x01w"
getname 40
compare_str ""
if_true
end_cmd
end_if
compare_str "SYSOP"
if_true
setstr "1"
end_if
mail_send
end_cmd
cmdkey J
msg_select_area
end_cmd
cmdkey Y
msg_your_scan
end_cmd
cmdkey Z
call main_cfg
end_cmd
cmdkey #
print "\r\n\x01n\x01cEnter the number of the sub-board to change to.\r\n"
end_cmd
cmdkey /#
print "\r\n\x01n\x01cEnter the number of the message group to change to.\r\n"
end_cmd
# fall through
print "\r\n\x01c\x01hUnrecognized command."
compare_ars expert
if_true
print " Hit '\x01i?\x01n\x01c\x01h' for a menu."
end_if
crlf
end_cmd
############################## Sysop Commands #################################
:sysop
cmd_home
menu sysmain
print "\x01n\r\n\x01c\x01hSelect an option (or Q to quit): \x01n"
getstrupr 40
cmdstr "Q"
cmd_pop
return
end_cmd
exec_bin "str_cmds %s"
end_cmd
############################ Main Info Section ###############################
:main_info
cmd_home
compare_ars expert
if_false
menu maininfo
end_if
async
print "\r\n\x01y\x01hInfo: \x01n"
getcmd ?QISVY\r
logkey
cmdkey ?
compare_ars expert
if_true
menu maininfo
end_if
end_cmd
cmdkey I
info_system
end_cmd
cmdkey S
info_subboard
end_cmd
cmdkey Y
info_user
end_cmd
cmdkey V
info_version
end_cmd
cmdkey Q
cmd_pop
return
end_cmd
cmd_pop
return