Skip to content

Doc » How to use

Bart van Hoekelen edited this page Apr 20, 2017 · 3 revisions

Tables of contents


Change text color

// Print red text 
echo terminal_style('Here your text', 'red');

Use can use: default, yellow, red, green, light-gray ...

See the full color name list here

Change background color

// Print text with background red 
echo terminal_style('Here your text', null, 'red');

Use can use: default, yellow, red, green, light-gray ...

See the full background color name list here

Change text style

// Print text in bold 
echo terminal_style('Here your text', null, null,'bold');

Use can use: default, bold , dim, italic, underlined, 'blink' ...

See the full text style name list here

Combine multiple styles

// Print text color red, background green and text style bold 
echo terminal_style('Here your text', 'red', 'green','bold');

Clone this wiki locally