1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 19:27:22 +03:00
A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
Go to file
Wez Furlong 028026049d add window:dead_key_is_active window:leader_is_active
This commit adds a couple of helper methods that provide insight into
the state of the keyboard layer.

The intent is for users to add status information about the keyboard
state.

This commit also ensures that we schedule an update when the leader
key duration expires, and ensures that we close out the leader state
for an invalid key press.

refs: #686
closes: #688

```lua
local wezterm = require 'wezterm';

wezterm.on("update-right-status", function(window, pane)
  local leader = ""
  if window:leader_is_active() then
    leader = "LEADER"
  end
  local dead = ""
  if window:dead_key_active() then
    dead = "DEAD"
  end
  window:set_right_status(leader .. " " .. dead)
end);

return {
  leader = { key="a", mods="CTRL" },
  colors = {
    dead_key_cursor = "orange",
  },
}
```
2022-01-02 19:41:21 -07:00
.cargo build static on windows for static openssl linkage 2020-02-02 13:03:07 -08:00
.github Revert "ci: add centos 9" 2022-01-01 17:45:24 -07:00
assets Sync with iTerm2-Color-Schemes 2021-12-31 10:43:30 -07:00
async_ossl Raise minimum Rust version to 1.51, de-vendor openssl on unix 2021-03-25 09:43:50 -07:00
base91 dyn everywhere 2019-06-08 21:28:11 -07:00
bintree bintree: clippy lint 2021-03-26 09:01:54 -07:00
ci Revert "ci: add centos 9" 2022-01-01 17:45:24 -07:00
codec quickselect: de-dup labels 2021-12-09 09:50:32 -07:00
color-types reduce to a single draw call 2021-07-31 00:23:16 -07:00
config add colors.dead_key_cursor to signal dead and leader key processing 2022-01-02 17:49:32 -07:00
deps upgrade freetype to 2.11.1 2021-12-20 08:22:34 -07:00
docs add window:dead_key_is_active window:leader_is_active 2022-01-02 19:41:21 -07:00
env-bootstrap env: put appimage bin dir into path 2021-12-01 08:42:02 -07:00
filedescriptor filedescriptor: 0.8.1 release 2021-08-23 08:59:44 -07:00
licenses macOS: bundle and use MetalANGLE to enable Metal rendering 2020-10-17 09:34:01 -07:00
luahelper Add get_foreground_process_name, expose it and cwd in PaneInformation 2021-12-23 18:49:17 -07:00
mux mux: fix unix build 2022-01-01 11:38:42 -07:00
procinfo procinfo: tidy up windows impl a bit 2022-01-01 10:01:19 -07:00
promise deps: misc updates 2020-12-29 09:24:34 -08:00
pty term: ignore first OSC title change sequence on Windows 2021-12-25 01:10:37 -07:00
rangeset Speedup font loading with fontconfig and freetype. 2021-09-06 10:53:01 -07:00
ratelim move ratelim to its own crate 2020-10-03 11:15:57 -07:00
strip-ansi-escapes move strip-ansi-escapes into its own crate 2020-10-03 11:15:57 -07:00
tabout termwiz: s/Fuschia/Fuchsia/g 2021-12-21 20:38:59 -07:00
term termwiz: make seqno a required param for Line 2021-12-29 08:34:59 -07:00
termwiz termwiz: sync with upstream wichdechar_width 2022-01-01 08:18:41 -07:00
test-data Respect emoji-variation-sequences.txt 2021-11-25 14:37:24 -07:00
tmux-cc tmux-cc: fix suspicious-looking decimal literals 2021-10-27 12:56:48 -07:00
umask Take care to restore the original umask 2021-01-07 09:20:13 -08:00
vtparse vtparse: publish 0.6.0 2021-12-22 13:00:17 -07:00
wezterm clarify the purpose of wezterm start in the --help output 2022-01-01 12:44:38 -07:00
wezterm-client termwiz: make seqno a required param for Line 2021-12-29 08:34:59 -07:00
wezterm-font fonts: fix fontconfig monospace alias resolution 2022-01-02 08:26:19 -07:00
wezterm-gui add window:dead_key_is_active window:leader_is_active 2022-01-02 19:41:21 -07:00
wezterm-gui-subcommands ssh: allow wezterm ssh -v to log verbose diagnostics to stderr 2021-10-25 15:56:36 -07:00
wezterm-input-types window: generate RawKeyEvents on X11/Wayland 2022-01-02 16:14:40 -07:00
wezterm-mux-server mux server: redirect stdout,stderr to log file on Windows 2021-12-05 10:11:43 -08:00
wezterm-mux-server-impl deps: update 2021-12-20 08:15:56 -07:00
wezterm-ssh termwiz: s/Fuschia/Fuchsia/g 2021-12-21 20:38:59 -07:00
wezterm-toast-notification fix unix build for zbus updates 2021-12-27 10:33:41 -07:00
window window: implement dead key status events for x11/wayland 2022-01-02 17:20:29 -07:00
.cirrus.yml Ensure /run/sshd exists, explicitly set username in sshd fixture, add back use_privilege_mode no 2021-10-10 14:54:45 -07:00
.gitignore mux: understand process tree, add mux-is-process-stateful event 2021-12-18 09:46:00 -07:00
.gitmodules repoint to my freetype mirror 2021-02-03 21:56:30 -08:00
.rustfmt.toml Make rustfmt happy about "async move" 2020-01-20 13:58:21 -08:00
Cargo.lock window: track phys_code on X11/Wayland 2022-01-02 00:47:04 -07:00
Cargo.toml remove patched openssl-sys crate 2021-11-03 06:38:20 -07:00
CONTRIBUTING.md Add get-deps script for installing dependencies 2018-02-25 09:24:56 -08:00
get-deps Apply suggestions from code review 2021-11-09 07:47:57 -08:00
LICENSE.md gui: bundle and use Roboto for title font on Linux + Windows 2021-12-30 17:51:22 -07:00
README.md Update wording in README.md 2021-05-19 19:08:57 -07:00
wt-record fixup wt-record on darwin 2021-03-20 20:14:17 -07:00
wt-replay update record/play scripts for macos 2019-03-22 20:41:50 -07:00

Wez's Terminal

WezTerm Icon A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust

User facing docs and guide at: https://wezfurlong.org/wezterm/

Screenshot

Screenshot of wezterm on macOS, running vim

Installation

https://wezfurlong.org/wezterm/installation.html

Getting help

This is a spare time project, so please bear with me. There are a couple of channels for support:

  • You can use the GitHub issue tracker to see if someone else has a similar issue, or to file a new one.
  • Start or join a thread in our GitHub Discussions; if you have general questions or want to chat with other wezterm users, you're welcome here!
  • There is a Matrix room via Element.io for (potentially!) real time discussions.

The GitHub Discussions and Element/Gitter rooms are better suited for questions than bug reports, but don't be afraid to use whichever you are most comfortable using and we'll work it out.