mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
* Fixes #4196. Application.Begin doesn't refresh the screen at start * Fixes #4198. Application.Invoke isn't wakeup the driver if idle * Reformatting to run CI again * Revert "Reformatting to run CI again" This reverts commitef639c1e64. * Trying fix an issue where sometimes subview variable is null running unit tests * Replace ExtendedCharInfo.Char with char array * Replace IsWindowsTerminal with IsVirtualTerminal * Add a lastSize parameter to process resize automatically * Handling surrogate pairs in input * Implement SetConsoleTextAttribute * Prevent select true color is not supported * Fix null exception * Revert GetWindowSize and add SetWindowSize * Fix unit tests * Revert all v2 changes except the one related with the ExtendedCharInfo * Revert newlines and FakeOutput * Prevents null reference * Add gnome-terminal to launch settings * Fixes issue on restore window size after maximize causing width shrinking * Add ; exec bash to stay in terminal * Fixes issue on restore window size after maximize causing width shrinking * Tidying up input and output console modes * Fixes uninitialized screen buffer. * Revert "Fixes issue on restore window size after maximize causing width shrinking" This reverts commite5edad79f6. * Reset console after sending escape sequences * Remove unnecessary code only for buggy VSDebugConsole * Fix more annoying exceptions * Ensure flush the input buffer before reset the console * Remove unnecessary ENABLE_VIRTUAL_TERMINAL_INPUT * Remove unnecessary error handles * Fix CI warnings * Fix more CI warnings * Fix more CI warnings * Fixes #2796. CursesDriver doesn't render wide codepoints correctly --------- Co-authored-by: Tig <tig@users.noreply.github.com>
This commit is contained in:
@@ -48,6 +48,30 @@
|
||||
"commandLineArgs": "dotnet UICatalog.dll --driver v2net",
|
||||
"distributionName": ""
|
||||
},
|
||||
"WSL-Gnome: UICatalog": {
|
||||
"commandName": "Executable",
|
||||
"executablePath": "wsl",
|
||||
"commandLineArgs": "bash -c 'while [ ! -e \"$XDG_RUNTIME_DIR/bus\" ]; do sleep 0.1; done; gnome-terminal --wait -- bash -l -c \"dotnet UICatalog.dll; exec bash\"'",
|
||||
"distributionName": ""
|
||||
},
|
||||
"WSL-Gnome: UICatalog --driver NetDriver": {
|
||||
"commandName": "Executable",
|
||||
"executablePath": "wsl",
|
||||
"commandLineArgs": "bash -c 'while [ ! -e \"$XDG_RUNTIME_DIR/bus\" ]; do sleep 0.1; done; gnome-terminal --wait -- bash -l -c \"dotnet UICatalog.dll --driver NetDriver; exec bash\"'",
|
||||
"distributionName": ""
|
||||
},
|
||||
"WSL-Gnome: UICatalog --driver v2": {
|
||||
"commandName": "Executable",
|
||||
"executablePath": "wsl",
|
||||
"commandLineArgs": "bash -c 'while [ ! -e \"$XDG_RUNTIME_DIR/bus\" ]; do sleep 0.1; done; gnome-terminal --wait -- bash -l -c \"dotnet UICatalog.dll --driver v2; exec bash\"'",
|
||||
"distributionName": ""
|
||||
},
|
||||
"WSL-Gnome: UICatalog --driver v2net": {
|
||||
"commandName": "Executable",
|
||||
"executablePath": "wsl",
|
||||
"commandLineArgs": "bash -c 'while [ ! -e \"$XDG_RUNTIME_DIR/bus\" ]; do sleep 0.1; done; gnome-terminal --wait -- bash -l -c \"dotnet UICatalog.dll --driver v2net; exec bash\"'",
|
||||
"distributionName": ""
|
||||
},
|
||||
"Benchmark All": {
|
||||
"commandName": "Project",
|
||||
"commandLineArgs": "--benchmark"
|
||||
|
||||
@@ -252,7 +252,7 @@ internal class NumericUpDownEditor<T> : View where T : notnull
|
||||
{
|
||||
X = Pos.Center (),
|
||||
Y = Pos.Bottom (_increment) + 1,
|
||||
Increment = NumericUpDown<int>.TryConvert (1, out T? increment) ? increment : default,
|
||||
Increment = NumericUpDown<int>.TryConvert (1, out T? increment) ? increment : default (T?),
|
||||
};
|
||||
|
||||
_numericUpDown.ValueChanged += NumericUpDownOnValueChanged;
|
||||
|
||||
@@ -166,13 +166,23 @@ public class UICatalogTop : Toplevel
|
||||
CheckedState = Application.Force16Colors ? CheckState.Checked : CheckState.UnChecked
|
||||
};
|
||||
|
||||
_force16ColorsMenuItemCb.CheckedStateChanged += (sender, args) =>
|
||||
{
|
||||
Application.Force16Colors = args.Value == CheckState.Checked;
|
||||
_force16ColorsMenuItemCb.CheckedStateChanging += (sender, args) =>
|
||||
{
|
||||
if (Application.Force16Colors
|
||||
&& args.Result == CheckState.UnChecked
|
||||
&& !Application.Driver!.SupportsTrueColor)
|
||||
{
|
||||
args.Handled = true;
|
||||
}
|
||||
};
|
||||
|
||||
_force16ColorsShortcutCb!.CheckedState = args.Value;
|
||||
Application.LayoutAndDraw ();
|
||||
};
|
||||
_force16ColorsMenuItemCb.CheckedStateChanged += (sender, args) =>
|
||||
{
|
||||
Application.Force16Colors = args.Value == CheckState.Checked;
|
||||
|
||||
_force16ColorsShortcutCb!.CheckedState = args.Value;
|
||||
Application.LayoutAndDraw ();
|
||||
};
|
||||
|
||||
menuItems.Add (
|
||||
new MenuItemv2
|
||||
@@ -608,11 +618,22 @@ public class UICatalogTop : Toplevel
|
||||
};
|
||||
|
||||
_force16ColorsShortcutCb.CheckedStateChanging += (sender, args) =>
|
||||
{
|
||||
Application.Force16Colors = args.Result == CheckState.Checked;
|
||||
_force16ColorsMenuItemCb!.CheckedState = args.Result;
|
||||
Application.LayoutAndDraw ();
|
||||
};
|
||||
{
|
||||
if (Application.Force16Colors
|
||||
&& args.Result == CheckState.UnChecked
|
||||
&& !Application.Driver!.SupportsTrueColor)
|
||||
{
|
||||
// If the driver does not support TrueColor, we cannot disable 16 colors
|
||||
args.Handled = true;
|
||||
}
|
||||
};
|
||||
|
||||
_force16ColorsShortcutCb.CheckedStateChanged += (sender, args) =>
|
||||
{
|
||||
Application.Force16Colors = args.Value == CheckState.Checked;
|
||||
_force16ColorsMenuItemCb!.CheckedState = args.Value;
|
||||
Application.LayoutAndDraw ();
|
||||
};
|
||||
|
||||
statusBar.Add (
|
||||
_shQuit,
|
||||
|
||||
Reference in New Issue
Block a user