Re: [Mono-dev] Playing with Mono.Terminal, no success
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... That is usually a crash, but you do not see it. Miguel ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Playing with Mono.Terminal, no success
Application.Iteration += delegate { Application.Refresh(); }; With the above you will be busy-looping. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Playing with Mono.Terminal, no success
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... It works fine for me. I bet the problem is that you did not install the shared library in a place where your dynamic linker can find it. LD_LIBRARY_PATH will help you here, or installing in a directory listed in /etc/ld.so.conf (and running /sbin/ldconfig after that) 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@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Playing with Mono.Terminal, no success
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 () [0x0] at Mono.Terminal.Window..cctor () [0x0] --- End of inner exception stack trace --- at Mono.Terminal.Curses.initscr () [0x0] at Mono.Terminal.Application.Init (Boolean disable_color) [0x0] Unhandled Exception: System.Exception: Application.Init failed at Mono.Terminal.Application.Init (Boolean disable_color) [0x0] at clustermgr.MainClass.Main (System.String[] args) [0x0] Hope this helps someone! -Russ -Original Message- From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of pablosantosl...@terra.es Sent: 11 May 2010 08:21 To: Miguel de Icaza Cc: mono-devel-list@lists.ximian.com; miguel.nov...@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@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.ukhttp://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
Re: [Mono-dev] Playing with Mono.Terminal, no success
Hi, Any updates on this? Thanks, pablo On 11/05/2010 9:21, pablosantosl...@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@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Playing with Mono.Terminal, no success
Hi, For what it's worth I tried the same code below, with the stty options and got some really weird terminal corruption; (Linux Mint 9). 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. ~/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 () [0x0] at Mono.Terminal.Window..cctor () [0x0] --- End of inner exception stack trace --- at Mono.Terminal.Curses.initscr () [0x0] at Mono.Terminal.Application.Init (Boolean disable_color) [0x0] Unhandled Exception: System.Exception: Application.Init failed at Mono.Terminal.Application.Init (Boolean disable_color) [0x0] at clustermgr.MainClass.Main (System.String[] args) [0x0] Hope this helps someone! -Russ -Original Message- From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of pablosantosl...@terra.es Sent: 11 May 2010 08:21 To: Miguel de Icaza Cc: mono-devel-list@lists.ximian.com; miguel.nov...@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@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.ukhttp://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. ___ Mono
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@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Playing with Mono.Terminal, no success
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@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Playing with Mono.Terminal, no success
Hi there, 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... :-( pablo ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list