Skip to Content
GuidesCustomizing KliveSettings

Settings

Klive keeps its preferences in one Settings dialog. The menus hold commands (things that act now), and the dialog holds what you set once and forget. This page shows how to open it, lists its pages, and explains the theme and accent.

The Settings dialog
The Settings dialog: the search box at the top, the page list on the left, and the options of the selected page on the right

Opening the Settings

PlatformMenuShortcut
macOSKlive › Settings…Cmd+,
Windows and LinuxFile › Settings…—

Some menus also have an item that opens the dialog on the page you need:

  • Machine › Configure machine… (the first item; machine is the running machine’s name) and the emulator toolbar’s Machine settings button open the Machine page.
  • Machine › Input › Input Settings… opens the Input page.
  • Machine › Record › Recording Settings… opens the Recording page.
  • Debug › Debugger Settings… opens the Debugging page.

The dialog opens in the window you are working in, the IDE or the emulator, so it works while the IDE is hidden. The settings command opens it from the IDE’s command prompt, and settings <page> opens a page, for example settings machine.

How It Works

  • Changes apply immediately. There is no OK or Cancel button: switch an option and Klive uses it at once, just as the menu check items used to. Close the dialog when you are done.
  • Search with the box at the top. It looks through the options of every page, so you can find an option without knowing which page it is on.
  • Reset Page to Defaults returns every option of the current page to its default value.
  • Options that restart the machine, such as a new ROM or another Z88 LCD size, say so in their description.

The Pages

General

OptionWhat it does
Open the last project at startupKlive opens the project you used last when it starts. See The two windows.
Close the emulator when the IDE is closedClosing the IDE window also closes the emulator, and with it Klive.
Focus the emulator after Run or DebugOnce Run or Debug has started your program, the emulator window gets the keyboard focus, so the keys you press reach the machine. On by default; switch it off to keep typing in the IDE.
Record tab switches in the navigation historyClicking a document tab adds a place to the navigation history.
Excluded itemsManage… lists the files and folders hidden from the Project Explorer. Available while a Klive project is open.
Let scripts drive KliveOpens a local channel for the klive ide command line and your own scripts. Any program running as you can use it while this is on. See Automation.
What scripts may doRead (state, memory and screenshots), Control (also run, pause, step, edit memory and build) or Full (also any IDE command, which can reach your files).

Language

OptionWhat it does
Display languageThe language of menus, dialogs and panels, or System default. See The display language.
TranslationsHow much of the chosen language is translated; Help translate explains how to fix a translation or add a language.

Appearance

OptionWhat it does
ToneLight or Dark. View › Switch to Light Theme / Switch to Dark Theme flips it from the menu.
AccentThe accent colour. See Theme and accent.
Panel font, Panel font sizeThe font of the IDE’s panels.
Sidebar on the rightMoves the sidebar to the right side of the IDE window.
Command and Output on topMoves the Command and Output area above the editor.
Maximize Command and OutputLets the Command and Output area take the whole editor area.

Editor

The code editor’s options: the font family and size, autocomplete, selection and occurrences highlighting, the quick suggestion delay, detecting the indentation, inserting spaces for a tab, rendering whitespace, the tab size, and background compilation. See Editing Code.

Emulator

OptionWhat it does
Zoom stepsThe zoom steps of the emulator screen.
Scanline effectDraws CRT-style scanlines over the picture.
Show the instant screenSee The paused screen. Also a button in the emulator toolbar.
Show the beam position while pausedSee The paused screen. Also a button in the emulator toolbar.
Keep the emulator on topOn by default. See Keeping the emulator on top. Also the pin on the emulator toolbar.
Show performance infoShows the emulator’s performance figures in its status bar.
Show media informationShows the media strip (tapes, disks, cartridges) in the emulator’s status bar.
Show the Layers stripShows the ZX Spectrum Next’s Layers strip under the screen.
Fast loadLoads tapes at once instead of in real time. Also Machine › Tape › Fast load and the rocket button on the emulator toolbar. See Tapes.
💡

Right-clicking the emulator’s status bar toggles the performance info, the media information and the Show the Layers strip, too.

Debugging

OptionWhat it does
Stop in interrupt handlers while steppingStepping goes into an interrupt routine instead of over it.
Stop at runtime errorsThe debugger stops where a program raises a runtime error.
Just My CodeStepping steps over code that has no source.
Sync the source with the current breakpointThe editor shows the source line where the machine stopped. Also Debug › Sync Source with Breakpoint and an IDE toolbar button.
Group breakpoints by kindGroups the Breakpoints view by breakpoint kind.
Advanced debuggingTurns the advanced debugging features on or off: the execution history, reverse debugging, debug recordings, code coverage and the profiler. On by default. Takes effect when Klive restarts.
Reverse debuggingStepping back puts the whole machine in the past, and you can continue from there. Takes effect at the next debug session. See Reverse Debugging.
Memory for the reverse-debugging timelineHow much memory the timeline may use: Automatic (512 MB, or a sixteenth of the computer’s memory) or a fixed size. More memory reaches further back.
Clear coverage when the machine startsCoverage and the heat map start over when the machine starts from Stopped.
Clear coverage after code injectionThe ROM’s boot to the injection point does not show as covered.
Count executions, reads and writesOff: only whether each byte was executed, read or written, which costs less.
Tint covered source linesA tinted background in the editor as well as the coverage strip. On by default.
Profile hints in the editorEach routine’s first line shows its share of the time and its calls. On by default.

