예제 #1
0
        public static Prompter BlankLine(this Prompter prompter, Action <StaticText> setupStaticText = null)
        {
            var staticText = new StaticText(new ColorString());

            setupStaticText?.Invoke(staticText);
            prompter.Add(staticText);
            return(prompter);
        }
예제 #2
0
        public static Prompter Text(this Prompter prompter, FunctionOrColorString text,
                                    Action <StaticText> setupStaticText = null)
        {
            var staticText = new StaticText(text);

            setupStaticText?.Invoke(staticText);
            prompter.Add(staticText);
            return(prompter);
        }
예제 #3
0
        public static Prompter Separator(this Prompter prompter, char separator = '=',
                                         Action <StaticText> setupStaticText    = null)
        {
            var staticText = new StaticText(new ColorString(new string(separator, Console.WindowWidth)));

            setupStaticText?.Invoke(staticText);
            prompter.Add(staticText);
            return(prompter);
        }