mirror of
https://github.com/alacritty/alacritty
synced 2024-10-01 21:43:55 +00:00
3d7e88e8a9
Previously Alacritty has initialized all lines in the buffer as soon as it is started. This had the effect that terminals which aren't making use of the scrollback buffer yet, would still consume large amounts of memory, potentially even freezing the system at startup. To resolve this problem, the grid is now dynamically resized in chunks of `1000` rows. The initial size is just the visible area itself, then every time lines are written to the terminal emulator, the grid storage is grown when required. With the worst-case scenario of having 100_000 lines scrollback configured, this change improves startup performance at the cost of scrolling performance. On my machine the startup changes from ~0.3 to ~0.2 seconds. The scrolling performance with large throughput is not affected, however it is slowed down when the number of lines scrolled are close to the 100_000 configured as scrollback. The most taxing benchmark I've found for this was running `yes | dd count=500 > 500.txt` (note the relatively small file size). This will cause a slowdown on the first run from 0.05s to 0.15s. While this is significant, it lines up with the time saved at startup. This fixes #1236.
2.8 KiB
2.8 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
Added
- Implement the
hidden
escape sequence (echo -e "\e[8mTEST"
) - Add support for macOS systemwide dark mode
- Set the environment variable
COLORTERM="truecolor"
to advertise 24-bit color support - On macOS, there are two new values for the config option
window.decorations
:transparent
- This makes the title bar transparent and allows the viewport to extend to the top of the window.buttonless
- Similar to transparent but also removed the buttons.
- Add support for changing the colors from 16 to 256 in the
indexed_colors
config section - Add
save_to_clipboard
configuration option for copying selected text to the system clipboard
Changed
- Inverse/Selection color is now modelled after XTerm/VTE instead of URxvt to improve consistency
- First click on unfocused Alacritty windows is no longer ignored on platforms other than macOS
- Reduce memory usage significantly by only initializing part of the scrollback buffer at startup
Fixed
- Clear screen properly before rendering of content to prevent various graphical glitches
- Fix build failure on 32-bit systems
- Windows started as unfocused now show the hollow cursor if the setting is enabled
Deprecated
- The config option
window.decorations
should now usefull
ornone
instead oftrue
orfalse
, respectively.
Security
- Bracketed paste mode now filters escape sequences beginning with \x1b
Version 0.2.0
Added
- Add a scrollback history buffer (10_000 lines by default)
- CHANGELOG has been added for documenting relevant user-facing changes
- Add
ClearHistory
key binding action and theErase Saved Lines
control sequence - When growing the window height, Alacritty will now try to load additional lines out of the scrollback history
- Support the dim foreground color (
echo -e '\033[2mDimmed Text'
) - Add support for the LCD-V pixel mode (vertical screens)
- Pressing enter on the numpad should now insert a newline
- The mouse bindings now support keyboard modifiers (shift/ctrl/alt/super)
- Add support for the bright foreground color
Changed
- Multiple key/mouse bindings for a single key will now all be executed instead of picking one and ignoring the rest
- Improve text scrolling performance (affects applications like
yes
, not scrolling the history)
Fixed
- Clear the visible region when the RIS escape sequence (
echo -ne '\033c'
) is received - Prevent logger from crashing Alacritty when stdout/stderr is not available
- Fix a crash when sending the IL escape sequence with a large number of lines