diff options
author | Joe Wilm <joe@jwilm.com> | 2017-01-10 21:21:19 -0800 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-01-11 09:07:31 -0800 |
commit | dfb1b3bb5c5e9d9d9ee23f3f5bcc84fe6602392d (patch) | |
tree | fd1cbff66bbc40993ddcb89a6b62e53f06652e79 /src/window.rs | |
parent | 4fb7801ba3515922e3dbb8b27c1c28ec2efaf22b (diff) | |
download | alacritty-dfb1b3bb5c5e9d9d9ee23f3f5bcc84fe6602392d.tar.gz alacritty-dfb1b3bb5c5e9d9d9ee23f3f5bcc84fe6602392d.zip |
Add support for setting title from OSC
Resolves #23
Resolves #144
Diffstat (limited to 'src/window.rs')
-rw-r--r-- | src/window.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window.rs b/src/window.rs index 40729e99..a5f6e2c6 100644 --- a/src/window.rs +++ b/src/window.rs @@ -282,6 +282,12 @@ impl Window { pub fn wait_events(&self) -> glutin::WaitEventsIterator { self.glutin_window.wait_events() } + + /// Set the window title + #[inline] + pub fn set_title(&self, title: &str) { + self.glutin_window.set_title(title); + } } impl Proxy { |