mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
67fde6167b
change tformat.rst file name
28 lines
760 B
ReStructuredText
28 lines
760 B
ReStructuredText
resizeTail() Netscript Function
|
|
===============================
|
|
|
|
.. js:function:: resizeTail(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) |