diff --git a/src/PowerShellEditorServices.Hosting/Commands/StartEditorServicesCommand.cs b/src/PowerShellEditorServices.Hosting/Commands/StartEditorServicesCommand.cs
index e328308ba..22addea79 100644
--- a/src/PowerShellEditorServices.Hosting/Commands/StartEditorServicesCommand.cs
+++ b/src/PowerShellEditorServices.Hosting/Commands/StartEditorServicesCommand.cs
@@ -177,6 +177,12 @@ public StartEditorServicesCommand()
[Parameter]
public SwitchParameter SplitInOutPipes { get; set; }
+ ///
+ /// The banner/logo to display when the Integrated Console is first started.
+ ///
+ [Parameter]
+ public string StartupBanner { get; set; }
+
protected override void BeginProcessing()
{
#if DEBUG
@@ -331,6 +337,11 @@ private EditorServicesConfig CreateConfigObject()
},
};
+ if (StartupBanner != null)
+ {
+ editorServicesConfig.StartupBanner = StartupBanner;
+ }
+
return editorServicesConfig;
}
diff --git a/src/PowerShellEditorServices.Hosting/Configuration/EditorServicesConfig.cs b/src/PowerShellEditorServices.Hosting/Configuration/EditorServicesConfig.cs
index 05630324b..e56f4d27b 100644
--- a/src/PowerShellEditorServices.Hosting/Configuration/EditorServicesConfig.cs
+++ b/src/PowerShellEditorServices.Hosting/Configuration/EditorServicesConfig.cs
@@ -110,6 +110,12 @@ public EditorServicesConfig(
/// If none are provided, these will be generated from the hosting PowerShell's profile paths.
///
public ProfilePathConfig ProfilePaths { get; set; }
+
+ public string StartupBanner { get; set; } = @"
+
+ =====> PowerShell Integrated Console <=====
+
+";
}
///
diff --git a/src/PowerShellEditorServices.Hosting/Internal/EditorServicesRunner.cs b/src/PowerShellEditorServices.Hosting/Internal/EditorServicesRunner.cs
index 7d9a924da..ecac2a3e0 100644
--- a/src/PowerShellEditorServices.Hosting/Internal/EditorServicesRunner.cs
+++ b/src/PowerShellEditorServices.Hosting/Internal/EditorServicesRunner.cs
@@ -237,23 +237,7 @@ private void WriteStartupBanner()
return;
}
- _config.PSHost.UI.WriteLine(@"
-
-
-__/\\\\\\\\\\\\\_______/\\\\\\\\\\\____/\\\\\\\\\\\________/\\\\\\\\\_
- _\/\\\/////////\\\___/\\\/////////\\\_\/////\\\///______/\\\////////__
- _\/\\\_______\/\\\__\//\\\______\///______\/\\\_______/\\\/___________
- _\/\\\\\\\\\\\\\/____\////\\\_____________\/\\\______/\\\_____________
- _\/\\\/////////_________\////\\\__________\/\\\_____\/\\\_____________
- _\/\\\_____________________\////\\\_______\/\\\_____\//\\\____________
- _\/\\\______________/\\\______\//\\\______\/\\\______\///\\\__________
- _\/\\\_____________\///\\\\\\\\\\\/____/\\\\\\\\\\\____\////\\\\\\\\\_
- _\///________________\///////////_____\///////////________\/////////__
-
-
- =====> PowerShell Integrated Console <=====
-
-");
+ _config.PSHost.UI.WriteLine(_config.StartupBanner);
}
private void DebugServer_OnSessionEnded(object sender, EventArgs args)