[ prog / sol / mona ]

prog


Black and white terminal colorscheme

1 2022-08-29 08:22

My laptop screen is kinda broken and the bottom pixels are lightly duplicated all over the screen. It is still usable with light mode. I want a disable color in my terminal to improve contrast. How do I make my terminal just black and white. No other color. I'm using suckless term and gruvbox colorscheme rn.

2 2022-08-29 10:46

Welcome to the club. Several fronts to work on:

1.

https://no-color.org/

This disables colors in some cooperating applications.

2.

export TERM=ansi

This disables a lot of fancy terminal thingies in many more applications (ncurses and friends), and is in line with what I imagine to be the suckless aesthetic.

3.
Manually go and set up your terminal color scheme to use only 2 colors

3 2022-08-29 15:50

>>2
Thanks a lot anon
I did the third approach
Heres the config for anyone who wants to do the same

static const char *colorname[] = {
  [0] = "#ffffff", /* hard contrast: #f9f5d7 / soft contrast: #f2e5bc */
  [1] = "#000000", /* red     */
  [2] = "#000000", /* green   */
  [3] = "#000000", /* yellow  */
  [4] = "#000000", /* blue    */
  [5] = "#000000", /* magenta */
  [6] = "#000000", /* cyan    */
  [7] = "#000000", /* white   */
  [8]  = "#000000", /* black   */
  [9]  = "#000000", /* red     */
  [10] = "#000000", /* green   */
  [11] = "#000000", /* yellow  */
  [12] = "#000000", /* blue    */
  [13] = "#000000", /* magenta */
  [14] = "#000000", /* cyan    */
  [15] = "#000000", /* white   */
};
unsigned int defaultfg = 15;
unsigned int defaultbg = 0;
unsigned int defaultcs = 15;
static unsigned int defaultrcs = 257;
4 2022-08-31 15:55

>>2
I've come to use TERM=dumb as an even more radical alternative to TERM=ansi.

5 2022-08-31 21:16

>>5
This is pretty comfy

6


VIP:

do not edit these