Doc changes

This commit is contained in:
Mughur
2023-01-30 20:51:00 +02:00
parent 867236e153
commit 6369ab434b
17 changed files with 244 additions and 3 deletions

View File

@@ -0,0 +1,28 @@
moveTail() Netscript Function
===============================
.. js:function:: moveTail(width, heigth[, pid])
:RAM cost: 0 GB
:param number width: Width of the window.
:param number heigth: Heigth of the window.
:param number pid: PID of the script of which tail window to resize. Defaults to current script.
resizes the tail window to the specified size.
.. note::
Due to inner workings, something has to be awaited between opening a tail window and moving or resizing it.
Examples:
.. code-block:: javascript
//open tail
ns.tail();
await ns.sleep(0);
//move the tail close to top left corner and make it big
ns.moveTail(10, 10);
ns.resizeTail(780, 510)