mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
De-uglify ns.print examples (#164)
This commit is contained in:
parent
4bf215f241
commit
0519b6adf7
18
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
18
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -4898,12 +4898,9 @@ export interface NS {
|
||||
* var green = "\u001b[32m";
|
||||
* var red = "\u001b[31m";
|
||||
* var reset = "\u001b[0m";
|
||||
* var msgError = red + "Ugh! What a mess." + reset;
|
||||
* var msgSuccess = green + "Well done!" + reset;
|
||||
* var msgMixed = cyan + "ERROR Should this be in red?" + reset;
|
||||
* print(msgError);
|
||||
* print(msgSuccess);
|
||||
* print(msgMixed);
|
||||
* print(red + "Ugh! What a mess." + reset);
|
||||
* print(green + "Well done!" + reset);
|
||||
* print(cyan + "ERROR Should this be in red?" + reset);
|
||||
* tail();
|
||||
* ```
|
||||
* @example
|
||||
@ -4922,12 +4919,9 @@ export interface NS {
|
||||
* const green = "\u001b[32m";
|
||||
* const red = "\u001b[31m";
|
||||
* const reset = "\u001b[0m";
|
||||
* const msgError = "Ugh! What a mess.";
|
||||
* const msgSuccess = "Well done!";
|
||||
* const msgMixed = "ERROR Should this be in red?";
|
||||
* ns.print(`${red + msgError + reset}`);
|
||||
* ns.print(`${green + msgSuccess + reset}`);
|
||||
* ns.print(`${cyan + msgMixed + reset}`);
|
||||
* ns.print(`${red}Ugh! What a mess.${reset}`);
|
||||
* ns.print(`${green}Well done!${reset}`);
|
||||
* ns.print(`${cyan}ERROR Should this be in red?${reset}`);
|
||||
* ns.tail();
|
||||
* ```
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user