mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2024-11-16 16:15:58 +01:00
Merge pull request #11 from LucaLumetti/main
Reset terminal color when using fancy outputting
This commit is contained in:
commit
06be1c9348
1 changed files with 3 additions and 3 deletions
|
@ -143,7 +143,7 @@ void Events::handlePointerButton(void *data, struct wl_pointer *wl_pointer, uint
|
||||||
};
|
};
|
||||||
|
|
||||||
if (g_pHyprpicker->m_bFancyOutput)
|
if (g_pHyprpicker->m_bFancyOutput)
|
||||||
Debug::log(NONE, "\033[38;2;%i;%i;%im #%s%s%s", COL.r, COL.g, COL.b, toHex(COL.r).c_str(), toHex(COL.g).c_str(), toHex(COL.b).c_str());
|
Debug::log(NONE, "\033[38;2;%i;%i;%im #%s%s%s\033[0m", COL.r, COL.g, COL.b, toHex(COL.r).c_str(), toHex(COL.g).c_str(), toHex(COL.b).c_str());
|
||||||
else
|
else
|
||||||
Debug::log(NONE, "#%s%s%s", toHex(COL.r).c_str(), toHex(COL.g).c_str(), toHex(COL.b).c_str());
|
Debug::log(NONE, "#%s%s%s", toHex(COL.r).c_str(), toHex(COL.g).c_str(), toHex(COL.b).c_str());
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ void Events::handlePointerButton(void *data, struct wl_pointer *wl_pointer, uint
|
||||||
case OUTPUT_RGB:
|
case OUTPUT_RGB:
|
||||||
{
|
{
|
||||||
if (g_pHyprpicker->m_bFancyOutput)
|
if (g_pHyprpicker->m_bFancyOutput)
|
||||||
Debug::log(NONE, "\033[38;2;%i;%i;%im %i %i %i", COL.r, COL.g, COL.b, COL.r, COL.g, COL.b);
|
Debug::log(NONE, "\033[38;2;%i;%i;%im %i %i %i\033[0m", COL.r, COL.g, COL.b, COL.r, COL.g, COL.b);
|
||||||
else
|
else
|
||||||
Debug::log(NONE, "%i %i %i", COL.r, COL.g, COL.b);
|
Debug::log(NONE, "%i %i %i", COL.r, COL.g, COL.b);
|
||||||
break;
|
break;
|
||||||
|
@ -204,4 +204,4 @@ void Events::handleSCReady(void *data, struct zwlr_screencopy_frame_v1 *frame, u
|
||||||
void Events::handleSCFailed(void *data, struct zwlr_screencopy_frame_v1 *frame) {
|
void Events::handleSCFailed(void *data, struct zwlr_screencopy_frame_v1 *frame) {
|
||||||
Debug::log(CRIT, "Failed to get a Screencopy!");
|
Debug::log(CRIT, "Failed to get a Screencopy!");
|
||||||
g_pHyprpicker->finish(1);
|
g_pHyprpicker->finish(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue