+2005-01-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * ConsoleDriver.cs:
+ * TermInfoDriver.cs:
+ * IConsoleDriver.cs:
+ * Console.cs: added BufferWidth and BufferHeight.
+
2005-01-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ConsoleDriver.cs:
set { ConsoleDriver.BackgroundColor = value; }
}
+ public static int BufferHeight {
+ get { return ConsoleDriver.BufferHeight; }
+ set { ConsoleDriver.BufferHeight = value; }
+ }
+
+ public static int BufferWidth {
+ get { return ConsoleDriver.BufferWidth; }
+ set { ConsoleDriver.BufferWidth = value; }
+ }
+
public static int CursorLeft {
get { return ConsoleDriver.CursorLeft; }
set { ConsoleDriver.CursorLeft = value; }
}
}
- //int BufferHeight { get; set; }
- //int BufferWidth { get; set; }
+ public static int BufferHeight {
+ get { return driver.BufferHeight; }
+ set { driver.BufferHeight = value; }
+ }
+
+ public static int BufferWidth {
+ get { return driver.BufferWidth; }
+ set { driver.BufferWidth = value; }
+ }
+
//bool CapsLock { get; }
public static int CursorLeft {
namespace System {
interface IConsoleDriver {
ConsoleColor BackgroundColor { get; set; }
- //int BufferHeight { get; set; }
- //int BufferWidth { get; set; }
+ int BufferHeight { get; set; }
+ int BufferWidth { get; set; }
//bool CapsLock { get; }
int CursorLeft { get; set; }
//int CursorSize { get; set; }
cursorTop = row;
}
+ public int BufferHeight {
+ get {
+ GetWindowDimensions ();
+ return bufferHeight;
+ }
+ set {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public int BufferWidth {
+ get {
+ GetWindowDimensions ();
+ return bufferWidth;
+ }
+ set {
+ throw new NotSupportedException ();
+ }
+ }
+
public int CursorLeft {
get {
Init ();