Re: [code] Plans for Textadept NCurses mode?

From: Brian Schott <briancschott.att.gmail.com>
Date: Fri, 13 Jul 2012 02:31:57 -0700

Create a c++ file like this:

#include <iostream>

using namespace std;

int main()
{
        cerr << "Test" << endl;
        return 0;
}

Then add this to your init.lua

function showProblem()
        f = io.popen("~/test")
        t = f:read("*all")
        buffer:auto_c_show(buffer.current_pos, t)
end
keys["."] = showProblem

It may be the case that the output is always shown, but if the
function causes the screen to change in any way, ncurses overwrites it
before it can be seen.

On Thu, Jul 12, 2012 at 11:07 AM, Mitchell <m.att.foicica.com> wrote:
> Brian,
>
> On Wed, 27 Jun 2012, Brian Schott wrote:
>
>> I built a copy of TA with ncurses support. It seems like very fun
>> idea. A few questions so far:
>> 1) Will there be support for having Ctrl+c be "cut" instead of sending
>> SIGINT? Same with key combos like shift+up extending selection up one
>> line, etc.
>> 2) I noticed that the stderr output of a child process that I use for
>> a plugin seems to mess up the window. Will it be the responsibility of
>> script authors to redirect this to /dev/null, or will TA eventually
>> handle this?
>> 3) Is support for terminal window resize events planned?
>> 4) Can the makefile be modified to build both versions? I currently
>> have a "textadept" (gtk) and "ta" (curses) binary on my PATH.
>
>
> I've pushed some fixes to hg for 1 and 3, but I cannot reproduce 2. Do you
> have an example? I tried running a child process that prints to stderr but
> didn't see anything.
>
>
> 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.
>

-- 
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 Fri 13 Jul 2012 - 05:31:57 EDT

This archive was generated by hypermail 2.2.0 : Fri 13 Jul 2012 - 06:33:44 EDT