Class | Thor::Shell::HTML |
In: |
lib/bundler/vendor/thor/shell/html.rb
|
Parent: | Basic |
Inherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.
BOLD | = | "<strong>" | The start of an HTML bold sequence. | |
END_BOLD | = | "</strong>" | The end of an HTML bold sequence. | |
CLEAR | = | "</span>" | Embed in a String to clear previous color selection. | |
BLACK | = | '<span style="color: black;">' | Set the terminal‘s foreground HTML color to black. | |
RED | = | '<span style="color: red;">' | Set the terminal‘s foreground HTML color to red. | |
GREEN | = | '<span style="color: green;">' | Set the terminal‘s foreground HTML color to green. | |
YELLOW | = | '<span style="color: yellow;">' | Set the terminal‘s foreground HTML color to yellow. | |
BLUE | = | '<span style="color: blue;">' | Set the terminal‘s foreground HTML color to blue. | |
MAGENTA | = | '<span style="color: magenta;">' | Set the terminal‘s foreground HTML color to magenta. | |
CYAN | = | '<span style="color: cyan;">' | Set the terminal‘s foreground HTML color to cyan. | |
WHITE | = | '<span style="color: white;">' | Set the terminal‘s foreground HTML color to white. | |
ON_BLACK | = | '<span style="background-color: black">' | Set the terminal‘s background HTML color to black. | |
ON_RED | = | '<span style="background-color: red">' | Set the terminal‘s background HTML color to red. | |
ON_GREEN | = | '<span style="background-color: green">' | Set the terminal‘s background HTML color to green. | |
ON_YELLOW | = | '<span style="background-color: yellow">' | Set the terminal‘s background HTML color to yellow. | |
ON_BLUE | = | '<span style="background-color: blue">' | Set the terminal‘s background HTML color to blue. | |
ON_MAGENTA | = | '<span style="background-color: magenta">' | Set the terminal‘s background HTML color to magenta. | |
ON_CYAN | = | '<span style="background-color: cyan">' | Set the terminal‘s background HTML color to cyan. | |
ON_WHITE | = | '<span style="background-color: white">' | Set the terminal‘s background HTML color to white. |
Ask something to the user and receives a response.
ask("What is your name?")
TODO: Implement ask for Thor::Shell::HTML