d5974f4c91
Drag and drop does not work for WSL because paths are pasted as windows paths having incorrect path separator and path root. This PR adds code to correct the path in TerminalControl before pasting to WSL terminals. One problem with this approach is that it assumes the default WSL automount root of "/mnt". It would be possible to add a setting like "WslDragAndDropMountRoot"... but I decided it if someone wants to change automount location it would be simple enough just to create the "/mnt" symlink in WSL. ## Validation Couldn't find an obvious place to add a test. Manually tested cut-n-paste from following paths: - "c:\" - "c:\subdir" - "c:\subdir\subdir" - "\\wsl.localhost\<distro>" - \\wsl.localhost\<distro>\subdir" Closes #331
58 lines
1.6 KiB
Plaintext
58 lines
1.6 KiB
Plaintext
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
import "IKeyBindings.idl";
|
|
import "IControlAppearance.idl";
|
|
|
|
namespace Microsoft.Terminal.Control
|
|
{
|
|
enum ScrollbarState
|
|
{
|
|
Visible = 0,
|
|
Hidden
|
|
};
|
|
|
|
enum TextAntialiasingMode
|
|
{
|
|
Grayscale = 0,
|
|
Cleartype,
|
|
Aliased
|
|
};
|
|
|
|
// Class Description:
|
|
// TerminalSettings encapsulates all settings that control the
|
|
// TermControl's behavior. In these settings there is both the entirety
|
|
// of the Core ITerminalSettings interface, and any additional settings
|
|
// for specifically the control.
|
|
interface IControlSettings requires Microsoft.Terminal.Core.ICoreSettings, Microsoft.Terminal.Control.IControlAppearance
|
|
{
|
|
String ProfileName;
|
|
String ProfileSource;
|
|
|
|
Boolean UseAcrylic;
|
|
ScrollbarState ScrollState;
|
|
|
|
String FontFace;
|
|
Int32 FontSize;
|
|
Windows.UI.Text.FontWeight FontWeight;
|
|
String Padding;
|
|
Windows.Foundation.Collections.IMap<String, UInt32> FontFeatures;
|
|
Windows.Foundation.Collections.IMap<String, Single> FontAxes;
|
|
|
|
Microsoft.Terminal.Control.IKeyBindings KeyBindings;
|
|
|
|
Boolean CopyOnSelect;
|
|
Boolean FocusFollowMouse;
|
|
|
|
String Commandline;
|
|
String StartingDirectory;
|
|
String EnvironmentVariables;
|
|
|
|
TextAntialiasingMode AntialiasingMode;
|
|
|
|
// Experimental Settings
|
|
Boolean ForceFullRepaintRendering;
|
|
Boolean SoftwareRendering;
|
|
};
|
|
}
|