Repository navigation
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. Withclangd, 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, afterrun, incaptureassignments, and after pipes. Condition suggestions now also includetrue,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
xtecommand 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
cdstoring a directory path without its trailing separator. - Fixed the quoted open-port check in the
netaudit.xtexample and changed its ping invocation toping {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
- Updated the TermXT scripting language user manual to edition 1.0.3, covering runtime error locations, diagnostic codes, editor navigation, and troubleshooting.
- Added the TermXT manual v1.0.3 PDF and refreshed the README and command help.
What's Changed
Full Changelog: v3.1.0.0...v3.1.1.0