home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
COLRFIL2.MOD
< prev
next >
Wrap
Text File
|
1992-12-01
|
5KB
|
163 lines
Grim Reaper #1 @3511
04/15/90 at 1:39 pm <EST>
[Msg Status] Reply Wanted.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*****************************************************************************/
Multi COLOR File Type Listings (ADD ONS)
Version 2.0
By: The Grim Reaper - The Reaper's Domain
(305) 983-8533
300/1200/2400 Baud
WWIVnet @3511
Ok... What this mod does is add a TCS style header for MCFL Mod.
It makes the MCFL.MOD look better!! It also lines up the extended
description to line up with the MCFL Mod.
* NOTE: To put this mod in you must know how to block read! Unless you
want to type it all in letter by letter! This also give the directory's
Name in the Nscan, Search, and Find Desc.
/*****************************************************************************/
[ Step #1 ]
Load up xfer.c and delete the void printtitle(int *abort) and replace it
with this one!
void printtitle(int *abort)
{
char s[81],s1[20],s2[101];
int i,i1,fc;
fc=thisuser.sysstatus & sysstatus_funky_colors;
if (fc) {
nl();
nl();
print("7Area:1 %s",directories[udir[curdir].subnum].name,"");
nl();
pla2("3┌───────────┬───────┬─────────────────────────────────────┬───────────────────┐",abort); nl();
sprintf(s2,"3│ 1Filename3 │1 Size 3│ 1Description 3 │ 1Total Files:2 %3d 3 │",numf);
pla2(s2,abort); nl();
pla2("3└───────────┼───────┼─────────────────────────────────────┴───────────────────┘",abort); nl();
}
if (!fc) {
pla("",abort);
pla("",abort);
sprintf(s,"%s - #%s, %d files.",directories[udir[curdir].subnum].name,
udir[curdir].keys,numf);
i=strlen(s);
pla(s,abort);
if (!okansi()) {
for (i1=0; i1<i; i1++)
s[i1]='=';
}
if (okansi()) {
for (i1=0; i1<i; i1++)
s[i1]='═';
}
s[i]=0;
pla(s,abort);
pla("",abort);
}
}
[ Step #2 ]
Find the void listfiles() and delete it! Then replace it with this one also!
void listfiles()
{
char s[81];
int i,abort;
uploadsrec u;
dliscan();
file_mask(s);
abort=0;
num_listed=0;
printtitle(&abort);
for (i=1; (i<=numf) && (!abort) && (!hangup); i++) {
SETREC(i);
read(dlf,(void *)&u,sizeof(uploadsrec));
if (compare(s,u.filename))
printinfo(&u,&abort);
}
closedl();
if (!abort) {
if (thisuser.sysstatus & sysstatus_funky_colors) {
pl("3────────────┴───────┴──────────────────────────────────────────────────────────");
nl();
sprintf(s,"3[ 6Files listed:1 %d",num_listed);
outstr(s);
pl(" 3]");
} else {
nl();
sprintf(s,"[ Files listed: %d",num_listed);
outstr(s);
pl(" ]");
}
nl();
}
}
[ Step #3 ]
Go to the top of xfer.c and find
#define INDENTION 24
and change it to
#difine INDENTION 20
[ Step #4 ]
OK... Last Step!! Go down till you find "print_extended(blah blah!)
and delete that void and replace it with this one!
void print_extended(char *fn, int *abort, unsigned char numlist, int indent)
{
char *ss;
int next=0;
unsigned char numl=0;
int cpos=0;
char ch,s[81];
int i;
ss=read_extended_description(fn);
if (ss) {
ch=10;
while ((ss[cpos]) && (!(*abort)) && (numl<numlist)) {
if ((ch==10) && (indent)) {
if ((thisuser.sysstatus & sysstatus_funky_colors) && (okansi()))
sprintf(s,"\x1b[%dC3│2",INDENTION);
else {
for (i=0; i<INDENTION; i++)
s[i]=32;
s[INDENTION]=0;
}
osan(s,abort,&next);
}
outchr(ch=ss[cpos++]);
checka(abort,&next);
if (ch==10)
++numl;
else
if ((ch!=13) && (wherex()>=78)) {
osan("\r\n",abort,&next);
ch=10;
}
}
if (wherex())
nl();
}
farfree(ss);
}
/****************************************************************************/
OK... Thats all... Just Press F2, to save and press F9, to compile!!
If you have any problems or ideas please email me 1@3511, If you like
this mod call my BBS or email about it!!
/***************************************************************************/