summaryrefslogtreecommitdiff
path: root/src/inspector
AgeCommit message (Collapse)Author
2025-10-06osc: parse additional OSC 133 optionsJeffrey C. Ollie
OSC 133;A can have: - special_key - click_events OSC 133;C can have: - cmdline - cmdline_url Notably, they are in use by `fish`. Not sure what other shells currently use these options. Note that the options are only parsed. Nothing further is done with them at this point.
2025-10-03Zig 0.15: zig build GTK exeMitchell Hashimoto
2025-10-03Zig 0.15: zig fmtMitchell Hashimoto
2025-09-29lib-vt: OSC data extraction boilerplateMitchell Hashimoto
This also changes OSC strings to be null-terminated to ease lib-vt integration. This shouldn't have any practical effect on terminal performance, but it does lower the maximum length of OSC strings by 1 since we always reserve space for the null terminator.
2025-08-20terminal: change OSC parser to explicit init to set undefinedMitchell Hashimoto
This works around: https://github.com/ziglang/zig/issues/19148 This lets our `test-valgrind` command catch some issues. We'll have to follow this pattern in more places but I want to do it incrementally so things keep passing. I **do not** want to blindly follow this pattern everywhere. I want to start by focusing in only on the structs that set `undefined` as default fields that we're also about to test in isolation with Valgrind. Its just too much noise otherwise and not a general style I'm sure of; it's worth it for Valgrind though.
2025-08-08inspector: fix display for fractional pixel sizesLeah Amelia Chen
#4371 2: Electric Boogaloo Regression caused by #7953
2025-05-26style: use decl literalsQwerasd
This commit changes a LOT of areas of the code to use decl literals instead of redundantly referring to the type. These changes were mostly driven by some regex searches and then manual adjustment on a case-by-case basis. I almost certainly missed quite a few places where decl literals could be used, but this is a good first step in converting things, and other instances can be addressed when they're discovered. I tested GLFW+Metal and building the framework on macOS and tested a GTK build on Linux, so I'm 99% sure I didn't introduce any syntax errors or other problems with this. (fingers crossed)
2025-05-09input: remove `physical_key` from the key event (all keys are physical)Mitchell Hashimoto
2025-05-09input: remove translatedMitchell Hashimoto
2025-03-12working on macosMitchell Hashimoto
2025-03-12Lots of 0.14 changesMitchell Hashimoto
2025-02-11Add keyboard navigation for Terminal IO window (#3909)Mitchell Hashimoto
## Changes - Add keyboard navigation support in Terminal IO window - Use J/K keys for vim-style navigation - Support arrow keys for traditional navigation https://github.com/user-attachments/assets/e5d3bba1-1a47-49c9-ac59-c6195515605c Resolves https://github.com/ghostty-org/ghostty/issues/1096
2025-01-05Merge branch 'main' into dmehala/conemu-osc9Damien Mehala
2025-01-05parse ConEmu OSC9;3 (#4644)Mitchell Hashimoto
This PR implements support for the [ConEmu OSC9;3 escape sequence](https://conemu.github.io/en/AnsiEscapeCodes.html#OSC_Operating_system_commands). | Sequence | Description | | - | - | ESC ] 9 ; 3 ; ”txt“ ST | Change ConEmu Tab to txt. Set empty string to return original Tab text #3125
2025-01-04chore: rename fileAlexandre Antonio Juca
2025-01-04[3/12] parse ConEmu OSC9;3Damien Mehala
2025-01-04chore: use KiB notation for representing memory sizeAlexandre Antonio Juca
2025-01-03Merge branch 'main' of github.com:AlexJuca/ghostty into ↵Alexandre Antonio Juca
feature/display-memory-size-in-bytes-and-kb
2025-01-03Merge branch 'main' of https://github.com/AlexJuca/ghostty into ↵Alexandre Antonio Juca
feature/display-memory-size-in-bytes-and-kb
2025-01-03Fixing a few typos in the source code comments (#4529)Peter Cock
2025-01-03feat: Display memory usage and and limit in both bytes and Kb for improved ↵Alexandre Antonio Juca
readability
2025-01-02Fix format string of font size in points in the inspectorKat
Credits to @gabydd who found this over at https://discord.com/channels/1005603569187160125/1324249888514506752/1324275061380874250. Co-authored-by: Gabriel Dinner-David <gabydinnerdavid@gmail.com>
2025-01-02code reviewDamien Mehala
- Add test with invalid value. - Fix inspector compilation.
2024-12-30Add keyboard navigation for Terminal IO windowBryan Lee
- Add J/K and arrow keys navigation in Terminal IO window
2024-11-14apprt/embedded: fix new size structMitchell Hashimoto
2024-11-07move datastructures to dedicated "datastruct" packageMitchell Hashimoto
2024-10-02font: add stylistic variants for built-in font, fix naming conventionMitchell Hashimoto
Fixes #2364 This adds the bold, italic, and bold italic variants of JB Mono so it is built-in. This also fixes up the naming convention for the embedded font files across tests and removes redundant embedded font files.
2024-08-28Inspector: change color picker to use hex valuescryptocode
The inspector currently show colors as decimal r,g,b values. With this change, the hex format is used instead. The motivation for this is that references to color typically use the hex format. One example is the palette definitions in a color scheme. Using the inspector/cell picker to help create and debug color themes should be more convenient after this change. If there's a usecase for the decimal format, we could add a config option or maybe a switch in the inspector UI.
2024-08-17Implement Kitty Color Protocol (OSC 21)Jeffrey C. Ollie
Kitty 0.36.0 added support for a new OSC escape sequence for quering, setting, and resetting the terminal colors. Details can be found [here](https://sw.kovidgoyal.net/kitty/color-stack/#setting-and-querying-colors). This fully parses the OSC 21 escape sequences, but only supports actually querying and changing the foreground color, the background color, and the cursor color because that's what Ghostty currently supports. Adding support for the other settings that Kitty supports changing ranges from easy (cursor text) to difficult (visual bell, second transparent background color).
2024-08-11fix(surface): account for padding in mouse pixel reportsTim Culverhouse
Padding was accounted for in cell reports, but not pixel reports. Update inspector to report the pixel coordinates the terminal reports.
2024-07-22inspector: fix mode prefix by prepending '?' only to private modesTim Culverhouse
The inspector lists modes by their parameter when used to enable or disable the mode. Private modes are enabled by using a '?' in the sequence - however this '?' character was prepended to the ANSI modes.
2024-06-24fix(RefCountedSet): add NeedsRehash error and fix PSL counting bugQwerasd
Prevent bad input from causing repeated OutOfMemory errors by erroring with NeedsRehash instead when there are unused dead IDs available. Additionally, properly decrement PSL stats when reviving dead IDs.
2024-06-05bikeshed styleMitchell Hashimoto
2024-06-05inspector: fallback to unicode when key event is invalidJan200101
This prevents non-ascii characters like Ö from being displayed as invalid
2024-04-19inspector: show cell codepoints and wide propertyMitchell Hashimoto
2024-03-22inspector: needs to call new PageList.maxSize funcMitchell Hashimoto
2024-03-22inspector: forgot another new fileMitchell Hashimoto
2024-03-22inspector: add page system detailsMitchell Hashimoto
2024-03-22inspector: forgot the new fileMitchell Hashimoto
2024-03-22inspector: get mouse points workingMitchell Hashimoto
2024-03-22inspector: cell selection works againMitchell Hashimoto
2024-03-22inspector: support cell pinning againMitchell Hashimoto
2024-03-22inspector: todo on renderMitchell Hashimoto
2024-03-22zig build test with renamed terminal packageMitchell Hashimoto
2024-01-13build: build produces a broken object file for iOSMitchell Hashimoto
This gets `zig build -Dtarget=aarch64-ios` working. By "working" I mean it produces an object file without compiler errors. However, the object file certainly isn't useful since it uses a number of features that will not work in the iOS sandbox. This is just an experiment more than anything to see how hard it would be to get libghostty working within iOS to render a terminal. Note iOS doesn't support ptys so this wouldn't be a true on-device terminal. The challenge right now is to just get a terminal rendering (not usable).
2024-01-02terminal: track palette color in cell stateGregory Anders
Rather than immediately converting a color palette index into an RGB value for a cell color, when a palette color is used track the palette color directly in the cell state and convert to an RGB value in the renderer. This causes palette color changes to take effect immediately instead of only for newly drawn cells.
2023-11-09terminal: change mask from u256 to StaticBitSetMitchell Hashimoto
2023-11-09core: implement querying with OSC 4Gregory Anders
2023-11-05inspector: add cursor style to inspector panelMitchell Hashimoto
2023-10-25inspector: reset vt seq number on clearMitchell Hashimoto