@@ -12,44 +12,38 @@ internal class NullPSHostRawUI : PSHostRawUserInterface
1212
1313 public NullPSHostRawUI ( ) => _buffer = new BufferCell [ 0 , 0 ] ;
1414
15- public override ConsoleColor BackgroundColor { get ; set ; }
16- public override Size BufferSize { get ; set ; }
17- public override Coordinates CursorPosition { get ; set ; }
18- public override int CursorSize { get ; set ; }
19- public override ConsoleColor ForegroundColor { get ; set ; }
15+ public override Coordinates WindowPosition { get ; set ; }
2016
21- public override bool KeyAvailable => false ;
17+ public override Size MaxWindowSize => new ( ) { Width = _buffer . GetLength ( 0 ) , Height = _buffer . GetLength ( 1 ) } ;
2218
2319 public override Size MaxPhysicalWindowSize => MaxWindowSize ;
2420
25- public override Size MaxWindowSize => new ( ) { Width = _buffer . GetLength ( 0 ) , Height = _buffer . GetLength ( 1 ) } ;
21+ public override bool KeyAvailable => false ;
22+
23+ public override ConsoleColor ForegroundColor { get ; set ; }
24+
25+ public override int CursorSize { get ; set ; }
26+
27+ public override Coordinates CursorPosition { get ; set ; }
28+
29+ public override Size BufferSize { get ; set ; }
30+
31+ public override ConsoleColor BackgroundColor { get ; set ; }
2632
27- public override Coordinates WindowPosition { get ; set ; }
2833 public override Size WindowSize { get ; set ; }
34+
2935 public override string WindowTitle { get ; set ; }
3036
31- public override void FlushInputBuffer ( )
32- {
33- // Do nothing
34- }
37+ public override void FlushInputBuffer ( ) { }
3538
3639 public override BufferCell [ , ] GetBufferContents ( Rectangle rectangle ) => _buffer ;
3740
3841 public override KeyInfo ReadKey ( ReadKeyOptions options ) => default ;
3942
40- public override void ScrollBufferContents ( Rectangle source , Coordinates destination , Rectangle clip , BufferCell fill )
41- {
42- // Do nothing
43- }
43+ public override void ScrollBufferContents ( Rectangle source , Coordinates destination , Rectangle clip , BufferCell fill ) { }
4444
45- public override void SetBufferContents ( Coordinates origin , BufferCell [ , ] contents )
46- {
47- // Do nothing
48- }
45+ public override void SetBufferContents ( Coordinates origin , BufferCell [ , ] contents ) { }
4946
50- public override void SetBufferContents ( Rectangle rectangle , BufferCell fill )
51- {
52- // Do nothing
53- }
47+ public override void SetBufferContents ( Rectangle rectangle , BufferCell fill ) { }
5448 }
5549}
0 commit comments