aboutsummaryrefslogtreecommitdiff
path: root/core/ui.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2014-12-23 23:27:49 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2014-12-23 23:27:49 -0500
commiteb5de3fc6818026daf64d8880cce97d941a96f3f (patch)
tree358f8ecedc552aa8420d2f70aa3396e165a717b2 /core/ui.lua
parentbef10e0044c6abeaaa52b0fd1816b344f9ff4245 (diff)
downloadtextadept-eb5de3fc6818026daf64d8880cce97d941a96f3f.tar.gz
textadept-eb5de3fc6818026daf64d8880cce97d941a96f3f.zip
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.
Diffstat (limited to 'core/ui.lua')
-rw-r--r--core/ui.lua12
1 files changed, 1 insertions, 11 deletions
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.