mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
Added indication of which driver is in use to status bar
This commit is contained in:
@@ -75,7 +75,7 @@ namespace UICatalog {
|
||||
|
||||
_scenarios = Scenario.GetDerivedClasses<Scenario> ().OrderBy (t => Scenario.ScenarioMetadata.GetName (t)).ToList ();
|
||||
|
||||
if (args.Length > 0 && args.Contains("-usc")) {
|
||||
if (args.Length > 0 && args.Contains ("-usc")) {
|
||||
_useSystemConsole = true;
|
||||
args = args.Where (val => val != "-usc").ToArray ();
|
||||
}
|
||||
@@ -259,6 +259,7 @@ namespace UICatalog {
|
||||
_top.LayoutSubviews();
|
||||
_top.SetChildNeedsDisplay();
|
||||
}),
|
||||
new StatusItem (Key.CharMask, Application.Driver.GetType ().Name, null),
|
||||
};
|
||||
|
||||
SetColorScheme ();
|
||||
@@ -331,7 +332,7 @@ namespace UICatalog {
|
||||
var index = 0;
|
||||
|
||||
List<MenuItem> menuItems = new List<MenuItem> ();
|
||||
foreach (Enum diag in Enum.GetValues(_diagnosticFlags.GetType())) {
|
||||
foreach (Enum diag in Enum.GetValues (_diagnosticFlags.GetType ())) {
|
||||
var item = new MenuItem ();
|
||||
item.Title = GetDiagnosticsTitle (diag);
|
||||
item.Shortcut = Key.AltMask + index.ToString () [0];
|
||||
|
||||
Reference in New Issue
Block a user