diff options
author | 2013-04-05 21:09:51 -0400 | |
---|---|---|
committer | 2013-04-05 21:09:51 -0400 | |
commit | ce6262d946f17086d04737737442d3677b375be4 (patch) | |
tree | fa75e959b5f6bad9801cdd3b2a3c0373bf63c911 /core | |
parent | 0a6a313f3be31e3767c04b894e202790ef32d52d (diff) | |
download | textadept-ce6262d946f17086d04737737442d3677b375be4.tar.gz textadept-ce6262d946f17086d04737737442d3677b375be4.zip |
Initial support for Windows terminal via pdcurses.
Diffstat (limited to 'core')
-rw-r--r-- | core/args.lua | 2 | ||||
-rw-r--r-- | core/keys.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/args.lua b/core/args.lua index dedfc22e..15b614d3 100644 --- a/core/args.lua +++ b/core/args.lua @@ -80,7 +80,7 @@ end if not CURSES then M.register('-h', '--help', 0, show_help, 'Shows this') end -- For Windows, create arg table from single command line string (arg[0]). -if WIN32 and #arg[0] > 0 then +if WIN32 and not CURSES and #arg[0] > 0 then local P, C = lpeg.P, lpeg.C local param = P('"') * C((1 - P('"'))^0) * '"' + C((1 - P(' '))^1) local params = lpeg.match(lpeg.Ct(param * (P(' ')^1 * param)^0), arg[0]) diff --git a/core/keys.lua b/core/keys.lua index 5d599482..f1bfb7d1 100644 --- a/core/keys.lua +++ b/core/keys.lua @@ -112,7 +112,7 @@ local error = function(e) events.emit(events.ERROR, e) end -- @name KEYSYMS M.KEYSYMS = { -- From Scintilla.h and cdk/curdefs.h. - [7] = 'esc', [8] = '\b', [9] = '\t', [13] = '\n', [27] = 'esc', + [7] = 'esc', [8] = '\b', [9] = '\t', [13] = '\n', [27] = 'esc', [127] = 'del', -- From curses.h. [263] = '\b', -- From Scintilla.h. |