Ejemplo n.º 1
0
 public static void PutString(int y, int x, ScreenString sc)
 {
     ScreenChar[] chars = sc.ToCharArray();
     for (int i = 0; i < chars.Length; ++i)
     {
         PutChar(y, x + i, chars [i]);
     }
 }
Ejemplo n.º 2
0
        public static string PromptUser(int y, int x, string prompt)
        {
            ScreenString sc = new ScreenString()
            {
                DisplayString = prompt,
                Foreground    = Screen.Foreground,
                Background    = Screen.Background
            };

            ScreenChar[] chars = sc.ToCharArray();
            for (int i = 0; i < chars.Length; ++i)
            {
                PutChar(y, x + i, chars [i]);
            }
            return(GetString(y, x + chars.Length + 2));
        }