css - Jquery terminal text formatting syntax, what am I doing wrong? -
i using jquery terminal , working great. however, life of me, cannot figure out correct syntax format string.
the example says
echo([string|function], [options]) — display string on terminal — (additionally if can call function function argument call function , print result, function called every time resize terminal or browser). there 3 options raw — allow display raw html, finalize — callback function 1 argument div container , flush — default true, if it's false not print echo text terminal until call flush method. can use basic text formating using syntax folow: [[guib;<color>;<background>]some text] display text: [[ — open formating u — underline s — strike o — overline — italic b — bold g — glow (using css text-shadow) ; — separator color — color of text (hex, short hex or html name of color) ; — separator color — background color (hex, short hex or html name of color) ; — separator [optional] class — class adeed format span element [optional] ] — end of format specification text — text formated (most of time internal use, when format text that's wrap in more 1 line you'll full text in data-text attribute) ] — end of formating
ok... i've tried stuff this
terminal.echo(["s"], mytext);
and this
terminal.echo("[[s]" + mytext + "]");
and this
terminal.echo([["s"], mytext]);
and several others.
this may dumb/easy question, i'm stumped. tell me doing wrong?
got answer frédéric hamidi, needed include color , background, not optional.
Comments
Post a Comment