File tree 3 files changed +18
-17
lines changed
src/PowerShellEditorServices.Hosting
3 files changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,12 @@ public StartEditorServicesCommand()
177
177
[ Parameter ]
178
178
public SwitchParameter SplitInOutPipes { get ; set ; }
179
179
180
+ /// <summary>
181
+ /// The banner/logo to display when the Integrated Console is first started.
182
+ /// </summary>
183
+ [ Parameter ]
184
+ public string StartupBanner { get ; set ; }
185
+
180
186
protected override void BeginProcessing ( )
181
187
{
182
188
#if DEBUG
@@ -331,6 +337,11 @@ private EditorServicesConfig CreateConfigObject()
331
337
} ,
332
338
} ;
333
339
340
+ if ( StartupBanner != null )
341
+ {
342
+ editorServicesConfig . StartupBanner = StartupBanner ;
343
+ }
344
+
334
345
return editorServicesConfig ;
335
346
}
336
347
Original file line number Diff line number Diff line change @@ -110,6 +110,12 @@ public EditorServicesConfig(
110
110
/// If none are provided, these will be generated from the hosting PowerShell's profile paths.
111
111
/// </summary>
112
112
public ProfilePathConfig ProfilePaths { get ; set ; }
113
+
114
+ public string StartupBanner { get ; set ; } = @"
115
+
116
+ =====> PowerShell Integrated Console <=====
117
+
118
+ " ;
113
119
}
114
120
115
121
/// <summary>
Original file line number Diff line number Diff line change @@ -237,23 +237,7 @@ private void WriteStartupBanner()
237
237
return ;
238
238
}
239
239
240
- _config . PSHost . UI . WriteLine ( @"
241
-
242
-
243
- __/\\\\\\\\\\\\\_______/\\\\\\\\\\\____/\\\\\\\\\\\________/\\\\\\\\\_
244
- _\/\\\/////////\\\___/\\\/////////\\\_\/////\\\///______/\\\////////__
245
- _\/\\\_______\/\\\__\//\\\______\///______\/\\\_______/\\\/___________
246
- _\/\\\\\\\\\\\\\/____\////\\\_____________\/\\\______/\\\_____________
247
- _\/\\\/////////_________\////\\\__________\/\\\_____\/\\\_____________
248
- _\/\\\_____________________\////\\\_______\/\\\_____\//\\\____________
249
- _\/\\\______________/\\\______\//\\\______\/\\\______\///\\\__________
250
- _\/\\\_____________\///\\\\\\\\\\\/____/\\\\\\\\\\\____\////\\\\\\\\\_
251
- _\///________________\///////////_____\///////////________\/////////__
252
-
253
-
254
- =====> PowerShell Integrated Console <=====
255
-
256
- " ) ;
240
+ _config . PSHost . UI . WriteLine ( _config . StartupBanner ) ;
257
241
}
258
242
259
243
private void DebugServer_OnSessionEnded ( object sender , EventArgs args )
You can’t perform that action at this time.
0 commit comments