Repository navigation
config
config Open config.tic file in the code editor to configure TIC-80.
config [reset | default]
-
resetreset current configuration file. -
defaultedit the default cart template (the cart created bynew).
TIC-80 can be modified by editing the configuration cart. Save the file to apply modifications.

The config command also allows to edit the default cart thanks to the default parameter.
Type folder in the console to open the storage folder. The configuration cart lives at .local/<build-hash>/config.tic inside it; the editor and player options live next to it in .local/<build-hash>/options.json. Both are per-build, so an update starts from the new build's defaults.
Colors and the code editor's text options live under CODE_THEME:
"CODE_THEME":
{
"BG": 15, -- background
"FG": 12, -- foreground ie text
"STRING": 4,
"NUMBER": 11,
"KEYWORD": 3, -- function, if, true...
"API": 5, -- TIC, print, cls...
"COMMENT": 14,
"SIGN": 13, -- *, -, =, (...
"SELECT": 14,
"CURSOR": 2,
"ALT_CARET": false,
"MATCH_DELIMITERS": true,
"AUTO_DELIMITERS": false,
},MATCH_DELIMITERS allows to highlight delimiters matching the one under the cursor.
AUTO_DELIMITERS allows to autocomplete delimiters. When a ( is written, the corresponding ) is added, etc.
ALT_CARET draws the caret as a filled block instead of an underline.

"CHECK_NEW_VERSION":trueCheck if a newer version of TIC-80 exists and displays a message in console if TIC-80 should be updated.
"UI_SCALE":4Sets the size of the TIC80 window at startup.
"SOFTWARE_RENDERING":falseUse the SDL software renderer instead of the SDL GPU renderer, which may be more stable but does not allow to use the CRT effect. Linked to issue #1566.
"TRIM_ON_SAVE":falseRemove trailing whitespace from every line when the cart is saved.
"GAMEPAD_TOUCH_ALPHA":180Sets the transparency of the on-screen gamepad buttons on Android and the touch builds. The value can be [0,255], 0 is fully transparent and 255 is totally opaque.
The toggles in the menu bar and in the game menu are stored in options.json, not in the configuration cart:
-
crt,fullscreen,vsync,integerScale,drawCache,volume -
autosave(save carts loaded through SURF) -
mapping(the gamepad mapping;SETUP GAMEPADedits it) -
keybindMode,tabMode,tabSize,musicTracker -
codeAltFont,codeShadow,codeLineNumbers,codeSidebar,codeStatusbar,codeMinimap -
autohide,compactBar
musicTracker remembers whether the music editor was last on its PIANO or TRACKER tab.
You can also change TIC-80 sound effects, palette as well as sprites like the cursor or the fonts.

Note: To change a game specific cursor use poke in your code instead.
If you are using indentation-sensitive languages like python, you might want the tab and space characters to be different. You can do so by modifying sprite #265 (and #393 for small font) of the configuration file.

NOTE that it will change how tabs appear everywhere, not only in the code editor.
You can deeply modify your configuration file by editing the palette, sprites, font, SFX and parameters to create a theme that you can share with others.
When TIC-80 is updated to a new version, the configuration is reset because the new build has its own .local/<build-hash>/ folder. In order to keep your previous configuration, copy your previous config.tic (and, if you want the same menu and editor toggles, options.json) into the new build's folder.
TIC-80 tiny computer https://tic80.com | Twitter | Telegram | Terms
Built-in Editors
Console
saveΒ | exportΒ | loadΒ | importΒ | menuΒ | configΒ | surfΒ | shelfΒ | demoΒ | evalΒ
Platform
RAMΒ | VRAMΒ | DisplayΒ | PaletteΒ | Bits per Pixel (BPP)Β |
.ticFormatΒ | Supported Languages
Other
TutorialsΒ | Code SnippetsΒ | LibrariesΒ | External ToolsΒ | FFT
API
Callbacks
Input
Drawing
circΒ | circbΒ | clipΒ | clsΒ | elliΒ | ellibΒ | fontΒ | lineΒ | mapΒ | paintΒ | pixΒ | printΒ | rectΒ | rectbΒ | rrectΒ | rrectbΒ | sprΒ | triΒ | tribΒ | ttriΒ | fill patterns
- textri (deprecated)
Sound
Memory
memcpyΒ | memsetΒ | mgetΒ | msetΒ | peekΒ | pokeΒ | pmemΒ | syncΒ | vbank
System