The two reverse-debugging rows appear while the advanced debugging features are on; the five Coverage and profiling rows appear on machines with code coverage.

Machine

This page shows the options of the running machine only; switch machines to see another’s. Options that apply to only some machines are here, not on the Emulator page.

OptionMachineWhat it does
ZX Spectrum 48K ROMZX Spectrum 48KBrowse… picks a custom ROM, Reset returns to the original.
TR-DOS ROMPentagon 128, ScorpionNames your TR-DOS ROM image. See TR-DOS disks.
esxDOS ROMZX Spectrum 16K, 48K, 128K, +2A/+3/+2E/+3ENames your esxDOS ROM; the DivMMC stays off without it.
Interface 1 ROMZX Spectrum 16K, 48K, 128K with the Interface 1Another 8K Interface 1 ROM; empty means the shipped second edition. See The Interface 1 and Microdrives.
Scorpion ZS-256 ROMScorpion ZS-256Names your copy of the Scorpion’s 64K ROM.
Timex ROMTimex modelsNames your copy of that model’s ROM.
Keyboard layoutCambridge Z88The Z88’s keyboard layout.
LCD resolutionCambridge Z88The size of the Z88’s screen. Changing it restarts the machine. See The Cambridge Z88.
Show TV noise without syncZX80, ZX81While the machine sends no usable sync (a ZX81 running a program in FAST mode, a ZX80 computing), shows the noise a real television showed instead of a black screen. Only the display changes, not the machine.
Show the snow effectZX Spectrum 16K, 48K, 128KWith the I register in contended memory, the CPU’s memory refresh disturbs the ULA’s screen reads and the picture shows “snow”, as on the real machine. On by default. Also Machine › ZX Spectrum 48K / 128K › Snow Effect.
Late ULA timingZX Spectrum 16K, 48K, 128KRuns the ULA one T-state later against the interrupt, as many real machines do: contention, the screen reads, the border and the floating bus all move by one T-state. Off by default (the documented timings). Also Machine › ZX Spectrum 48K / 128K › Late ULA Timing. An .szx snapshot sets it to the timing its machine ran.
ZX Spectrum Next sound outputZX Spectrum NextWhich of the Next’s outputs Klive plays: the audio jack (the default), the internal speaker or HDMI, each as the real machine builds it. Also Machine › Sound › Output. See From the Machine to Your Speakers.
The clock followsZX Spectrum NextWhat the Next’s real-time clock (RTC) shows: the host’s clock (the default; the real time) or emulated time, which stops while the debugger pauses. See The real-time clock.
Keep the time and the clock’s RAM between sessionsZX Spectrum NextKeeps a time set with .time or .date, and the clock’s 56 bytes of RAM, until the next start, as the battery on a real board does. Each Next model keeps its own. On by default.
Kept clockZX Spectrum NextWhen the running model’s clock was last saved. Set to host time sets it to the computer’s time; Forget deletes the kept clock and clears its RAM.

The ROM files have Browse… and Forget (or Reset) buttons; Custom ROMs explains each.

Input

OptionWhat it does
Key mapping fileBrowse… picks a key mapping file, Reset returns to the default mapping.
Joystick bindingsZX Spectrum Next and Timex. Configure… sets which keys and controller buttons drive the joysticks.
MouseZX Spectrum Next: mouse capture, showing the captured pointer, and sensitivity.

See Keyboard, joysticks and mouse.

Recording

OptionWhat it does
FormatMP4, WebM or MKV.
QualityHow much the video is compressed.
Frame rateThe machine’s own, or half of it (every second frame).
IDE + Emulator: IDE positionWhere the IDE goes next to the emulator in an IDE + Emulator recording.
IDE + Emulator: Include the pointer, Show mouse clicksDraw the mouse pointer and its clicks into the video.
IDE + Emulator: Full resolution (HiDPI)Records at the display’s full pixel density.

See Recording the Emulator Screen for what each option does.

Integrations

OptionWhat it does
SjasmPlusConfigure… opens the SjasmPlus Integration dialog. See SJASMPLUS Integration.
Boriel BASICThe folder Boriel BASIC, the compiler that builds .zxbas and .bas files, is installed in, or Not set up. Configure… opens the Boriel BASIC dialog, which installs the bundled Boriel BASIC 2, accepts an installation you already have, and repairs or updates one. See Boriel BASIC.
z88dkThe folder of the z88dk installation that builds .c files. Configure… opens the z88dk Integration dialog, which finds installations on your computer or downloads a release from GitHub. See z88dk (C).
Compiler, C library, OptimisationShown while a project is open; saved in the project. The C compiler (sccz80 or SDCC), the library programs link with, and the optimisation of Run and Export builds. See Build options.

