1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00
alacritty/src
Mark Andrus Roberts fbc7b72271 Add visual bell support
This commit adds support for a visual bell. Although the Handler in src/ansi.rs
warns "Hopefully this is never implemented", I wanted to give it a try. A new
config option is added, `visual_bell`, which sets the `duration` and `animation`
function of the visual bell. The default `duration` is 150 ms, and the default
`animation` is `EaseOutExpo`. To disable the visual bell, set its duration to 0.

The visual bell is modeled by VisualBell in src/term/mod.rs. It has a method to
ring the bell, `ring`, and another method, `intensity`. Both return the
"intensity" of the bell, which ramps down from 1.0 to 0.0 at a rate set by
`duration` and `animation`.

Whether or not the Processor waits for events is now configurable in order to
allow for smooth drawing of the visual bell.
2017-02-07 21:12:56 -08:00
..
renderer Add visual bell support 2017-02-07 21:12:56 -08:00
term Add visual bell support 2017-02-07 21:12:56 -08:00
ansi.rs Implement save/restore cursor position 2017-02-02 09:07:00 -08:00
cli.rs Configurable window dimensions 2017-02-06 20:45:17 -08:00
config.rs Add visual bell support 2017-02-07 21:12:56 -08:00
display.rs Add visual bell support 2017-02-07 21:12:56 -08:00
event.rs Add visual bell support 2017-02-07 21:12:56 -08:00
event_loop.rs Fix bug where event loop could get stuck reading 2017-01-11 10:33:56 -08:00
grid.rs Semantic Selection 2017-02-07 21:04:18 -08:00
index.rs Clippy fixes! 2017-01-06 20:44:51 -08:00
input.rs Semantic Selection 2017-02-07 21:04:18 -08:00
lib.rs Optimize glyph cache access 2017-01-26 08:43:53 -08:00
logging.rs Return an error from logging::initialize 2017-01-23 09:14:01 -08:00
macros.rs Remove debug_print! macros 2017-01-23 09:14:01 -08:00
main.rs support for inverting the cursor or using colors 2017-01-29 16:06:29 -08:00
meter.rs Misc formatting fixes 2016-12-16 22:48:04 -08:00
selection.rs Clippy fixes! 2017-01-06 20:44:51 -08:00
sync.rs Fix some compiler warnings 2016-09-23 10:12:11 -07:00
tty.rs Alacritty now compiles on stable Rust 🎉 2017-02-03 08:11:19 -08:00
util.rs Clippy fixes! 2017-01-06 20:44:51 -08:00
window.rs Add support for setting title from OSC 2017-01-11 09:07:31 -08:00