The filelist now displays long filenames
This commit is contained in:
@@ -1675,16 +1675,19 @@ void EditTaglist()
|
||||
}
|
||||
|
||||
temp = calloc(81, sizeof(char));
|
||||
if (utf8)
|
||||
chartran_init((char *)"CP437", (char *)"UTF-8", 'B');
|
||||
|
||||
while (TRUE) {
|
||||
clear();
|
||||
fseek(tf, 0, SEEK_SET);
|
||||
Count = 0;
|
||||
/* # Area Active File Size Cost */
|
||||
/* # Area Active Size Cost File */
|
||||
/* 123 12345 123456 12345678 12345 */
|
||||
pout(CFG.HiliteF, CFG.HiliteB, (char *) Language(355));
|
||||
Enter(1);
|
||||
colour(LIGHTGREEN, BLACK);
|
||||
fLine(48);
|
||||
PUTSTR(chartran(fLine_str(79)));
|
||||
|
||||
while ((fread(&Tag, sizeof(Tag), 1, tf) == 1)) {
|
||||
Count++;
|
||||
@@ -1698,33 +1701,34 @@ void EditTaglist()
|
||||
pout(Fg, BLACK, temp);
|
||||
|
||||
Fg--;
|
||||
snprintf(temp, 81, "%5d ", Tag.Area);
|
||||
snprintf(temp, 81, "%5d ", Tag.Area);
|
||||
pout(Fg, BLACK, temp);
|
||||
|
||||
Fg--;
|
||||
if (Tag.Active)
|
||||
/* Yes */
|
||||
snprintf(temp, 81, "%-6s ", (char *) Language(356));
|
||||
snprintf(temp, 81, "%-6s ", (char *) Language(356));
|
||||
else
|
||||
/* No */
|
||||
snprintf(temp, 81, "%-6s ", (char *) Language(357));
|
||||
snprintf(temp, 81, "%-6s ", (char *) Language(357));
|
||||
pout(Fg, BLACK, temp);
|
||||
|
||||
Fg--;
|
||||
snprintf(temp, 81, "%-12s", Tag.SFile);
|
||||
snprintf(temp, 81, "%8d ", (int)(Tag.Size));
|
||||
pout(Fg, BLACK, temp);
|
||||
|
||||
Fg--;
|
||||
snprintf(temp, 81, " %8d", (int)(Tag.Size));
|
||||
snprintf(temp, 81, "%5d ", Tag.Cost);
|
||||
pout(Fg, BLACK, temp);
|
||||
|
||||
Fg--;
|
||||
snprintf(temp, 81, " %5d", Tag.Cost);
|
||||
snprintf(temp, 81, "%s", Tag.LFile);
|
||||
pout(Fg, BLACK, temp);
|
||||
|
||||
Enter(1);
|
||||
}
|
||||
colour(LIGHTGREEN, BLACK);
|
||||
fLine(48);
|
||||
PUTSTR(chartran(fLine_str(79)));
|
||||
|
||||
/* (T)oggle active, (E)rase all, (ENTER) to continue: */
|
||||
pout(WHITE, RED, (char *) Language(358));
|
||||
@@ -1756,6 +1760,8 @@ void EditTaglist()
|
||||
}
|
||||
}
|
||||
|
||||
chartran_close();
|
||||
|
||||
if (i == Keystroke(358, 1)) {
|
||||
fclose(tf);
|
||||
unlink("taglist");
|
||||
|
@@ -312,7 +312,7 @@ int iLC(int Lines)
|
||||
iLineCount += Lines;
|
||||
|
||||
if ((iLineCount >= rows) && (iLineCount < 1000)) {
|
||||
iLineCount = 0;
|
||||
iLineCount = 1;
|
||||
|
||||
while (TRUE) {
|
||||
/* More (Y/n/=) M=Mark */
|
||||
@@ -359,23 +359,38 @@ int ShowOneFile()
|
||||
snprintf(temp, 81, " %02d ", Tagnr);
|
||||
pout(LIGHTGRAY, BLACK, temp);
|
||||
|
||||
snprintf(temp, 81, "%-12s", fdb.Name);
|
||||
pout(CFG.FilenameF, CFG.FilenameB, temp);
|
||||
|
||||
snprintf(temp, 81, "%10u ", (int)(fdb.Size));
|
||||
pout(CFG.FilesizeF, CFG.FilesizeB, temp);
|
||||
|
||||
snprintf(temp, 81, "%-10s ", StrDateDMY(fdb.UploadDate));
|
||||
pout(CFG.FiledateF, CFG.FiledateB, temp);
|
||||
|
||||
snprintf(temp, 81, "[%4d] ", fdb.TimesDL);
|
||||
pout(LIGHTRED, BLACK, temp);
|
||||
|
||||
if ((strcmp(fdb.Uploader, "")) == 0)
|
||||
strcpy(fdb.Uploader, "SysOp");
|
||||
snprintf(temp, 81, "%s", fdb.LName);
|
||||
pout(CFG.FilenameF, CFG.FilenameB, temp);
|
||||
Enter(1);
|
||||
if (iLC(1) == 1)
|
||||
return 1;
|
||||
|
||||
snprintf(temp, 81, "%s%s", (char *) Language(238), fdb.Uploader);
|
||||
pout(CFG.HiliteF, CFG.HiliteB, temp);
|
||||
snprintf(temp, 81, " %-10s ", StrDateDMY(fdb.UploadDate));
|
||||
pout(CFG.FiledateF, CFG.FiledateB, temp);
|
||||
|
||||
snprintf(temp, 81, "%10u bytes ", (int)(fdb.Size));
|
||||
pout(CFG.FilesizeF, CFG.FilesizeB, temp);
|
||||
|
||||
// snprintf(temp, 81, "%-12s", fdb.Name);
|
||||
// pout(CFG.FilenameF, CFG.FilenameB, temp);
|
||||
|
||||
// snprintf(temp, 81, "%10u ", (int)(fdb.Size));
|
||||
// pout(CFG.FilesizeF, CFG.FilesizeB, temp);
|
||||
|
||||
// snprintf(temp, 81, "%-10s ", StrDateDMY(fdb.UploadDate));
|
||||
// pout(CFG.FiledateF, CFG.FiledateB, temp);
|
||||
|
||||
// snprintf(temp, 81, "[%4d] ", fdb.TimesDL);
|
||||
// pout(LIGHTRED, BLACK, temp);
|
||||
|
||||
// if ((strcmp(fdb.Uploader, "")) == 0)
|
||||
// strcpy(fdb.Uploader, "SysOp");
|
||||
|
||||
// snprintf(temp, 81, "%s%s", (char *) Language(238), fdb.Uploader);
|
||||
// pout(CFG.HiliteF, CFG.HiliteB, temp);
|
||||
Enter(1);
|
||||
|
||||
if (iLC(1) == 1)
|
||||
|
@@ -700,7 +700,10 @@ void OLR_SyncTags()
|
||||
|
||||
if (Changed) {
|
||||
colour(LIGHTGREEN, BLACK);
|
||||
if (utf8)
|
||||
chartran_init((char *)"CP437", (char *)"UTF-8", 'B');
|
||||
fLine(79);
|
||||
chartran_close();
|
||||
Pause();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user