[konsole] [Bug 395689] New: konsole ignores .NET color change methods
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Thu Jun 21 10:55:37 UTC 2018
https://bugs.kde.org/show_bug.cgi?id=395689
Bug ID: 395689
Summary: konsole ignores .NET color change methods
Product: konsole
Version: unspecified
Platform: Archlinux Packages
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: font
Assignee: konsole-devel at kde.org
Reporter: egazz at protonmail.com
Target Milestone: ---
OVERVIEW
=========
I am writing a console application in C# using the .NET framework. This
includes two properties, Console.ForegroundColor and Console.BackgroundColor,
which set the output colors for the foreground and background, respectively.
However, konsole ignores them completely.
STEPS TO REPRODUCE
===================
Using System;
namespace test_program {
class Program {
static void Main(string[] args) {
Console.ForegroundColor = ConsoleColor.Red; // ConsoleColor is an
enum, where Red = 12
Console.WriteLine("this text should be red");
}
}
}
EXPECTED RESULTS
==================
The text in the WriteLine method outputs in red.
ACTUAL RESULTS
===============
The text output is in the default color for text (regardless of theme).
ADDITIONAL INFORMATION
=======================
Konsole version is 18.04.2
Plasma-shell version is 5.13.1
The example C# code above works as expected on other terminal emulators (have
tried it on xterm and urxvt). Konsole is in 256 color mode, and things like ls
--color=auto also work properly. So does escaping an ANSI code, e.g.:
> echo -e "\e[0;31mSome red text\e[0m"
Documentation
--------------
ForegroundColor:
https://msdn.microsoft.com/en-us/library/system.console.foregroundcolor.aspx
BackgroundColor:
https://msdn.microsoft.com/en-us/library/system.console.backgroundcolor.aspx
ConsoleColor (enum):
https://docs.microsoft.com/en-us/dotnet/api/system.consolecolor?view=netframework-4.7.1
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list