Re: [code] [textadept] Hiding/closing the command entry

From: Mitchell <>
Date: Wed, 13 Mar 2013 22:33:20 -0400 (EDT)

Hi Chris,

On Wed, 13 Mar 2013, Chris Emerson wrote:

> Hi,
> In textadept-ncurses I'm using gui.command_entry in a similar way to
> filter_through.lua, by intercepting events.COMMAND_ENTRY_KEYPRESS and
> events.COMMAND_ENTRY_COMMAND to do what I want.
> Is it possible to programatically hide the command_entry again? It seems
> to disappear if an ESC keypress passes through (after a delay, but I think
> that's to do with terminal key handling). Can I make it disappear at other
> times? gui.command_entry.focus() doesn't seem to have any effect (though
> some comments suggest it does, at least in the non-ncurses build), and
> neither does _G.buffer.focus() (in an attept to refocus the main buffer).

Unlike in GTK, when you call gui.command_entry.focus() in ncurses, the
command entry blocks for input so there is no way for control to be passed
back to Lua to programmatically close it. This is an unfortunate platform
limitation :(


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Wed 13 Mar 2013 - 22:33:20 EDT

This archive was generated by hypermail 2.2.0 : Thu 14 Mar 2013 - 06:46:27 EDT