Skip to content
Vadim Grigoruk edited this page Nov 22, 2026 · 5 revisions

config Open config.tic file in the code editor to configure TIC-80.
config [reset | default]

Parameters

  • reset reset current configuration file.
  • default edit the default cart template (the cart created by new).

Description

TIC-80 can be modified by editing the configuration cart. Save the file to apply modifications.

config_demo

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.

Configuration parameters

Color Parameters

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.

Example

config_color

Others

"CHECK_NEW_VERSION":true

Check if a newer version of TIC-80 exists and displays a message in console if TIC-80 should be updated.

"UI_SCALE":4

Sets the size of the TIC80 window at startup.

"SOFTWARE_RENDERING":false

Use 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":false

Remove trailing whitespace from every line when the cart is saved.

"GAMEPAD_TOUCH_ALPHA":180

Sets 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.

Editor and player options

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 GAMEPAD edits 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.

Sprites and SFX

You can also change TIC-80 sound effects, palette as well as sprites like the cursor or the fonts.

config_editors_demo

Note: To change a game specific cursor use poke in your code instead.

Custom Tab Character

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.

custom_tab

NOTE that it will change how tabs appear everywhere, not only in the code editor.

Themes

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.

Keeping Configuration after TIC-80 Updates

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.

Home
Tips for newcomers

Built-in Editors

CodeΒ | SpritesΒ | MapsΒ | SFXΒ | Music

Console

All commands

saveΒ | exportΒ | loadΒ | importΒ | menuΒ | configΒ | surfΒ | shelfΒ | demoΒ | evalΒ 

Platform

RAMΒ | VRAMΒ | DisplayΒ | PaletteΒ | Bits per Pixel (BPP)Β | .tic FormatΒ | Supported Languages

Other

TutorialsΒ | Code SnippetsΒ | LibrariesΒ | External ToolsΒ | FFT


API

All API functions

Callbacks

TICΒ | BOOTΒ | MENUΒ | BDR

  • SCN (deprecated)
  • OVR (deprecated)

Input

btnΒ | btnpΒ | btnrΒ | keyΒ | keypΒ | keyrΒ | mouse

Drawing

circΒ | circbΒ | clipΒ | clsΒ | elliΒ | ellibΒ | fontΒ | lineΒ | mapΒ | paintΒ | pixΒ | printΒ | rectΒ | rectbΒ | rrectΒ | rrectbΒ | sprΒ | triΒ | tribΒ | ttriΒ | fill patterns

Sound

musicΒ | sfxΒ | FFTΒ | VQT

Memory

memcpyΒ | memsetΒ | mgetΒ | msetΒ | peekΒ | pokeΒ | pmemΒ | syncΒ | vbank

System

exitΒ | resetΒ | timeΒ | tstampΒ | trace

Clone this wiki locally