Re: [code] Can I access the menu-bar with the Curses UI?

From: Mitchell <m.att.foicica.com>
Date: Tue, 23 Jul 2019 14:17:40 -0400 (EDT)

Hi David,

On Tue, 23 Jul 2019, David Tamar wrote:

> Hi, I didn't try the Curses UI until now, but since I use Midnight Commander quite a lot, I thought maybe using the Curses version of Textadept would be more appropriate for MC usage because it's a terminal application that uses Curses too.
>
> I launched Textadept with Curses and it appears that some of my keybindings that depend on various menu-bar items are no longer functional and cause the init file to fail since the menu-bar appears to be unavailable (nil) in Curses? Or am I missing something? I looked in the docs but I can't figure out how to access the top menu-bar in Curses.
>
> My Textadept version is 10.5 and it is built successfully on Debian (testing).

While the menubar is not visible in curses, you can access its contents via `textadept.menu.menubar`, just like in GUI Textadept. Thus, keybindings should work without issue. What code are you using that is causing trouble?

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 23 Jul 2019 - 14:17:40 EDT

This archive was generated by hypermail 2.2.0 : Wed 24 Jul 2019 - 06:57:14 EDT