NETSCRIPT: Add undocumented function printRaw() (#277)

This is analagous to tprintRaw (enabled by ns.iKnowWhatImDoing()), but
for logs instead of the terminal. This provides a supported* method of
creating complicated UIs for scripts.

*No actual support, expressed or implied, is provided for use of this
function.
This commit is contained in:
David Walker
2023-01-05 17:30:34 -08:00
committed by GitHub
parent c42fde9379
commit 7b5080a42b
7 changed files with 23 additions and 11 deletions
+1 -1
View File
@@ -517,7 +517,7 @@ export const ns: InternalAPI<NSFull> = {
return [] as string[];
}
return runningScriptObj.logs.slice();
return runningScriptObj.logs.map((x) => "" + x);
},
tail:
(ctx) =>