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:
Mario Fetka
2026-05-24 15:51:38 +02:00
parent f940d2d88e
commit fc97eb8d25
5 changed files with 304 additions and 42 deletions

View File

@@ -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;
}