|
Lines 91-97
Link Here
|
| 91 |
void |
91 |
void |
| 92 |
printscol(dp) |
92 |
printscol(dp) |
| 93 |
DISPLAY *dp; |
93 |
DISPLAY *dp; |
| 94 |
@@ -124,10 +144,14 @@ |
94 |
@@ -124,8 +144,12 @@ |
| 95 |
printtime(sp->st_ctime); |
95 |
printtime(sp->st_ctime); |
| 96 |
else |
96 |
else |
| 97 |
printtime(sp->st_mtime); |
97 |
printtime(sp->st_mtime); |
|
Lines 99-111
Link Here
|
| 99 |
+ (void)colortype(sp->st_mode); |
99 |
+ (void)colortype(sp->st_mode); |
| 100 |
if (f_octal || f_octal_escape) (void)prn_octal(p->fts_name); |
100 |
if (f_octal || f_octal_escape) (void)prn_octal(p->fts_name); |
| 101 |
else (void)printf("%s", p->fts_name); |
101 |
else (void)printf("%s", p->fts_name); |
| 102 |
if (f_type) |
|
|
| 103 |
(void)printtype(sp->st_mode); |
| 104 |
+ if (f_color) |
102 |
+ if (f_color) |
| 105 |
+ (void)printf("\033[m"); |
103 |
+ (void)printf("\033[m"); |
|
|
104 |
if (f_type) |
| 105 |
(void)printtype(sp->st_mode); |
| 106 |
if (S_ISLNK(sp->st_mode)) |
106 |
if (S_ISLNK(sp->st_mode)) |
| 107 |
printlink(p); |
|
|
| 108 |
(void)putchar('\n'); |
| 109 |
@@ -191,10 +215,22 @@ |
107 |
@@ -191,10 +215,22 @@ |
| 110 |
dp->s_block); |
108 |
dp->s_block); |
| 111 |
if ((base += numrows) >= num) |
109 |
if ((base += numrows) >= num) |