@@ -12,44 +12,38 @@ internal class NullPSHostRawUI : PSHostRawUserInterface
12
12
13
13
public NullPSHostRawUI ( ) => _buffer = new BufferCell [ 0 , 0 ] ;
14
14
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 ; }
20
16
21
- public override bool KeyAvailable => false ;
17
+ public override Size MaxWindowSize => new ( ) { Width = _buffer . GetLength ( 0 ) , Height = _buffer . GetLength ( 1 ) } ;
22
18
23
19
public override Size MaxPhysicalWindowSize => MaxWindowSize ;
24
20
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 ; }
26
32
27
- public override Coordinates WindowPosition { get ; set ; }
28
33
public override Size WindowSize { get ; set ; }
34
+
29
35
public override string WindowTitle { get ; set ; }
30
36
31
- public override void FlushInputBuffer ( )
32
- {
33
- // Do nothing
34
- }
37
+ public override void FlushInputBuffer ( ) { }
35
38
36
39
public override BufferCell [ , ] GetBufferContents ( Rectangle rectangle ) => _buffer ;
37
40
38
41
public override KeyInfo ReadKey ( ReadKeyOptions options ) => default ;
39
42
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 ) { }
44
44
45
- public override void SetBufferContents ( Coordinates origin , BufferCell [ , ] contents )
46
- {
47
- // Do nothing
48
- }
45
+ public override void SetBufferContents ( Coordinates origin , BufferCell [ , ] contents ) { }
49
46
50
- public override void SetBufferContents ( Rectangle rectangle , BufferCell fill )
51
- {
52
- // Do nothing
53
- }
47
+ public override void SetBufferContents ( Rectangle rectangle , BufferCell fill ) { }
54
48
}
55
49
}
0 commit comments