mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-29 17:28:01 +01:00
@@ -549,6 +549,8 @@ static class Demo {
|
||||
public static Action running = MainApp;
|
||||
static void Main ()
|
||||
{
|
||||
Console.OutputEncoding = System.Text.Encoding.Default;
|
||||
|
||||
while (running != null) {
|
||||
running.Invoke ();
|
||||
}
|
||||
|
||||
@@ -571,14 +571,11 @@ namespace Terminal.Gui {
|
||||
} else if (c >= 0x80 && c <= 0x9F) {
|
||||
// C1 control characters (https://www.aivosto.com/articles/control-characters.html#c1)
|
||||
return new Rune (0x25a1); // U+25A1, WHITE SQUARE, □:
|
||||
} else if (Rune.ColumnWidth (c) > 1) {
|
||||
// BUGBUG: Until we figure out how to fix #41. Note this still doesn't help when
|
||||
// an Emoji or other char doesn't represent it's width correctly
|
||||
return new Rune (0x25a1); // U+25A1, WHITE SQUARE, □:
|
||||
} else {
|
||||
return c;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds the specified
|
||||
/// </summary>
|
||||
|
||||
@@ -64,6 +64,8 @@ namespace UICatalog {
|
||||
|
||||
static void Main (string [] args)
|
||||
{
|
||||
Console.OutputEncoding = Encoding.Default;
|
||||
|
||||
if (Debugger.IsAttached)
|
||||
CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.GetCultureInfo ("en-US");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user