public Form(string text) { f_Handle = StflApi.stfl_create(text); // initialize ncurses StflApi.stfl_run(f_Handle, -3); //StflApi.raw(); NcursesApi.nocbreak(); }
static void Main() { //IntPtr handle = StflApi.stfl_create("<MainWindow.stfl>"); IntPtr handle = StflApi.stfl_create("vbox[vbox_1]"); StflApi.stfl_modify(handle, "vbox_1", "append", "textview[tv_0]"); StflApi.stfl_modify(handle, "vbox_1", "append", "textview[tv_2]"); StflApi.stfl_modify(handle, "vbox_1", "append", "textview[tv_3]"); StflApi.stfl_run(handle, 0); }
public virtual void Run(int timeout) { CheckDisposed(); string @event = StflApi.stfl_run(f_Handle, timeout); if (timeout == -3) { // HACK: timeout of -3 should never return an event but // sometimes does which causes event duplication return; } ProcessEvent(@event); }
public virtual void Run(int timeout) { string @event = StflApi.stfl_run(f_Handle, timeout); ProcessEvent(@event); }