From dfb1b3bb5c5e9d9d9ee23f3f5bcc84fe6602392d Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Tue, 10 Jan 2017 21:21:19 -0800 Subject: Add support for setting title from OSC Resolves #23 Resolves #144 --- src/window.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/window.rs') 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 { -- cgit