Thumbnail

rani/cscroll.git

Clone URL: https://git.buni.party/rani/cscroll.git

commit 4825fce72e12b9c7f9acf1d1b86d0956e22d20ac Author: Raniconduh <clagv.randomgames@gmail.com> Date: Mon Jun 27 16:56:08 2022 +0000 dim - and . in mode string diff --git a/src/io.c b/src/io.c index 0aea581..1932c76 100644 --- a/src/io.c +++ b/src/io.c @@ -22311 +22316 @@ void print_mode(struct dir_entry_t * f) {     char * mode = mode_to_s(f);   for (char * c = mode; *c; c++) { + bool dim = false; +   int cp = m_colors[(int)*c];   if (!cp) cp = WHITE; - attron(COLOR_PAIR(cp)); + if (cp == WHITE) dim = true; + cp = COLOR_PAIR(cp); + if (dim) cp |= A_DIM; + attron(cp);   addch(*c); - attroff(COLOR_PAIR(cp)); + attroff(cp);   }   free(mode);  }