Commit Graph
663 Commits
Author SHA1 Message Date
Joe Wilm 3587e35c6d Use consistent config deprecation message style 2017-12-22 12:52:35 -08:00
Joe Wilm 21c003c3be Deprecate config top-level dimensions and padding 2017-12-22 12:47:14 -08:00
Robert Günzler 86ff6e19c4 Update config files 2017-12-20 20:30:22 +01:00
Robert Günzler 7928b33ee0 Move dimensions and padding into window section 2017-12-20 20:28:21 +01:00
Robert Günzler dbc6970aaa Add new window section to config
Move/rename borderless into window_config as decorations
2017-12-20 20:12:32 +01:00
Robert Günzler bcd97679ce Add borderless option to config files
See 46a1ee7226
2017-12-17 08:26:27 +01:00
Robert Günzler 46a1ee7226 Add 'borderless' option
Until winit gives us more capabilities in regard to window decorations
this implements a simple switch that renders the window without any
title bar or border
2017-12-17 08:23:49 +01:00
Jon McDuffie 6a1bed0a71 Fix License link at the bottom of the readme (#933) 2017-12-16 22:04:10 -08:00
Andrew De Ponte d0fb4c563f On macOS when launching multiple times focus win (#941)
I dug into this and narrowed the issue down to the macOS app bundle
Info.plist file. So, I spun up a native macOS app real quick and tested
it by launching the binary directly and launching it via the app bundle.
When launching from the command line directly, it created multiple
windows & instances of the app. However, when launching via the app
bundle it behaved as I normally expect a macOS app to behave, that is
when launched multiple times to simply focus the already existing window
and instance.

This informed me that it wasn't something in code as much as it was
something in the app bundle configuration. Hence, I reworked the
Info.plist file based on the one that was created by XCode when I made
the native macOS app and it started behaving as expected.
2017-12-13 13:30:27 -08:00
Theodore Dubois 94caa7667d Remove the launcher and set the locale/current directory in alacritty (#879) 2017-12-13 09:52:36 -08:00
Christian Duerr 9bdac6b50a Add cursor style option (#928)
The default cursor can now be configured through the cursor_style field
of the config. Valid options include Block, Underline, and Beam.

The default can be restored by sending \e[0q as in VTE terminals.

Live config reloading is supported for this parameter.
2017-12-03 13:38:42 -08:00
Matthias Krüger d552d28418 clippy: do and don't pass some things by reference as suggested (needless_pass_by_value, needless_borrow). 2017-12-03 12:50:40 -08:00
Matthias Krüger ed6595543b clippy: use is_empty() instead of len() == 0 (warn(len_zero)). 2017-12-03 12:50:40 -08:00
Matthias Krüger ffac0f5840 clippy: remove unneeded return statement (needless_return). 2017-12-03 12:50:40 -08:00
Matthias Krüger 9e6dd81ad9 clippy: string constants do not need to have static lifetime (const_static_lifetime). 2017-12-03 12:50:40 -08:00
Matthias Krüger b2c7fa7ee9 Cargo.lock: bump clippy from 0.0.164 to 0.0.174. 2017-12-03 12:50:40 -08:00
Matthias Krüger b5571da0f3 clippy: fix if_not_else warning 'breaking' the build. Swap blocks and change to "==". 2017-12-03 12:50:40 -08:00
Matthias Krüger 2c443425b0 commit some Cargo.lock changes that "cargo build" would do automatically 2017-12-03 12:50:40 -08:00
Joe Wilm 8ff3c5d170 Revert "Wait to display window until initialization is complete (#907)"
This reverts commit a931d691a2.

Please see https://github.com/jwilm/alacritty/pull/907#issuecomment-345666727
for rationale w/ GIF.

> now alacritty starts "in stages". First it paints some small
> rectangle, and in a second in "boots" and fills up the available
> space.
2017-11-20 09:30:57 -08:00
Charles a931d691a2 Wait to display window until initialization is complete (#907) 2017-11-19 08:57:01 -08:00
Nathan Lilienthal a9753c345e Remove outdated TASK.md (#906) 2017-11-19 08:49:34 -08:00
Tuomas Siipola 245a800781 Support more color escape codes (#757)
* Support text cursor color escape codes
* Support reset color index escape code
* Support multiple colors in set color index escape code
2017-11-11 19:11:21 -08:00
hcpl 8a09917dd1 Output more info for --version (#888)
Useful when requesting more info to help investigating issues.
2017-11-11 17:17:47 -08:00
Joe Wilm c5b689784e Fix typo and whitespace 2017-11-11 09:44:32 -08:00
Joe Wilm 24fce939b7 Style fixes 2017-11-11 09:44:32 -08:00
Bryan Gilbert 812208d8b5 Don't enforce window dimensions if configured with 0 columns or lines 2017-11-11 09:44:32 -08:00
Joe Wilm 2bda79d94c Add ref test for 855 2017-11-11 09:23:43 -08:00
Joe Wilm faece31854 Run all ref tests
There were two ref tests that were not being run. Oops!
2017-11-11 09:23:43 -08:00
Joe Wilm 7e8db8db1a Match LF behavior outside scroll region with urxvt
Outside of a scroll region, linefeed will still advances the line until
reaching the bottom row in other terminals. Alacritty now matches that.
2017-11-11 09:23:43 -08:00
Yan d52e545db3 Correct linefeed handling when scroll region set (#855)
Linefeeds should only move the cursor down if it's before the end of
the scroll region.

The "out of bounds" panic was triggered by linefeeds going off the
bottom of the screen when the scroll region end was above the cursor.

Note: https://vt100.net/docs/vt102-ug/chapter5.html
"Characters added outside the scrolling region do not cause the screen to scroll."
2017-11-11 09:23:43 -08:00
thelearnerofcode 0bae7ae722 Fixed typo in README.md (#876) 2017-11-11 08:24:08 -08:00
thelearnerofcode bdb360ed1d Support integer font size in config (#886)
Fixes #882
2017-11-11 08:23:49 -08:00
Bailey f68558e9dc Link to FAQ when referencing it (#881) 2017-10-31 08:54:30 -07:00
Martin Lindhe 5b444375f2 fix some typos in comments 2017-10-30 09:25:13 -07:00
Martin Lindhe f646f6c9f8 config_subsitute(): fix typo by renaming to config_substitute() 2017-10-30 09:25:13 -07:00
Ty Coghlan 7c4e84c695 set_urgent on mac throws a warning (#867)
On mac, compiling throws a warning due to `is_urgent` not being used within `set_urgent`. This can be changed just by using an underscore instead.
2017-10-26 18:48:11 -07:00
Joe Wilm 22ccd7b4b1 Fix stack overflow
Resolves #872
2017-10-26 18:46:44 -07:00
Dustin 16c047b08a Change cursor from pointer to text (#778)
It seems that (as a rule) terminal emulators use the text mouse cursor rather
than the pointer that is used now. This commit changes the cursor to
using winit's built-in configuration function.
2017-10-22 11:34:31 -07:00
Joe Wilm bfdd7b0062 Fix typo 2017-10-22 08:43:02 -07:00
Roel a1174797b4 Rewrite err_println to eprintln introduced in Rust 1.19 (#799) 2017-10-22 08:42:40 -07:00
Joe Wilm 8af4a4b55b Update README.md with more Wayland
Adds a call to action on how to improve Wayland support in Alacritty.
2017-10-21 17:08:16 -07:00
Barret Rennie f6f2bcd024 Set urgent WM flag on bell on X11 systems (#812)
Sets the urgent WM flag when bell is emitted on X11 systems.
Additionally, the flag is cleared on focus because not all WMs clear it
automatically.
2017-10-21 16:03:58 -07:00
Joe Wilm b79574ee82 Fix solid background color opacity (#847)
Since landing the patch adding transparency support to Alacritty,
there's been an issue where othewise solid background cells were also
being rendered partially transparent. Now, all filled background cells
are rendered fully opaque.

Some logic was added to support discarding filled backgrounds which had
the same color as the default background. This means that, if the
default background is #000 and a cell has that background, it will never
be rendered opaque. This may not be correct.

Note that many truecolor vim color schemes print spaces for default
colored background cells. Performance can be dramatically improved by
using ctermbg=NONE guibg=NONE to skip rendering those cells.
2017-10-21 15:26:42 -07:00
Robert Bittle 7a5eebd094 List all valid actions in config error message (#848) 2017-10-21 15:26:14 -07:00
Hugo Tunius 2ea6ec5c8f Update macOS icon with icon from #285 (#856) 2017-10-21 15:25:48 -07:00
Joe Wilm 9f79d72109 Add Function + Modifier keybindings (#853)
Also rearranged the default config slightly to move the long key binding
list to the bottom of the file.

Resolves #690
Resolves #727
2017-10-20 07:59:28 -07:00
Joe Wilm 5ac42bb13b Fix render issues on macOS (#845)
Parts of neighboring glyphs in the atlas were being rendered
incorrectly. The issue is resolved by aligning cells to the pixel grid.

This behavior was achieved previously by first applying integer
truncation before casting to a float.

Fixes #844.
2017-10-17 10:15:24 -07:00
Joe Wilm d3151dfbf9 Fix config reloading
Must have been broken when upgrading notify-rs
2017-10-16 18:38:57 -07:00
Joe Wilm 1cf9a179bc Fix default config reload value
This shouldn't have any effect, but at least the default value is now
consistent with the default deserialization value.
2017-10-16 18:37:08 -07:00
Erik Nilsen 07e42b2e25 Use correct keyname for decreasing font size in MacOS (#843)
* Use correct keyname for decreasing font size in MacOS
* Prefer Command instead of Control to match other TEs
2017-10-16 09:57:05 -07:00