Skip to content

Commit

Permalink
cursor shape
Browse files Browse the repository at this point in the history
  • Loading branch information
PankajBhojwani committed Nov 30, 2020
1 parent 8f8e6e7 commit f4dd69a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 17 deletions.
1 change: 1 addition & 0 deletions src/cascadia/TerminalApp/AppAppearanceConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace winrt::TerminalApp::implementation
GETSET_PROPERTY(uint32_t, DefaultBackground, DEFAULT_BACKGROUND_WITH_ALPHA);
GETSET_PROPERTY(uint32_t, SelectionBackground, DEFAULT_FOREGROUND);
GETSET_PROPERTY(uint32_t, CursorColor, DEFAULT_CURSOR_COLOR);
GETSET_PROPERTY(Microsoft::Terminal::TerminalControl::CursorStyle, CursorShape, Microsoft::Terminal::TerminalControl::CursorStyle::Vintage);
GETSET_PROPERTY(hstring, BackgroundImage);

private:
Expand Down
1 change: 1 addition & 0 deletions src/cascadia/TerminalApp/TerminalSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ namespace winrt::TerminalApp::implementation
auto unfocusedConfig = winrt::make_self<implementation::AppAppearanceConfig>();

unfocusedConfig->ColorSchemeName(profile.UnfocusedConfig().ColorSchemeName());
unfocusedConfig->CursorShape(profile.UnfocusedConfig().CursorShape());
if (profile.UnfocusedConfig().Background())
{
unfocusedConfig->DefaultBackground(til::color{ profile.UnfocusedConfig().Background().Value() });
Expand Down
3 changes: 0 additions & 3 deletions src/cascadia/TerminalControl/IControlSettings.idl
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,11 @@ namespace Microsoft.Terminal.TerminalControl
String StartingDirectory;
String EnvironmentVariables;

//String BackgroundImage;
Double BackgroundImageOpacity;
Windows.UI.Xaml.Media.Stretch BackgroundImageStretchMode;
Windows.UI.Xaml.HorizontalAlignment BackgroundImageHorizontalAlignment;
Windows.UI.Xaml.VerticalAlignment BackgroundImageVerticalAlignment;

//UInt32 SelectionBackground;

TextAntialiasingMode AntialiasingMode;

Boolean RetroTerminalEffect;
Expand Down
11 changes: 10 additions & 1 deletion src/cascadia/TerminalCore/IAppearance.idl
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,23 @@

namespace Microsoft.Terminal.TerminalControl
{
enum CursorStyle
{
Vintage,
Bar,
Underscore,
FilledBox,
EmptyBox
};

// [default_interface]
interface IAppearance
{
UInt32 DefaultForeground { get; set; };
UInt32 DefaultBackground { get; set; };
UInt32 CursorColor { get; set; };
UInt32 SelectionBackground { get; set; };
//CursorStyle CursorShape;
CursorStyle CursorShape;
String BackgroundImage { get; set; };
};
}
13 changes: 0 additions & 13 deletions src/cascadia/TerminalCore/ICoreSettings.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,8 @@ import "..\IAppearance.idl";

namespace Microsoft.Terminal.TerminalControl
{
enum CursorStyle
{
Vintage,
Bar,
Underscore,
FilledBox,
EmptyBox
};

interface ICoreSettings requires IAppearance
{
//UInt32 DefaultForeground;
//UInt32 DefaultBackground;
UInt32 GetColorTableEntry(Int32 index);
// TODO:MSFT:20642297 - define a sentinel for Infinite Scrollback
Int32 HistorySize;
Expand All @@ -27,8 +16,6 @@ namespace Microsoft.Terminal.TerminalControl
Boolean SnapOnInput;
Boolean AltGrAliasing;

//UInt32 CursorColor;
CursorStyle CursorShape;
UInt32 CursorHeight;
String StartingTitle;
Boolean SuppressApplicationTitle;
Expand Down

1 comment on commit f4dd69a

@github-actions

This comment was marked as outdated.

Please sign in to comment.