dosutils: add Novell-style paging to FLAG tools and SLIST
- add a shared DOS pager helper for long tool output - page FLAG wildcard output with the Novell continue prompt - fix FLAGDIR current-directory handling for "." and volume root - add FLAGDIR wildcard directory listing support - page FLAGDIR wildcard output like Novell FLAGDIR - keep FLAGDIR display formatting aligned with Novell output - make SLIST /CONTINUE enable continuous output - keep SLIST bindery scanning compatible with ncpfs behavior - preserve SLIST NET_ADDRESS display and default server marking
This commit is contained in:
4
slist.c
4
slist.c
@@ -55,6 +55,8 @@ int func_slist(int argc, char *argv[], int mode)
|
||||
int found = 0;
|
||||
int result;
|
||||
int i;
|
||||
int continuous = 0;
|
||||
int line_count = 0;
|
||||
|
||||
(void)mode;
|
||||
|
||||
@@ -66,6 +68,7 @@ int func_slist(int argc, char *argv[], int mode)
|
||||
if (argv[i][0] == '/' || argv[i][0] == '-') {
|
||||
if (same_arg(argv[i], "/C") || same_arg(argv[i], "/CONTINUE") ||
|
||||
same_arg(argv[i], "-C") || same_arg(argv[i], "-CONTINUE")) {
|
||||
continuous = 1;
|
||||
continue;
|
||||
}
|
||||
return(usage());
|
||||
@@ -101,6 +104,7 @@ int func_slist(int argc, char *argv[], int mode)
|
||||
}
|
||||
|
||||
fprintf(stdout, "\n");
|
||||
tool_page_line(&line_count, &continuous);
|
||||
|
||||
if (last_id == MAX_U32) break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user