[Mono-dev] Playing with Mono.Terminal, no success

Miguel de Icaza miguel at novell.com
Tue May 25 12:56:18 EDT 2010


> However, clicking on Terminal->Reset gives me a bit of an idea whats going off here.
> Mono-curses is in my GAC, and mono-curses.dll is also in the folder with the executable; I've tried removing and re-gac'ing the assembly, with the package option too.

This means that it cant load libmono-curses.so, the dynamic library.

I will add a check so people can figure out what is going on.

> 
> ~/Projects/test/test/bin/Debug $ mono test.exe; stty
> Curses failed to initialize, the exception is: System.TypeInitializationException:
>         An exception was thrown by the type initializer for Mono.Terminal.Window --->           System.DllNotFoundException: mono-curses
>                 at (wrapper managed-to-native)
>                         Mono.Terminal.Curses:console_sharp_get_dims (int&,int&)
>                 at Mono.Terminal.Curses.initscr () [0x00000]
>             at Mono.Terminal.Window..cctor () [0x00000]
> --- End of inner exception stack trace ---
>         at Mono.Terminal.Curses.initscr () [0x00000]
>       at Mono.Terminal.Application.Init (Boolean disable_color) [0x00000]
> Unhandled Exception: System.Exception: Application.Init failed
>         at Mono.Terminal.Application.Init (Boolean disable_color) [0x00000]
>       at clustermgr.MainClass.Main (System.String[] args) [0x00000]
> 
> Hope this helps someone!
> -Russ
> 
> -----Original Message-----
> From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of pablosantosluac at terra.es
> Sent: 11 May 2010 08:21
> To: Miguel de Icaza
> Cc: mono-devel-list at lists.ximian.com; miguel.novell at gmail.com
> Subject: Re: [Mono-dev] Playing with Mono.Terminal, no success
> 
> 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
> ==============================
> 
> 
> 
> 
> EIBS Ltd
> Unit 3, Wilford Business Park
> Ruddington Lane, Nottingham NG11 7EP
> T: 0115 977 5400 F: 0115 977 5401 www.eibs.co.uk<http://www.eibs.co.uk>
> 
> The information conveyed in this e-mail is intended for the named recipient(s) only and may be privileged or confidential. If you are not an intended recipient, please notify the sender immediately and delete the e-mail. You must not reproduce, distribute, store, retransmit, use or disclose its contents to anyone.
> 
> The views expressed may not be official policy, but the personal views of the originator.
> 
> Whilst every effort has been taken to ensure protection against virus infection, we cannot accept any responsibility for viruses.
> 
> Please note that we reserve the right to monitor all e-mail communication.
> ==============================
> EIBS Ltd, Unit 3 Wilford Business Park, Ruddington Lane, Nottingham, NG11 7EP
> 
> Tel: +44 (0)8700 129 029  Fax: +44 (0)8700 129 030
> http://www.eibs.co.uk/    Simplifying eContent
> 
> The information conveyed in this e-mail is intended for the named recipient(s) only and may be privileged or confidential. If you are not an intended recipient, please notify the sender immediately and delete the e-mail. You must not reproduce, distribute, store, retransmit, use or disclose its contents to anyone.
> 
> The views expressed may not be official policy, but the personal views of the originator.
> 
> Whilst every effort has been taken to ensure protection against virus infection, we cannot accept any responsibility for viruses.
> 
> Please note that EIBS Ltd reserve the right to monitor all e-mail communication.




More information about the Mono-devel-list mailing list