Ejemplo n.º 1
0
        unsafe internal static void Init()
        {
            Curses.initscr();
            Curses.Init();
            IntPtr ptr;

            Curses.Module.TryGetSymbol("stdscr", out ptr);
            Standard = new Window(new IntPtr(*(int *)ptr.ToPointer()));

            Curses.Module.TryGetSymbol("newscr", out ptr);
            New = new Window(new IntPtr(*(int *)ptr.ToPointer()));

            Curses.Module.TryGetSymbol("curscr", out ptr);
            Current = new Window(new IntPtr(*(int *)ptr.ToPointer()));
        }