コード例 #1
0
ファイル: inchstr.c プロジェクト: VargMon/netbsd-curses
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);
}
コード例 #2
0
ファイル: inchstr.c プロジェクト: Acularius/Pixel-Brother
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);
}
コード例 #3
0
ファイル: inchstr.c プロジェクト: Acularius/Pixel-Brother
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);
}
コード例 #4
0
ファイル: inchstr.c プロジェクト: Acularius/Pixel-Brother
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);
}
コード例 #5
0
ファイル: inchstr.c プロジェクト: Acularius/Pixel-Brother
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);
}
コード例 #6
0
ファイル: curs_spec.c プロジェクト: guildhall/guile-ncurses
/* 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;
}
コード例 #7
0
ファイル: inchstr.c プロジェクト: Acularius/Pixel-Brother
int win_wchnstr(WINDOW *win, cchar_t *wch, int n)
{
    PDC_LOG(("win_wchnstr() - called\n"));

    return winchnstr(win, wch, n);
}
コード例 #8
0
ファイル: inchstr.c プロジェクト: Acularius/Pixel-Brother
int inchnstr(chtype *ch, int n)
{
    PDC_LOG(("inchnstr() - called\n"));

    return winchnstr(stdscr, ch, n);
}
コード例 #9
0
ファイル: lib_gen.c プロジェクト: rafuch0/MyNPMClient
NCURSES_EXPORT(int) (inchstr) (chtype * z)
{
	T((T_CALLED("inchstr(%p)"), (const void *)z)); returnCode(winchnstr(stdscr, z, -1));
}
コード例 #10
0
ファイル: inchstr.c プロジェクト: VargMon/netbsd-curses
int
winchstr(WINDOW *win, chtype *chstr)
{

	return winchnstr(win, chstr, -1);
}
コード例 #11
0
ファイル: _inchnstr.c プロジェクト: alarcher/illumos-gate
int
inchnstr(chtype *s, int n)
{
	return (winchnstr(stdscr, s, n));
}
コード例 #12
0
ファイル: lib_gen.c プロジェクト: rafuch0/MyNPMClient
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));
}
コード例 #13
0
ファイル: lib_gen.c プロジェクト: rafuch0/MyNPMClient
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)));
}
コード例 #14
0
ファイル: lib_gen.c プロジェクト: rafuch0/MyNPMClient
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)));
}
コード例 #15
0
ファイル: inchstr.c プロジェクト: Acularius/Pixel-Brother
int inchstr(chtype *ch)
{
    PDC_LOG(("inchstr() - called\n"));

    return winchnstr(stdscr, ch, stdscr->_maxx - stdscr->_curx);
}
コード例 #16
0
ファイル: inchstr.c プロジェクト: Acularius/Pixel-Brother
int winchstr(WINDOW *win, chtype *ch)
{
    PDC_LOG(("winchstr() - called\n"));

    return winchnstr(win, ch, win->_maxx - win->_curx);
}
コード例 #17
0
ファイル: inchstr.c プロジェクト: VargMon/netbsd-curses
int
inchnstr(chtype *chstr, int n)
{
	return winchnstr(stdscr, chstr, n);
}
コード例 #18
0
EIF_INTEGER c_ecurses_winchnstr (EIF_POINTER w, EIF_POINTER chrstr, EIF_INTEGER n)
{
    return winchnstr( ((WINDOW *) w), (chtype*) chrstr, (int) n) ;
};
コード例 #19
0
ファイル: lib_gen.c プロジェクト: rafuch0/MyNPMClient
NCURSES_EXPORT(int) (inchnstr) (chtype * a1, int z)
{
	T((T_CALLED("inchnstr(%p,%d)"), (const void *)a1, z)); returnCode(winchnstr(stdscr,a1,z));
}