commit 4170e1243892ddd4feec99417a1a52f1fedf08c1
parent 5db190002b9d2de4403d5f003141539f8b2f10a9
Author: Pavel Renev <an2qzavok@gmail.com>
Date: Mon, 28 Feb 2022 21:37:32 +0000
Dir: no clear screen, but clear font and link
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/extra/Dir.c b/extra/Dir.c
@@ -25,11 +25,14 @@ main(int argc, char **argv)
if (dp->mode & DMDIR) {
char *rpath = smprint("%s/text", rroot);
- tfd = open(rpath , OWRITE | OTRUNC);
+ tfd = open(rpath , OWRITE);
if (tfd < 0) sysfatal("can't open %s: %r", rpath);
dbuf = mallocz(DIRMAX, 1);
n = dirreadall(fd, &dbuf);
+
+ fprint(tfd, "l\nf\n");
+
for (i = 0; i < n; i++) {
char *spacer = "";
if (dbuf[i].mode & DMEXEC) spacer = "*";