Re: [code] Plans for Textadept NCurses mode?

From: Mitchell <m.att.foicica.com>
Date: Fri, 13 Jul 2012 13:00:49 -0400 (Eastern Daylight Time)

Brian,

On Fri, 13 Jul 2012, Brian Schott wrote:

> 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.

Okay thanks. Fix committed to hg.

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 Fri 13 Jul 2012 - 13:00:49 EDT

This archive was generated by hypermail 2.2.0 : Sat 14 Jul 2012 - 06:32:31 EDT