Skip to content

Commit 47cd42d

Browse files
committed
Add a few more compatibility settings to SUI
1 parent d609f14 commit 47cd42d

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

src/cascadia/TerminalSettingsEditor/Compatibility.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
2424
PERMANENT_OBSERVABLE_PROJECTED_SETTING(_GlobalSettings, ForceVTInput);
2525
PERMANENT_OBSERVABLE_PROJECTED_SETTING(_GlobalSettings, AllowVtChecksumReport);
2626
PERMANENT_OBSERVABLE_PROJECTED_SETTING(_GlobalSettings, AllowKeypadMode);
27+
PERMANENT_OBSERVABLE_PROJECTED_SETTING(_GlobalSettings, AllowHeadless);
28+
PERMANENT_OBSERVABLE_PROJECTED_SETTING(_GlobalSettings, IsolatedMode);
2729

2830
private:
2931
Model::GlobalAppSettings _GlobalSettings;

src/cascadia/TerminalSettingsEditor/Compatibility.idl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ namespace Microsoft.Terminal.Settings.Editor
1515
PERMANENT_OBSERVABLE_PROJECTED_SETTING(Boolean, ForceVTInput);
1616
PERMANENT_OBSERVABLE_PROJECTED_SETTING(Boolean, AllowVtChecksumReport);
1717
PERMANENT_OBSERVABLE_PROJECTED_SETTING(Boolean, AllowKeypadMode);
18+
PERMANENT_OBSERVABLE_PROJECTED_SETTING(Boolean, AllowHeadless);
19+
PERMANENT_OBSERVABLE_PROJECTED_SETTING(Boolean, IsolatedMode);
1820
}
1921

2022
[default_interface] runtimeclass Compatibility : Windows.UI.Xaml.Controls.Page

src/cascadia/TerminalSettingsEditor/Compatibility.xaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@
2020
</Page.Resources>
2121

2222
<StackPanel Style="{StaticResource SettingsStackStyle}">
23+
<!-- Allow Headless -->
24+
<local:SettingContainer x:Uid="Globals_AllowHeadless">
25+
<ToggleSwitch IsOn="{x:Bind ViewModel.AllowHeadless, Mode=TwoWay}"
26+
Style="{StaticResource ToggleSwitchInExpanderStyle}" />
27+
</local:SettingContainer>
28+
29+
<!-- Isolated Mode -->
30+
<local:SettingContainer x:Uid="Globals_IsolatedMode">
31+
<ToggleSwitch IsOn="{x:Bind ViewModel.IsolatedMode, Mode=TwoWay}"
32+
Style="{StaticResource ToggleSwitchInExpanderStyle}" />
33+
</local:SettingContainer>
34+
2335
<!-- Force VT Input -->
2436
<local:SettingContainer x:Uid="Globals_ForceVTInput">
2537
<ToggleSwitch IsOn="{x:Bind ViewModel.ForceVTInput, Mode=TwoWay}"

src/cascadia/TerminalSettingsEditor/Resources/en-US/Resources.resw

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,14 @@
551551
<value>Allow keypad mode</value>
552552
<comment>Header for a control to toggle support for VT keypad modes.</comment>
553553
</data>
554+
<data name="Globals_AllowHeadless.Header" xml:space="preserve">
555+
<value>Allow Windows Terminal to run in the background</value>
556+
<comment>Header for a control to toggle support for Windows Terminal to run in the background.</comment>
557+
</data>
558+
<data name="Globals_IsolatedMode.Header" xml:space="preserve">
559+
<value>Force each window to be its own process</value>
560+
<comment>Header for a control to toggle making each window be its own process.</comment>
561+
</data>
554562
<data name="Globals_AlwaysOnTop.HelpText" xml:space="preserve">
555563
<value>Terminal will always be the topmost window on the desktop.</value>
556564
<comment>A description for what the "always on top" setting does. Presented near "Globals_AlwaysOnTop.Header".</comment>
@@ -567,6 +575,14 @@
567575
<value>Enables support for the DECKPAM and DECKPNM escape sequences to work as intended</value>
568576
<comment>Additional description for what the "allow keypad mode" setting does. Presented near "Globals_AllowKeypadMode.Header".</comment>
569577
</data>
578+
<data name="Globals_AllowHeadless.HelpText" xml:space="preserve">
579+
<value>This allows Global Summon and Quake Mode actions to work even when no windows are open.</value>
580+
<comment>Additional description for what the "allow headless" setting does. Presented near "Globals_AllowHeadless.Header".</comment>
581+
</data>
582+
<data name="Globals_IsolatedMode.HelpText" xml:space="preserve">
583+
<value>Certain features including but not limited to global hotkeys and tab tearout won't work.</value>
584+
<comment>Additional description for what the "isolated mode" setting does. Presented near "Globals_IsolatedMode.Header".</comment>
585+
</data>
570586
<data name="Globals_TabWidthMode.Header" xml:space="preserve">
571587
<value>Tab width mode</value>
572588
<comment>Header for a control to choose how wide the tabs are.</comment>

0 commit comments

Comments
 (0)