// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if (NET_2_0||BOOTSTRAP_NET_2_0) && !NET_2_1
+#if !NET_2_1
using System.IO;
using System.Runtime.CompilerServices;
namespace System {
- class ConsoleDriver {
+ static class ConsoleDriver {
internal static IConsoleDriver driver;
static bool is_console;
static bool called_isatty;
set { driver.WindowWidth = value; }
}
+ public static bool IsErrorRedirected {
+ get {
+ return !Isatty (MonoIO.ConsoleError);
+ }
+ }
+
+ public static bool IsOutputRedirected {
+ get {
+ return !Isatty (MonoIO.ConsoleOutput);
+ }
+ }
+
+ public static bool IsInputRedirected {
+ get {
+ return !Isatty (MonoIO.ConsoleInput);
+ }
+ }
+
public static void Beep (int frequency, int duration)
{
driver.Beep (frequency, duration);
internal static extern int InternalKeyAvailable (int ms_timeout);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
- unsafe internal static extern bool TtySetup (string keypadXmit, string teardown, out byte verase, out byte vsusp, out byte intr, out int *address);
+ unsafe internal static extern bool TtySetup (string keypadXmit, string teardown, out byte [] control_characters, out int *address);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
internal static extern bool SetEcho (bool wantEcho);