mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Colors
This commit is contained in:
parent
9b1930588f
commit
b59a22bef0
1 changed files with 11 additions and 0 deletions
11
screen.h
11
screen.h
|
@ -19,7 +19,18 @@ struct line_entry_t
|
||||||
wchar_t text;
|
wchar_t text;
|
||||||
int color;
|
int color;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class rgb_color_t {
|
||||||
|
unsigned char rgb[3];
|
||||||
|
public:
|
||||||
|
|
||||||
|
rgb_color_t(unsigned char r, unsigned char g, unsigned char b)
|
||||||
|
{
|
||||||
|
rgb[0] = r;
|
||||||
|
rgb[1] = g;
|
||||||
|
rgb[2] = b;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
A class representing a single line of a screen.
|
A class representing a single line of a screen.
|
||||||
|
|
Loading…
Reference in a new issue