aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-10-30 01:50:21 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2016-10-30 01:50:21 +0200
commit7c6cf420751cfe0f1224fd8d6b83fff209b2f032 (patch)
treebf24b6f743968926df0c4615670f718c581a36ba
parent414a525c4ddff7f61df74944adb88e36ae2003f0 (diff)
downloadxK-7c6cf420751cfe0f1224fd8d6b83fff209b2f032.tar.gz
xK-7c6cf420751cfe0f1224fd8d6b83fff209b2f032.tar.xz
xK-7c6cf420751cfe0f1224fd8d6b83fff209b2f032.zip
thin-cursor.lua: update comments
-rw-r--r--plugins/degesch/thin-cursor.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/degesch/thin-cursor.lua b/plugins/degesch/thin-cursor.lua
index ff75385..13b5f5c 100644
--- a/plugins/degesch/thin-cursor.lua
+++ b/plugins/degesch/thin-cursor.lua
@@ -15,13 +15,14 @@
-- OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
-- CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
--
-
--- If tmux doesn't work, add the following to the configuration and reload it:
+-- If tmux doesn't work, add the following to its configuration:
-- set -as terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
-- Change the "2" as per http://invisible-island.net/xterm/ctlseqs/ctlseqs.html
local out = io.output ()
out:write ("\x1b[6 q"):flush ()
+
+-- By registering a global variable, we get notified about plugin unload
x = setmetatable ({}, { __gc = function ()
out:write ("\x1b[2 q"):flush ()
end })