From eb5de3fc6818026daf64d8880cce97d941a96f3f Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 23 Dec 2014 23:27:49 -0500 Subject: Enable suspend in the terminal version. Patch libtermkey to allow this and also to support mouse enabling/disabling. Needed to change ^Z undo to M-Z and added M-S-Z as extra redo. --- core/ui.lua | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'core/ui.lua') diff --git a/core/ui.lua b/core/ui.lua index 4574fca0..c215ae09 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -401,18 +401,8 @@ events_connect(events.BUFFER_DELETED, function() if i and _BUFFERS[buffer] ~= i then view:goto_buffer(i) end end) --- Enables and disables mouse mode in curses and focuses and resizes views based --- on mouse events. +-- Focuses and resizes views based on mouse events in curses. if CURSES then - if not WIN32 then - io.stdout:write("\x1b[?1002h") -- enable mouse mode - io.stdout:flush() - events.connect(events.QUIT, function() - io.stdout:write("\x1b[?1002l") -- disable mouse mode - io.stdout:flush() - end) - end - -- Retrieves the view or split at the given terminal coordinates. -- @param view View or split to test for coordinates within. -- @param y The y terminal coordinate. -- cgit v1.2.3