Theme and accent

The Theme group of the Appearance page sets how Klive looks:

  • Tone is Dark or Light. View › Switch to Light Theme (or Switch to Dark Theme) flips it from the menu.
  • Accent is the colour of selections, focus and highlights: Sinclair Blue (the default), Spectrum Magenta, Ember, Ultraviolet, Deep Teal or Phosphor Green. Any accent pairs with either tone.

The accent also reaches the data views: the memory dump, the disassembly and the machine-state panels pick out their values in it, and the code editor shows keywords in it. The rest of the editor’s colours are fixed, so code stays readable with every accent; see Syntax highlighting colors.

In the Windows Themselves

A few controls moved out of the menus into the part of the window they change:

  • The emulator toolbar’s sound button has a dropdown with the sound levels.
  • In the emulator status bar, the machine name opens the Select Machine dialog, and the MHz label opens the list of speeds.
  • Right-clicking the emulator status bar toggles the performance info, the media information and the Show the Layers strip.
  • The IDE toolbar’s navigation dropdown has Clear Navigation History.

Where Did It Go?

The menus were reorganised. If you are looking for an item from an earlier version of Klive:

Earlier menu itemNow
File › Load ZX Spectrum Snapshot, File › Play RZX Recording, File › Load Machine StateFile › Open File… (opens snapshots, .kls states, .rzx recordings and tapes; the same as dropping the file onto the emulator)
Machine › Load Snapshot / Load State, Machine › Open Z88 Snapshot, Machine › RZX › Play RecordingFile › Open File…
Machine › Save Snapshot / Save StateFile › Save Snapshot… / File › Save Machine State…
Machine › Quick Save State / Quick Restore StateFile › Quick Save State / File › Quick Restore State
File › Manage Excluded ItemsSettings › General › Excluded items
IDE › IDE SettingsSettings › General
IDE › Show Machine Memory / Show Disassembly / Show BASIC ListingView › Machine Views › Memory / Disassembly / BASIC Listing
IDE › Go › Back / ForwardView › Go Back / View › Go Forward
IDE › Go › Clear Navigation HistoryThe IDE toolbar’s navigation dropdown
IDE › Integrations › SjasmPlus AssemblerSettings › Integrations › SjasmPlus
View › ThemeSettings › Appearance; View › Switch to Light/Dark Theme
View › Editor OptionsSettings › Editor
View › Panel Options, Move the Sidebar to the Right, Move Commands and Output to the top, Maximize Commands and OutputSettings › Appearance
View › Screen Zoom Steps, Show Performance Info, Show Media Information, Show LayersSettings › Emulator (the last three also from the emulator status bar’s right-click menu)
View › Show the Instant Screen, Show the Beam Position, Keep Emulator on TopSettings › Emulator, or the emulator toolbar buttons
View › Sync the Source with the Current BreakpointDebug › Sync Source with Breakpoint, or the IDE toolbar
Machine › Start with Debugging, Step Into, Step Over, Step Out, Step Over LineDebug menu
Machine › Step CopperDebug › Step Copper
Machine › Clock MultiplierMachine › Speed, or the MHz label in the emulator status bar
Machine › Sound LevelMachine › Sound, or the emulator toolbar’s sound dropdown
Machine › Select Tape File, Rewind Tape, Eject Tape, Fast LoadMachine › Tape (Insert Tape…, Rewind, Eject, Fast Load)
Machine › Floppy Disks, Create Disk File, Boot Disk in Drive AMachine › Disks
Machine › Insert Cartridge (Timex)Machine › Cartridge
ZX Spectrum Next SD card itemsMachine › SD Card
Machine › Joystick, MouseMachine › Input
Machine › Hotkeys (ZX Spectrum Next)Machine › ZX Spectrum Next
Z88 Soft Reset, Hard Reset, Press Both SHIFT Keys, Raise Battery Low SignalMachine › Cambridge Z88
Machine › Scanline EffectSettings › Emulator
Machine › Select ROM File / Reset to Default ROM, TR-DOS ROM, Scorpion ROM, TC2048/TC2068/TS2068 ROMSettings › Machine
Machine › Keyboard layout, LCD resolution (Z88)Settings › Machine
Machine › Select Key Mapping / Reset Key MappingSettings › Input
Machine › Recording (start, pause, IDE + Emulator)Machine › Record
Machine › Recording (format, quality, half fps, IDE + Emulator options)Settings › Recording (Machine › Record › Recording Settings…)
Machine › RZX (record, rollback, render to video)Machine › Record (RZX: Record, RZX: Stop and Save…, …)
Machine › Layers (ZX Spectrum Next)The Layers strip under the screen; the Layers document is View › Machine Views › Layers
Machine › Show Copper List, Show Sprite / Tilemap / Layer 2 InspectorView › Machine Views
Z88 help linksHelp › Cambridge Z88 Resources
Last updated on