home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
COMNDISP.MOD
< prev
next >
Wrap
Text File
|
1990-06-17
|
6KB
|
155 lines
Tetrad #2 @9964
Mon Jun 11 16:10:16 1990
/* TETRAD3.MOD */
Description: What this mod does is print out exactly what a command does
when a user hits a key. Like this:
[1] [The Excelsior]: Auto-Message
Original: This mod was originally done by Lt. Hytiek, but it wasn't exactly
what I was looking for. If you have any
comments pleased drop him a line as well as me.
-----------------------------------------------------------------------------
Step #1
Backup your files.
-----------------------------------------------------------------------------
Step #2 [BBSUTL.C]
Delete the entire 'char **mmkey(int dl)' function in BBSUTL.C and replace
it with the following:
char *mmkey(int dl)
{
static unsigned char cmd1[10],cmd2[81],ch;
int i,i1,i2,p;
do {
do {
ch=getkey();
} while ((((ch<' ') && (ch!=13)) || (ch>126)) && (hangup==0));
ch=upcase(ch);
outchr(ch);
if (ch==13)
cmd1[0]=0;
else
cmd1[0]=ch;
cmd1[1]=0;
p=0;
switch(dl) {
case 1: /* Transfer Section */
if (strchr(dcd,ch)!=NULL)
p=1;
if (ch=='?')print("\b 4 Help","");
if (ch=='*')print("\b 4 List Directories ","");
if (ch=='A')print("\b 4 ARC Listing of File ","");
if (ch=='B')print("\b 4 Batch d'load Commands ","");
if (ch=='C')print("\b 4 Chat with SysOp ","");
if (ch=='D')print("\b 4 Download a File ","");
if (ch=='E')print("\b 4 Extract a File ","");
if (ch=='F')print("\b 4 Find a File ","");
if (ch=='G')print("\b 4 ARC Commands ","");
if (ch=='I')print("\b 4 Information ","");
if (ch=='L')print("\b 4 List Files ","");
if (ch=='M')print("\b 4 Move a File ","");
if (ch=='N')print("\b 4 New Scan ","");
if (ch=='O')print("\b 4 Log Off ","");
if (ch=='P')print("\b 4 Set N-Scan Date ","");
if (ch=='Q')print("\b 4 Quit to Main Menu ","");
if (ch=='R')print("\b 4 Remove a File ","");
if (ch=='S')print("\b 4 Search For File ","");
if (ch=='T')print("\b 4 Transfer Defaults ","");
if (ch=='U')print("\b 4 Upload a File ","");
if (ch=='V')print("\b 4 View a File ","");
if (ch=='X')print("\b 4 Batch Download ","");
if (ch=='Z')print("\b 4 Upload to SysOp ","");
if ((ch=='>') || (ch=='+'))print("\b 4 Up 1 Directory ","");
if ((ch=='<') || (ch=='-'))print("\b 4 Down 1 Directory ","");
break;
case 2:
if (strchr(dc,ch)!=NULL)
p=1;
break;
case 0: /* Main Menu */
if (strchr(dc,ch)!=NULL)
p=1;
if ((ch=='>') || (ch=='+'))print("\b 4 Up 1 Sub ","");
if ((ch=='<') || (ch=='-'))print("\b 4 Down 1 Sub ","");
if (ch=='*')print("\b 4 List Subs ","");
if (ch=='?')print("\b 4 Help ","");
if (ch=='.')print("\b 4 Online Games ","");
if (ch=='A')print("\b 4 Auto-Message ","");
if (ch=='B')print("\b 4 BBS List ","");
if (ch=='C')print("\b 4 Chat with SysOp ","");
if (ch=='D')print("\b 4 Defaults ","");
if (ch=='E')print("\b 4 E-Mail a User ","");
if (ch=='F')print("\b 4 Feedback to SysOp ","");
if (ch=='G')print("\b 4 Text Files ","");
if (ch=='I')print("\b 4 Information ","");
if (ch=='K')print("\b 4 Kill old Email ","");
if (ch=='L')print("\b 4 Log of Callers ","");
if (ch=='M')print("\b 4 Mail Read ","");
if (ch=='N')print("\b 4 New Scan ","");
if (ch=='O')print("\b 4 Log Off ","");
if (ch=='P')print("\b 4 Post a Message ","");
if (ch=='Q')print("\b 4 Q-Scan Current Sub ","");
if (ch=='R')print("\b 4 Remove a Post ","");
if (ch=='S')print("\b 4 Scan Sub ","");
if (ch=='T')print("\b 4 Transfer Section ","");
if (ch=='U')print("\b 4 List Users ","");
if (ch=='V')print("\b 4 Voting Section ","");
if (ch=='X')print("\b 4 Expert/Novice Toggle ","");
if (ch=='Y')print("\b 4 Your Information ","");
if (ch=='Z')print("\b 4 Express N-Scan ","");
break;
}
if (p) {
do {
ch=getkey();
} while ((((ch<' ') && (ch!=13) && (ch!=8)) || (ch>126)) && (hangup==0));
ch=upcase(ch);
if (ch==13) {
nl();
return(cmd1);
} else
if (ch==8) {
backspace();
} else {
cmd1[1]=ch;
cmd1[2]=0;
outchr(ch);
if (ch=='/') {
input(cmd2,50);
return(cmd2);
} else
nl();
return(cmd1);
}
} else {
nl();
return(cmd1);
}
} while (hangup==0);
cmd1[0]=0;
return(cmd1);
}
-----------------------------------------------------------------------------
Step #3
Recompile.. and update your menus about the changes you made.
-----------------------------------------------------------------------------
As always, if you find a problem or just have a question you can contact
me by calling my board:
The Excelsior 70+ WWIV On-Line games available for d'load
919-746-2858 Auto-Validation Of WWIV SysOps
WWIVnet node @9973 3/1200 bps (soon to be 2400/MNP)
or.. send WWIVnet mail to 1@9973
-----------------------------------------------------------------------------