mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-25 23:21:15 -03:00
First stab at builtin set_color. Moved set_color.cpp to builtin_set_color.cpp and taught fish about it.
This commit is contained in:
@@ -146,7 +146,7 @@ void output_set_supports_term256(bool val)
|
||||
support_term256 = val;
|
||||
}
|
||||
|
||||
static unsigned char index_for_color(rgb_color_t c)
|
||||
unsigned char index_for_color(rgb_color_t c)
|
||||
{
|
||||
if (c.is_named() || ! output_get_supports_term256())
|
||||
{
|
||||
@@ -192,7 +192,7 @@ static bool write_color(char *todo, unsigned char idx, bool is_fg)
|
||||
return result;
|
||||
}
|
||||
|
||||
static bool write_foreground_color(unsigned char idx)
|
||||
bool write_foreground_color(unsigned char idx)
|
||||
{
|
||||
if (set_a_foreground && set_a_foreground[0])
|
||||
{
|
||||
@@ -208,7 +208,7 @@ static bool write_foreground_color(unsigned char idx)
|
||||
}
|
||||
}
|
||||
|
||||
static bool write_background_color(unsigned char idx)
|
||||
bool write_background_color(unsigned char idx)
|
||||
{
|
||||
if (set_a_background && set_a_background[0])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user