Mono.Terminal.Widget.DrawHotString C# (CSharp) Method

DrawHotString() public static method

Utility function to draw strings that contain a hotkey
Draws a string with the given color. If a character "_" is found, then the next character is drawn using the hotcolor.
public static DrawHotString ( string s, int hotcolor, int color ) : void
s string
hotcolor int
color int
return void
        public static void DrawHotString(string s, int hotcolor, int color)
        {
            Curses.attrset (color);
            foreach (char c in s){
                if (c == '_'){
                    Curses.attrset (hotcolor);
                    continue;
                }
                Curses.addch (c);
                Curses.attrset (color);
            }
        }