Example #1
0
        public static int PadEchoChar(IntPtr pad, int character)
        {
            int result = Native.pechochar(pad, character);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(PadEchoChar));
            return(result);
        }
Example #2
0
        public static IntPtr NewWindow(int rows, int columns, int yOrigin, int xOrigin)
        {
            IntPtr result = Native.newwin(rows, columns, yOrigin, xOrigin);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(NewWindow));
            return(result);
        }
        public static int AddString(string stringToAdd)
        {
            int result = Native.addstr(stringToAdd);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(AddString));
            return(result);
        }
Example #4
0
 public static void GetYX(IntPtr window, out int y, out int x)
 {
     y = Native.getcury(window);
     NativeExceptionHelper.ThrowOnFailure(y, nameof(GetYX));
     x = Native.getcurx(window);
     NativeExceptionHelper.ThrowOnFailure(x, nameof(GetYX));
 }
Example #5
0
        public static int MoveWindowAddString(IntPtr window, int y, int x, string message)
        {
            int result = Native.mvwaddstr(window, y, x, message);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(MoveWindowAddString));
            return(result);
        }
        public static int MoveAddString(int y, int x, string message)
        {
            int result = Native.mvaddstr(y, x, message);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(MoveAddString));
            return(result);
        }
        public static int SetCursor(int cursorState)
        {
            int result = Native.curs_set(cursorState);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(SetCursor));
            return(result);
        }
Example #8
0
        public static int WindowRefresh(IntPtr window)
        {
            int result = Native.wrefresh(window);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(WindowRefresh));
            return(result);
        }
Example #9
0
        public static int DeleteWindow(IntPtr window)
        {
            int result = Native.delwin(window);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(DeleteWindow));
            return(result);
        }
Example #10
0
        public static int WindowAddString(IntPtr window, string message)
        {
            int result = Native.waddstr(window, message);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(WindowAddString));
            return(result);
        }
Example #11
0
        public static int WindowGetChar(IntPtr window)
        {
            int result = Native.wgetch(window);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(WindowGetChar));
            return(result);
        }
Example #12
0
        public static int WindowAddChar(IntPtr window, int character)
        {
            int result = Native.waddch(window, character);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(WindowAddChar));
            return(result);
        }
Example #13
0
        public static int TouchWindow(IntPtr window)
        {
            int result = Native.touchwin(window);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(TouchWindow));
            return(result);
        }
Example #14
0
        public static IntPtr SubWindow(IntPtr parent, int rows, int columns, int y, int x)
        {
            IntPtr result = Native.subwin(parent, rows, columns, y, x);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(SubWindow));
            return(result);
        }
        public static int Move(int y, int x)
        {
            int result = Native.move(y, x);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(Move));
            return(result);
        }
Example #16
0
        public static IntPtr DeriveWindow(IntPtr window, int rows, int columns, int y, int x)
        {
            IntPtr result = Native.derwin(window, rows, columns, y, x);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(DeriveWindow));
            return(result);
        }
        public static int MoveAddChar(int y, int x, uint character)
        {
            int result = Native.mvaddch(y, x, character);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(MoveAddChar));
            return(result);
        }
Example #18
0
        public static IntPtr DuplicateWindow(IntPtr window)
        {
            IntPtr result = Native.dupwin(window);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(DuplicateWindow));
            return(result);
        }
        public static int Refresh()
        {
            int result = Native.refresh();

            NativeExceptionHelper.ThrowOnFailure(result, nameof(Refresh));
            return(result);
        }
        public static int InitPair(short color, short foreground, short background)
        {
            int result = Native.init_pair(color, foreground, background);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(InitPair));
            return(result);
        }
Example #21
0
        public static IntPtr NewPad(int row, int column)
        {
            IntPtr result = Native.newpad(row, column);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(NewPad));
            return(result);
        }
Example #22
0
        public static int Nap(int milliseconds)
        {
            int result = Native.napms(milliseconds);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(Nap));
            return(result);
        }
Example #23
0
        public static IntPtr InitScreen()
        {
            IntPtr result = Native.initscr();

            NativeExceptionHelper.ThrowOnFailure(result, nameof(InitScreen));
            return(result);
        }
        public static int AddChar(int ch)
        {
            int result = Native.addch(ch);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(AddChar));
            return(result);
        }
Example #25
0
        /// <summary>
        /// Individual characters will be returned (rather than "cooked" line-input mode) with no internal processing of control characters.
        /// </summary>
        public static void Raw()
        {
            int result = Native.raw();

            NativeExceptionHelper.ThrowOnFailure(result, nameof(Raw));
        }
Example #26
0
        public static void NoEcho()
        {
            int result = Native.noecho();

            NativeExceptionHelper.ThrowOnFailure(result, nameof(NoEcho));
        }
Example #27
0
        /// <summary>
        /// Returns the terminal to "cooked" line-input mode.
        /// </summary>
        public static void NoCBreak()
        {
            int result = Native.nocbreak();

            NativeExceptionHelper.ThrowOnFailure(result, nameof(NoCBreak));
        }
Example #28
0
        public static void EndWin()
        {
            int result = Native.endwin();

            NativeExceptionHelper.ThrowOnFailure(result, nameof(EndWin));
        }
        public static void ColorContent(short color, out short red, out short green, out short blue)
        {
            int result = Native.color_content(color, out red, out green, out blue);

            NativeExceptionHelper.ThrowOnFailure(result, nameof(ColorContent));
        }
        public static void ClearToBottom()
        {
            int result = Native.clrtobot();

            NativeExceptionHelper.ThrowOnFailure(result, nameof(ClearToBottom));
        }