Skip to content

xTerminal 3.1.1.0

Latest

Choose a tag to compare

@0x78654C 0x78654C released this 14 Oct 19:35
· 2 commits to main since this release
c0ec53a

xTerminal 3.1.1.0 adds C/C++ IntelliSense, expands TermXT editor diagnostics, and improves command editing, file reloading, and script error reporting.

Highlights

  • C/C++ IntelliSense in xte. Automatic suggestions now include language keywords, preprocessor directives, standard-library identifiers, and names from the current file. With clangd, completion also resolves members after ., ->, and ::, header paths, and project symbols using unsaved code. Press Ctrl+Space to request suggestions manually.
  • Live TermXT errors and warnings in xte. Unsaved scripts are checked for block structure, conditions, function calls, and constant arguments or expressions. Warnings flag undeclared variables, assignments to computed built-ins, ignored trailing arguments, ineffective waits, and likely keyword typos. Gutter markers, header counts, and the F2 diagnostic list update as issues are fixed; select an entry and press Enter to jump to its location.
  • Expanded TermXT completion in xte. Suggestions include xTerminal commands at the start of a statement, after run, in capture assignments, and after pipes. Condition suggestions now also include true, false, &&, and ||. Function names containing spaces are quoted when accepted.

Fixes and improvements

  • TermXT runtime errors now include the original source line as [line N], including errors inside functions, nested blocks, and conditions. The {error_message} variable preserves this location for error handling.
  • The xte command prompt supports editing and pasting at the cursor, Left/Right and Home/End navigation, Ctrl+Left/Right word movement, Delete, and Backspace. Long commands scroll horizontally, and Unicode characters remain intact during navigation and deletion.
  • Reloading with :reload, :reload!, or :e! preserves the cursor and scroll position, including after mouse-wheel scrolling. Positions are adjusted when the reloaded file becomes shorter.
  • Improved language detection prevents C/C++ code and TermXT scripts from incorrectly activating C# completion.
  • Fixed cd storing a directory path without its trailing separator.
  • Fixed the quoted open-port check in the netaudit.xt example and changed its ping invocation to ping {host} -t 1.

Upgrade notes

The ctx command now requires a leading dash on its subcommands. Update scripts and aliases that use the previous forms:

Previous syntax New syntax
ctx save <name> ctx -save <name>
ctx load <name> ctx -load <name>
ctx list ctx -list
ctx show <name> ctx -show <name>
ctx del <name> ctx -del <name>

Basic C/C++ suggestions work without clangd. For member, header, and project completion, xte discovers clangd on PATH and in LLVM or Visual Studio installations. Set XTE_CLANGD to select a specific server executable. Project compiler options come from compile_commands.json or compile_flags.txt.

TermXT editor diagnostics include checks beyond xt -check. Save the script before checking or running it from the terminal; those commands read the file on disk.

Documentation

What's Changed

Full Changelog: v3.1.0.0...v3.1.1.0