diff --git a/markdown/bitburner.ns.print.md b/markdown/bitburner.ns.print.md index aa1bc4d73..6071b7e91 100644 --- a/markdown/bitburner.ns.print.md +++ b/markdown/bitburner.ns.print.md @@ -58,6 +58,6 @@ const reset = "\u001b[0m"; 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(); +ns.ui.openTail(); ``` diff --git a/markdown/bitburner.ns.printf.md b/markdown/bitburner.ns.printf.md index ef563d783..bad684393 100644 --- a/markdown/bitburner.ns.printf.md +++ b/markdown/bitburner.ns.printf.md @@ -43,6 +43,6 @@ ns.printf("My age in binary is %b.", age); ns.printf("My age in scientific notation is %e.", age); ns.printf("In %d seconds, I'll be %s.", 6, "Byte"); ns.printf("Am I a nibble? %t", (4 === age)); -ns.tail(); +ns.ui.openTail(); ``` diff --git a/markdown/bitburner.userinterface.opentail.md b/markdown/bitburner.userinterface.opentail.md index 8c0989600..bec9a774a 100644 --- a/markdown/bitburner.userinterface.opentail.md +++ b/markdown/bitburner.userinterface.opentail.md @@ -39,12 +39,12 @@ Otherwise, the PID or filename, hostname/ip, and args… arguments can be used t ```js //Open logs from foo.js on the current server that was run with no args -ns.tail("foo.js"); +ns.ui.openTail("foo.js"); //Get logs from foo.js on the foodnstuff server that was run with no args -ns.tail("foo.js", "foodnstuff"); +ns.ui.openTail("foo.js", "foodnstuff"); //Get logs from foo.js on the foodnstuff server that was run with the arguments [1, "test"] -ns.tail("foo.js", "foodnstuff", 1, "test"); +ns.ui.openTail("foo.js", "foodnstuff", 1, "test"); ``` diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index bbe320d3d..aa5de5102 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -5944,13 +5944,13 @@ interface UserInterface { * @example * ```js * //Open logs from foo.js on the current server that was run with no args - * ns.tail("foo.js"); + * ns.ui.openTail("foo.js"); * * //Get logs from foo.js on the foodnstuff server that was run with no args - * ns.tail("foo.js", "foodnstuff"); + * ns.ui.openTail("foo.js", "foodnstuff"); * * //Get logs from foo.js on the foodnstuff server that was run with the arguments [1, "test"] - * ns.tail("foo.js", "foodnstuff", 1, "test"); + * ns.ui.openTail("foo.js", "foodnstuff", 1, "test"); * ``` * @param fn - Optional. Filename or PID of the script being tailed. If omitted, the current script is tailed. * @param host - Optional. Hostname/IP of the script being tailed. Defaults to the server this script is running on. If args are specified, this is not optional. @@ -6602,7 +6602,7 @@ export interface NS { * 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(); + * ns.ui.openTail(); * ``` * * @param args - Value(s) to be printed. @@ -6637,7 +6637,7 @@ export interface NS { * ns.printf("My age in scientific notation is %e.", age); * ns.printf("In %d seconds, I'll be %s.", 6, "Byte"); * ns.printf("Am I a nibble? %t", (4 === age)); - * ns.tail(); + * ns.ui.openTail(); * ``` * * @param format - Format of the message.