Search notes:

Powershell module: console: get-textInConsoleXColor

$W = get-textInConsoleWarningColor 'warning'
$E = get-textInConsoleErrorColor   'error'

"text $W text $E text"
"This is $(get-textInConsoleWarningColor bar) and this is $(get-textInConsoleErrorColor 'really bad').

TODO

The functionality of get-textInConsole…Color might also be implemented using something like
write-host ( "This is the $( (Get-PSReadLineOption).ErrorColor)error color$([char] 0x1b)[0m.")
write-host ( "This is the $( (Get-PSReadLineOption).EmphasisColor)emphasis color$([char] 0x1b)[0m.")
…

See also

PowerShell module console

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1759398032, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/modules/personal/console/get-textInConsoleXColor/index(49): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78