Termux exposes several properties that control how the terminal looks — from the overall color theme and cursor shape to padding, scrollback depth, and toolbar size. You set most of these inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/termux/termux-app/llms.txt
Use this file to discover all available pages before exploring further.
~/.termux/termux.properties, while fonts and color palettes live in dedicated files under ~/.termux/. Reload settings after any change via the Termux notification or by restarting the app.
Night mode
Thenight-mode property sets the overall app theme.
| Value | Behavior |
|---|---|
system | Follow the Android system dark/light mode setting (default) |
true | Always use the dark theme |
false | Always use the light theme |
The deprecated
use-black-ui property previously forced a pure-black OLED-friendly theme. Use night-mode=true instead.Cursor style
Theterminal-cursor-style property sets the shape of the text insertion cursor.
| Value | Appearance |
|---|---|
block | Filled rectangle over the current character (default) |
underline | Thin line drawn under the current character |
bar | Vertical bar to the left of the current character |
Cursor blink rate
Theterminal-cursor-blink-rate property sets the cursor blink interval in milliseconds.
- Default:
0(blinking disabled) - Valid range:
0, or100–2000
Terminal margins
Two properties control the padding between the terminal text and the edges of the screen, both in density-independent pixels (dp).Horizontal margin
Left and right padding:- Property:
terminal-margin-horizontal - Default:
3 - Range:
0–100
Vertical margin
Top and bottom padding:- Property:
terminal-margin-vertical - Default:
0 - Range:
0–100
Toolbar height
Theterminal-toolbar-height property scales the height of the extra keys toolbar. The value is a multiplier applied to the default height.
- Default:
1.0 - Range:
0.4–3.0
1.0 shrinks the toolbar and may make buttons harder to tap. Values above 2.0 work well for large-screen devices or when using many key rows.
Scrollback rows
Theterminal-transcript-rows property sets how many lines Termux keeps in memory above the visible area for scrolling back through output.
- Default:
2000 - Range:
100–50000
Terminal colors
Create or edit~/.termux/colors.properties to customize the 16 ANSI terminal colors. The file uses Java .properties format with color names as keys and hex color values (with #) as values.
Color names
colors.properties, reload settings from the Termux notification drawer or run:
Custom font
Place a TrueType font file at~/.termux/font.ttf to replace the default monospace font. Termux will use it automatically after reloading settings.
Only TTF files are supported. The font must be a monospace typeface; proportional fonts will cause alignment issues in the terminal.
~/.termux/font.ttf and ~/.termux/colors.properties.
Configuration directory layout
Quick reference
| Property | Default | Range / Values |
|---|---|---|
night-mode | system | system | true | false |
terminal-cursor-style | block | block | underline | bar |
terminal-cursor-blink-rate | 0 | 0, or 100–2000 ms |
terminal-margin-horizontal | 3 | 0–100 dp |
terminal-margin-vertical | 0 | 0–100 dp |
terminal-toolbar-height | 1.0 | 0.4–3.0 |
terminal-transcript-rows | 2000 | 100–50000 |