Exemple #1
0
 private void AutoResize()
 {
     if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
     {
         NCurses.ResizeTerminal(Width < NCurses.Columns ? NCurses.Columns : Width, NCurses.Lines);
     }
     else
     {
         Console.SetBufferSize(Width < Console.BufferWidth ? Console.BufferWidth : Width, Console.BufferHeight);
     }
 }