Lines Matching refs:rtn

600     int rtn;  in curses_window_addch_impl()  local
619 rtn = mvwadd_wch(cwself->win,y,x, &wcval); in curses_window_addch_impl()
621 rtn = wadd_wch(cwself->win, &wcval); in curses_window_addch_impl()
631 rtn = mvwaddch(cwself->win,y,x, cch | attr); in curses_window_addch_impl()
633 rtn = waddch(cwself->win, cch | attr); in curses_window_addch_impl()
639 return PyCursesCheckERR(rtn, funcname); in curses_window_addch_impl()
645 int rtn; in PyCursesWindow_AddStr() local
698 rtn = mvwaddwstr(self->win,y,x,wstr); in PyCursesWindow_AddStr()
700 rtn = waddwstr(self->win,wstr); in PyCursesWindow_AddStr()
709 rtn = mvwaddstr(self->win,y,x,str); in PyCursesWindow_AddStr()
711 rtn = waddstr(self->win,str); in PyCursesWindow_AddStr()
716 return PyCursesCheckERR(rtn, funcname); in PyCursesWindow_AddStr()
722 int rtn, x, y, n; in PyCursesWindow_AddNStr() local
775 rtn = mvwaddnwstr(self->win,y,x,wstr,n); in PyCursesWindow_AddNStr()
777 rtn = waddnwstr(self->win,wstr,n); in PyCursesWindow_AddNStr()
786 rtn = mvwaddnstr(self->win,y,x,str,n); in PyCursesWindow_AddNStr()
788 rtn = waddnstr(self->win,str,n); in PyCursesWindow_AddNStr()
793 return PyCursesCheckERR(rtn, funcname); in PyCursesWindow_AddNStr()
955 int rtn; in PyCursesWindow_ChgAt() local
995 rtn = mvwchgat(self->win,y,x,num,attr,color,NULL); in PyCursesWindow_ChgAt()
999 rtn = wchgat(self->win,num,attr,color,NULL); in PyCursesWindow_ChgAt()
1002 return PyCursesCheckERR(rtn, "chgat"); in PyCursesWindow_ChgAt()
1009 int rtn; in PyCursesWindow_DelCh() local
1014 rtn = wdelch(self->win); in PyCursesWindow_DelCh()
1019 rtn = py_mvwdelch(self->win,y,x); in PyCursesWindow_DelCh()
1025 return PyCursesCheckERR(rtn, "[mv]wdelch"); in PyCursesWindow_DelCh()
1122 int rtn; in PyCursesWindow_GetCh() local
1127 rtn = wgetch(self->win); in PyCursesWindow_GetCh() local
1134 rtn = mvwgetch(self->win,y,x); in PyCursesWindow_GetCh() local
1141 return PyLong_FromLong((long)rtn); in PyCursesWindow_GetCh()
1148 int rtn; in PyCursesWindow_GetKey() local
1153 rtn = wgetch(self->win); in PyCursesWindow_GetKey() local
1160 rtn = mvwgetch(self->win,y,x); in PyCursesWindow_GetKey() local
1167 if (rtn == ERR) { in PyCursesWindow_GetKey()
1173 } else if (rtn <= 255) { in PyCursesWindow_GetKey()
1177 if (rtn < 0) { in PyCursesWindow_GetKey()
1178 rtn += 256; in PyCursesWindow_GetKey()
1182 return PyUnicode_FromOrdinal(rtn); in PyCursesWindow_GetKey()
1184 const char *knp = keyname(rtn); in PyCursesWindow_GetKey()
1195 wint_t rtn; in PyCursesWindow_Get_WCh() local
1200 ct = wget_wch(self->win,&rtn); in PyCursesWindow_Get_WCh()
1207 ct = mvwget_wch(self->win,y,x,&rtn); in PyCursesWindow_Get_WCh()
1223 return PyLong_FromLong(rtn); in PyCursesWindow_Get_WCh()
1225 return PyUnicode_FromOrdinal(rtn); in PyCursesWindow_Get_WCh()
1233 char rtn[1024]; /* This should be big enough.. I hope */ in PyCursesWindow_GetStr() local
1239 rtn2 = wgetnstr(self->win,rtn, 1023); in PyCursesWindow_GetStr()
1250 rtn2 = wgetnstr(self->win, rtn, Py_MIN(n, 1023)); in PyCursesWindow_GetStr()
1258 rtn2 = wmove(self->win,y,x)==ERR ? ERR : wgetnstr(self->win, rtn, 1023); in PyCursesWindow_GetStr()
1260 rtn2 = mvwgetnstr(self->win,y,x,rtn, 1023); in PyCursesWindow_GetStr()
1274 wgetnstr(self->win, rtn, Py_MIN(n, 1023)); in PyCursesWindow_GetStr()
1278 rtn2 = mvwgetnstr(self->win, y, x, rtn, Py_MIN(n, 1023)); in PyCursesWindow_GetStr()
1287 rtn[0] = 0; in PyCursesWindow_GetStr()
1288 return PyBytes_FromString(rtn); in PyCursesWindow_GetStr()
1338 int rtn, x, y, use_xy = FALSE; in PyCursesWindow_InsCh() local
1374 rtn = mvwinsch(self->win,y,x, ch | attr); in PyCursesWindow_InsCh()
1376 rtn = winsch(self->win, ch | attr); in PyCursesWindow_InsCh()
1378 return PyCursesCheckERR(rtn, "insch"); in PyCursesWindow_InsCh()
1385 unsigned long rtn; in PyCursesWindow_InCh() local
1389 rtn = winch(self->win); in PyCursesWindow_InCh()
1394 rtn = mvwinch(self->win,y,x); in PyCursesWindow_InCh()
1400 return PyLong_FromUnsignedLong(rtn); in PyCursesWindow_InCh()
1407 char rtn[1024]; /* This should be big enough.. I hope */ in PyCursesWindow_InStr() local
1412 rtn2 = winnstr(self->win,rtn, 1023); in PyCursesWindow_InStr()
1421 rtn2 = winnstr(self->win, rtn, Py_MIN(n, 1023)); in PyCursesWindow_InStr()
1426 rtn2 = mvwinnstr(self->win,y,x,rtn,1023); in PyCursesWindow_InStr()
1435 rtn2 = mvwinnstr(self->win, y, x, rtn, Py_MIN(n,1023)); in PyCursesWindow_InStr()
1442 rtn[0] = 0; in PyCursesWindow_InStr()
1443 return PyBytes_FromString(rtn); in PyCursesWindow_InStr()
1449 int rtn; in PyCursesWindow_InsStr() local
1504 rtn = mvwins_wstr(self->win,y,x,wstr); in PyCursesWindow_InsStr()
1506 rtn = wins_wstr(self->win,wstr); in PyCursesWindow_InsStr()
1515 rtn = mvwinsstr(self->win,y,x,str); in PyCursesWindow_InsStr()
1517 rtn = winsstr(self->win,str); in PyCursesWindow_InsStr()
1522 return PyCursesCheckERR(rtn, funcname); in PyCursesWindow_InsStr()
1528 int rtn, x, y, n; in PyCursesWindow_InsNStr() local
1582 rtn = mvwins_nwstr(self->win,y,x,wstr,n); in PyCursesWindow_InsNStr()
1584 rtn = wins_nwstr(self->win,wstr,n); in PyCursesWindow_InsNStr()
1593 rtn = mvwinsnstr(self->win,y,x,str,n); in PyCursesWindow_InsNStr()
1595 rtn = winsnstr(self->win,str,n); in PyCursesWindow_InsNStr()
1600 return PyCursesCheckERR(rtn, funcname); in PyCursesWindow_InsNStr()
1626 int rtn; in PyCursesWindow_NoOutRefresh() local
1643 rtn = pnoutrefresh(self->win, in PyCursesWindow_NoOutRefresh() local
1647 return PyCursesCheckERR(rtn, "pnoutrefresh"); in PyCursesWindow_NoOutRefresh()
1659 rtn = wnoutrefresh(self->win); in PyCursesWindow_NoOutRefresh() local
1661 return PyCursesCheckERR(rtn, "wnoutrefresh"); in PyCursesWindow_NoOutRefresh()
1671 int rtn; in PyCursesWindow_Overlay() local
1693 rtn = copywin(self->win, temp->win, sminrow, smincol, in PyCursesWindow_Overlay()
1695 return PyCursesCheckERR(rtn, "copywin"); in PyCursesWindow_Overlay()
1698 rtn = overlay(self->win, temp->win); in PyCursesWindow_Overlay()
1699 return PyCursesCheckERR(rtn, "overlay"); in PyCursesWindow_Overlay()
1709 int rtn; in PyCursesWindow_Overwrite() local
1731 rtn = copywin(self->win, temp->win, sminrow, smincol, in PyCursesWindow_Overwrite()
1733 return PyCursesCheckERR(rtn, "copywin"); in PyCursesWindow_Overwrite()
1736 rtn = overwrite(self->win, temp->win); in PyCursesWindow_Overwrite()
1737 return PyCursesCheckERR(rtn, "overwrite"); in PyCursesWindow_Overwrite()
1789 int rtn; in PyCursesWindow_Refresh() local
1807 rtn = prefresh(self->win, in PyCursesWindow_Refresh() local
1811 return PyCursesCheckERR(rtn, "prefresh"); in PyCursesWindow_Refresh()
1821 rtn = wrefresh(self->win); in PyCursesWindow_Refresh() local
1823 return PyCursesCheckERR(rtn, "prefresh"); in PyCursesWindow_Refresh()
2268 int rtn; in PyCurses_GetMouse() local
2273 rtn = getmouse( &event ); in PyCurses_GetMouse()
2274 if (rtn == ERR) { in PyCurses_GetMouse()