Alexander A. Klimov
7e534da55b
Console::SetWindowsConsoleColor(): link to bitmask docs
2025-04-29 11:14:38 +02:00
Alexander A. Klimov
e007651a32
Console::SetWindowsConsoleColor(): preserve all kinds of character attributes not explicitly set
...
just like on *nix. Unlike the latter on Windows one can only override the
whole bitmask at once. So we have to forward all non-overridden kinds of
bits form current to desired state ourselves.
2025-04-29 11:14:38 +02:00
Alexander A. Klimov
3687c94e60
Console::SetWindowsConsoleColor(): correct behavior on Console_Normal
...
Capture initial character attributes, which don't have to be white text
on black, and set them. They may be also e.g. black text on red.
2025-04-29 11:14:38 +02:00
Alexander A. Klimov
a2c094cf1c
Make Console::SetWindowsConsoleColor() control flow more obvious
...
and more like Console::PrintVT100ColorCode().
Doesn't change anything (ex. readability) as equality to Console_Normal (0)
implies that all conditions now transferred into the else{} are false.
2025-04-29 11:14:38 +02:00
Michael Friedrich
d14a88235d
Replace Copyright header with a short version, part I
...
CLion -> replace in path
2019-02-25 14:48:22 +01:00
Michael Friedrich
dab53448bc
icinga.com: Update *.{h,c}pp
2018-10-18 09:27:04 +02:00
Gunnar Beutner
ac155d1dda
Apply clang-tidy fix 'modernize-redundant-void-arg'
2018-01-04 12:24:57 +01:00
Michael Insel
158ae2188e
Change copyright header for 2018
2018-01-02 12:08:55 +01:00
Gunnar Beutner
ff0b6ba630
Fix build problems with Visual Studio 2017
2017-12-14 08:55:36 +01:00
Gunnar Beutner
ebc11d41a5
Tidy up INITIALIZE_ONCE use in console.cpp a bit
2017-11-30 17:47:09 +01:00
Michael Friedrich
b7caf0820d
Ensure that *.icinga.com is used everywhere
...
fixes #13897
fixes #13277
2017-01-10 17:19:12 +01:00
Gunnar Beutner
ef50c57ed0
Make VS 2013 happy
...
refs #12555
2016-08-27 20:07:48 +02:00
Gunnar Beutner
b5b09216c6
Use lambda functions for INITIALIZE_ONCE
...
fixes #12562
2016-08-27 09:48:36 +02:00
Gunnar Beutner
599929b0f6
Update copyright headers for 2016
2016-01-12 08:29:59 +01:00
Gunnar Beutner
37736caa5c
Implement support for libedit
...
fixes #8776
2015-03-17 15:05:47 +01:00
Michael Friedrich
78bfd0204c
Update copyright year
2015-01-22 12:00:23 +01:00
Gunnar Beutner
d82defe6a9
Add readline support for the "repl" command
...
fixes #8091
2014-12-16 13:26:26 +01:00
Michael Friedrich
b0d7d8dabc
Build fix for RHEL
2014-10-19 00:15:42 +02:00
Gunnar Beutner
29bf22f324
Fix: Don't use VT100 color codes in log files
...
refs #7396
2014-10-18 00:34:15 +02:00
Gunnar Beutner
8cc6368954
Implement generic color support for terminals
...
fixes #7396
2014-10-17 20:44:17 +02:00