dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnetlib/runtime/Platform Stdio.cs,1.3,1.4


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnetlib/runtime/Platform Stdio.cs,1.3,1.4
Date: Sun, 02 Nov 2003 02:55:26 +0000

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/Platform
In directory subversions:/tmp/cvs-serv23800/runtime/Platform

Modified Files:
        Stdio.cs 
Log Message:


Reflect the extended console routines through to interncalls
in "Platform.Stdio" so that the runtime engine can handle them.


Index: Stdio.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/Platform/Stdio.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Stdio.cs    1 Apr 2002 05:31:06 -0000       1.3
--- Stdio.cs    2 Nov 2003 02:55:24 -0000       1.4
***************
*** 66,69 ****
--- 66,122 ----
        extern public static int StdPeek(int fd);
  
+       // Set the console mode.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern public static void SetConsoleMode(int mode);
+ 
+       // Supported console modes.
+       public const int MODE_NORMAL = 0;
+       public const int MODE_CBREAK = 1;
+       public const int MODE_RAW    = 2;
+ 
+       // Get the buffer dimensions for the console.  If the console
+       // does not support scroll-back buffering, or cannot query the
+       // value, then this returns the same value as the window size.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern public static void GetBufferSize(out int width, out int height);
+ 
+       // Get the window size and position information.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern public static void GetWindowSize
+                       (out int left, out int top, out int width, out int 
height);
+ 
+       // Get the cursor position.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern public static void GetCursorPosition(out int x, out int y);
+ 
+       // Set the cursor position.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern public static void SetCursorPosition(int x, int y);
+ 
+       // Set the title on the console window.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern public static void SetConsoleTitle(String title);
+ 
+       // Issue a beep on the console.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern public static void Beep();
+ 
+       // Clear the console to the current foreground and backgroun colors.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern public static void Clear();
+ 
+       // Set the foreground and background text attributes.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern public static void SetTextAttributes(int attrs);
+ 
+       // Determine if a key is available for reading at the console.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern public static bool KeyAvailable();
+ 
+       // Read a key from the console.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern public static void ReadKey
+                       (out char ch, out int key, out int modifiers);
+ 
  }; // class Stdio
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]