Files
bitburner-src/markdown/bitburner.userinterface.md
catloversg d6ee16cdb3 API: Move tail-related APIs to another namespace (#1935)
* API: Move tail-related APIs to another namespace

* Add missing RAM cost config

* Remove setTailFontSize from NS namespace
2025-02-01 21:43:56 -08:00

2.0 KiB

Home > bitburner > UserInterface

UserInterface interface

User Interface API.

Signature:

interface UserInterface 

Methods

Method Description
clearTerminal() Clear the Terminal window, as if the player ran clear in the terminal
closeTail(pid) Close the tail window of a script.
getGameInfo() Gets the current game information (version, commit, ...)
getStyles() Get the current styles
getTheme() Get the current theme
moveTail(x, y, pid) Move a tail window.
openTail(fn, host, args) Open the tail window of a script.
renderTail(pid) Render a tail window.
resetStyles() Resets the player's styles to the default values
resetTheme() Resets the player's theme to the default values
resizeTail(width, height, pid) Resize a tail window.
setStyles(newStyles) Sets the current styles
setTailFontSize(pixel, fn, host, args) Set the font size of the tail window of a script.
setTailTitle(title, pid) Set the title of the tail window of a script.
setTheme(newTheme) Sets the current theme
windowSize() Get the current window size