Re: [code] [textadept] Auto-complete keys in Curses

From: Mitchell <>
Date: Mon, 2 Sep 2013 15:16:23 -0400 (EDT)


On Sat, 31 Aug 2013, Robert Gieseke wrote:

> Hi,
> I noted an inconsistency between the definition and documentation for the
> complete word short cut of the curses version. Don't know which one is
> supposed to be the right one.
> l. 39
> -- Ctrl+Enter |^⎋ |M-Enter^(†) |Complete word
> and
> l.392
> keys[not OSX and (not CURSES and 'c\n' or 'cmj')
> or 'cesc'] = m_editing.autocomplete_word
> if CURSES and WIN32 then keys['c\r'] = keys['cmj'] end

On non-Win32 platforms, Enter is ^J, so M-Enter is M-^J, or cmj. On Win32,
it is the more expected 'c\r' and thus mapped to cmj, the latter of which
I don't think is producable on Win32...

You can always experiment with curses key representations by uncommenting
the "if CURSES then gui.statusbar_text = ..." line in `core/keys.lua`.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Mon 02 Sep 2013 - 15:16:23 EDT

This archive was generated by hypermail 2.2.0 : Tue 03 Sep 2013 - 06:41:38 EDT