using C = System.Console; using System; partial class L { static void R(){ C.SetCursorPosition( 0, 0 ); } static void W( string s ) { C.Write( s ); } static void N( string s ) { W( s + "\n" ); } static void F( int c ) { C.ForegroundColor = ( System.ConsoleColor ) c; } static string E() { return C.ReadLine(); } static int I { get { //Mono fix: numpad keys don't return correct scancodes if( Type.GetType ("Mono.Runtime") != null ) { int i = ( int ) C.ReadKey( true ).Key; return i > 48 && i < 58 ? i + 48 : i; } return ( int ) C.ReadKey( true ).Key; } } }