int mvwinchnstr(WINDOW *win, int y, int x, chtype *chstr, int n) { if (wmove(win, y, x) == ERR) return ERR; return winchnstr(win, chstr, n); }
int mvwinchnstr(WINDOW *win, int y, int x, chtype *ch, int n) { PDC_LOG(("mvwinchnstr() - called: y %d x %d n %d \n", y, x, n)); if (wmove(win, y, x) == ERR) return ERR; return winchnstr(win, ch, n); }
int mvinchnstr(int y, int x, chtype *ch, int n) { PDC_LOG(("mvinchnstr() - called: y %d x %d n %d\n", y, x, n)); if (move(y, x) == ERR) return ERR; return winchnstr(stdscr, ch, n); }
int mvwinchstr(WINDOW *win, int y, int x, chtype *ch) { PDC_LOG(("mvwinchstr() - called:\n")); if (wmove(win, y, x) == ERR) return ERR; return winchnstr(win, ch, win->_maxx - win->_curx); }
int mvinchstr(int y, int x, chtype *ch) { PDC_LOG(("mvinchstr() - called: y %d x %d\n", y, x)); if (move(y, x) == ERR) return ERR; return winchnstr(stdscr, ch, stdscr->_maxx - stdscr->_curx); }
/* Returns a string of N characters and sttributes from the current window */ SCM gucu_winchnstr (SCM win, SCM n) { WINDOW *c_win; SCM s_str; int c_n; c_win = _scm_to_window (win); c_n = scm_to_int (n); if (c_n == -1) c_n = COLS; #ifdef HAVE_NCURSESW { int ret; cchar_t *c_cstr = (cchar_t *) scm_malloc (sizeof (cchar_t) * (c_n + 1)); ret = win_wchnstr (c_win, c_cstr, c_n); if (ret == ERR) return SCM_BOOL_F; s_str = _scm_xstring_from_cstring (c_cstr); free (c_cstr); } #else { int ret; chtype *c_chstr = (chtype *) scm_malloc (sizeof (chtype) * (c_n + 1)); ret = winchnstr (_scm_to_window (win), c_chstr, scm_to_int (n)); if (ret != ERR) { s_str = _scm_xstring_from_chstring (c_chstr); free (c_chstr); } else abort (); } #endif return s_str; }
int win_wchnstr(WINDOW *win, cchar_t *wch, int n) { PDC_LOG(("win_wchnstr() - called\n")); return winchnstr(win, wch, n); }
int inchnstr(chtype *ch, int n) { PDC_LOG(("inchnstr() - called\n")); return winchnstr(stdscr, ch, n); }
NCURSES_EXPORT(int) (inchstr) (chtype * z) { T((T_CALLED("inchstr(%p)"), (const void *)z)); returnCode(winchnstr(stdscr, z, -1)); }
int winchstr(WINDOW *win, chtype *chstr) { return winchnstr(win, chstr, -1); }
int inchnstr(chtype *s, int n) { return (winchnstr(stdscr, s, n)); }
NCURSES_EXPORT(int) (winchstr) (WINDOW * a1, chtype * z) { T((T_CALLED("winchstr(%p,%p)"), (const void *)a1, (const void *)z)); returnCode(winchnstr(a1, z, -1)); }
NCURSES_EXPORT(int) (mvwinchstr) (WINDOW * a1, int a2, int a3, chtype * z) { T((T_CALLED("mvwinchstr(%p,%d,%d,%p)"), (const void *)a1, a2, a3, (const void *)z)); returnCode((wmove(a1,a2,a3) == (-1) ? (-1) : winchnstr(a1, z, -1))); }
NCURSES_EXPORT(int) (mvinchstr) (int a1, int a2, chtype * z) { T((T_CALLED("mvinchstr(%d,%d,%p)"), a1, a2, (const void *)z)); returnCode((wmove(stdscr,a1,a2) == (-1) ? (-1) : winchnstr(stdscr, z, -1))); }
int inchstr(chtype *ch) { PDC_LOG(("inchstr() - called\n")); return winchnstr(stdscr, ch, stdscr->_maxx - stdscr->_curx); }
int winchstr(WINDOW *win, chtype *ch) { PDC_LOG(("winchstr() - called\n")); return winchnstr(win, ch, win->_maxx - win->_curx); }
int inchnstr(chtype *chstr, int n) { return winchnstr(stdscr, chstr, n); }
EIF_INTEGER c_ecurses_winchnstr (EIF_POINTER w, EIF_POINTER chrstr, EIF_INTEGER n) { return winchnstr( ((WINDOW *) w), (chtype*) chrstr, (int) n) ; };
NCURSES_EXPORT(int) (inchnstr) (chtype * a1, int z) { T((T_CALLED("inchnstr(%p,%d)"), (const void *)a1, z)); returnCode(winchnstr(stdscr,a1,z)); }