[Mono-dev] Playing with Mono.Terminal, no success
pablosantosluac at terra.es
pablosantosluac at terra.es
Thu May 20 05:29:58 EDT 2010
Hi,
Any updates on this?
Thanks,
pablo
On 11/05/2010 9:21, pablosantosluac at terra.es wrote:
> Hi Miguel,
>
> Well, here's my code (I tried a different example than the one sent before)
>
> using System;
> using Mono.Terminal;
>
> namespace clustermgr
> {
> class MainClass
> {
> public static void Main(string[] args)
> {
> Application.Init(false);
> Dialog d = new Dialog (40, 8, "Print");
> Button b = new Button ("All Pages");
> b.Clicked += delegate {
> d.Running = false;
> };
> d.AddButton (b);
>
> b = new Button ("Current Page");
> b.Clicked += delegate {
> d.Running = false;
> };
> d.AddButton (b);
>
> Application.Iteration += delegate {
> Application.Refresh();
> };
>
> Application.Run(d);
> }
> }
> }
>
> Problem is that the app ends immediately, I don't see anything on the
> screen... Maybe I'm just misunderstanding the whole thing, I don't know...
>
> pablo
>
>
> On 10/05/2010 20:33, Miguel de Icaza wrote:
>> Hello,
>>
>>> I'm trying the simple sample at: http://www.mono-project.com/MonoCurses
>>>
>>> Application.Init (false);
>>> Dialog d = new Dialog (40, 8, "Hello");
>>>
>>> d.Add (new Label (0, 0, "Hello World"));
>>> Application.Run (d);
>>>
>>> on an OpenSuse box.
>>>
>>> But it doesn't work for me, it just exits and breaks the terminal... :-(
>>
>> Run your program like this to make sure it does not leave you in a
>> broken state:
>>
>> mono sample.exe; stty sane
>>
>> Please post a full sample and I'll take a look at it.
>>
>>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
More information about the Mono-devel-list
mailing list