|
@@ -671,6 +671,9 @@ internal class NetDriver : ConsoleDriver {
|
|
|
|
|
|
public override void UpdateScreen ()
|
|
public override void UpdateScreen ()
|
|
{
|
|
{
|
|
|
|
+ if (NetWinConsole == null) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (_winSizeChanging || Console.WindowHeight < 1 || Contents.Length != Rows * Cols || Rows != Console.WindowHeight) {
|
|
if (_winSizeChanging || Console.WindowHeight < 1 || Contents.Length != Rows * Cols || Rows != Console.WindowHeight) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -862,6 +865,9 @@ internal class NetDriver : ConsoleDriver {
|
|
public override bool SetCursorVisibility (CursorVisibility visibility)
|
|
public override bool SetCursorVisibility (CursorVisibility visibility)
|
|
{
|
|
{
|
|
_cachedCursorVisibility = visibility;
|
|
_cachedCursorVisibility = visibility;
|
|
|
|
+ if (NetWinConsole == null) {
|
|
|
|
+ return visibility == CursorVisibility.Default;
|
|
|
|
+ }
|
|
var isVisible = Console.CursorVisible = visibility == CursorVisibility.Default;
|
|
var isVisible = Console.CursorVisible = visibility == CursorVisibility.Default;
|
|
//Console.Out.Write (isVisible ? EscSeqUtils.CSI_ShowCursor : EscSeqUtils.CSI_HideCursor);
|
|
//Console.Out.Write (isVisible ? EscSeqUtils.CSI_ShowCursor : EscSeqUtils.CSI_HideCursor);
|
|
return isVisible;
|
|
return isVisible;
|
|
@@ -885,8 +891,10 @@ internal class NetDriver : ConsoleDriver {
|
|
|
|
|
|
void SetWindowPosition (int col, int row)
|
|
void SetWindowPosition (int col, int row)
|
|
{
|
|
{
|
|
- Top = Console.WindowTop;
|
|
|
|
- Left = Console.WindowLeft;
|
|
|
|
|
|
+ if (NetWinConsole != null) {
|
|
|
|
+ Top = Console.WindowTop;
|
|
|
|
+ Left = Console.WindowLeft;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
private bool EnsureBufferSize ()
|
|
private bool EnsureBufferSize ()
|