Lines Matching refs:rtn
371 int rtn, x, y, use_xy = FALSE; in PyCursesWindow_AddCh() local
410 rtn = mvwaddch(self->win,y,x, ch | attr); in PyCursesWindow_AddCh()
412 rtn = waddch(self->win, ch | attr); in PyCursesWindow_AddCh()
414 return PyCursesCheckERR(rtn, "addch"); in PyCursesWindow_AddCh()
420 int rtn; in PyCursesWindow_AddStr() local
459 rtn = mvwaddstr(self->win,y,x,str); in PyCursesWindow_AddStr()
461 rtn = waddstr(self->win,str); in PyCursesWindow_AddStr()
464 return PyCursesCheckERR(rtn, "addstr"); in PyCursesWindow_AddStr()
470 int rtn, x, y, n; in PyCursesWindow_AddNStr() local
508 rtn = mvwaddnstr(self->win,y,x,str,n); in PyCursesWindow_AddNStr()
510 rtn = waddnstr(self->win,str,n); in PyCursesWindow_AddNStr()
513 return PyCursesCheckERR(rtn, "addnstr"); in PyCursesWindow_AddNStr()
684 int rtn; in PyCursesWindow_ChgAt() local
724 rtn = mvwchgat(self->win,y,x,num,attr,color,NULL); in PyCursesWindow_ChgAt()
728 rtn = wchgat(self->win,num,attr,color,NULL); in PyCursesWindow_ChgAt()
731 return PyCursesCheckERR(rtn, "chgat"); in PyCursesWindow_ChgAt()
738 int rtn; in PyCursesWindow_DelCh() local
743 rtn = wdelch(self->win); in PyCursesWindow_DelCh()
748 rtn = py_mvwdelch(self->win,y,x); in PyCursesWindow_DelCh()
754 return PyCursesCheckERR(rtn, "[mv]wdelch"); in PyCursesWindow_DelCh()
853 int rtn; in PyCursesWindow_GetCh() local
858 rtn = wgetch(self->win); in PyCursesWindow_GetCh() local
865 rtn = mvwgetch(self->win,y,x); in PyCursesWindow_GetCh() local
872 return PyInt_FromLong((long)rtn); in PyCursesWindow_GetCh()
879 int rtn; in PyCursesWindow_GetKey() local
884 rtn = wgetch(self->win); in PyCursesWindow_GetKey() local
891 rtn = mvwgetch(self->win,y,x); in PyCursesWindow_GetKey() local
898 if (rtn == ERR) { in PyCursesWindow_GetKey()
904 } else if (rtn<=255) { in PyCursesWindow_GetKey()
905 return Py_BuildValue("c", rtn); in PyCursesWindow_GetKey()
907 const char *knp = keyname(rtn); in PyCursesWindow_GetKey()
916 char rtn[1024]; /* This should be big enough.. I hope */ in PyCursesWindow_GetStr() local
922 rtn2 = wgetnstr(self->win,rtn, 1023); in PyCursesWindow_GetStr()
933 rtn2 = wgetnstr(self->win,rtn,MIN(n, 1023)); in PyCursesWindow_GetStr()
941 rtn2 = wmove(self->win,y,x)==ERR ? ERR : wgetnstr(self->win, rtn, 1023); in PyCursesWindow_GetStr()
943 rtn2 = mvwgetnstr(self->win,y,x,rtn, 1023); in PyCursesWindow_GetStr()
957 wgetnstr(self->win, rtn, MIN(n, 1023)); in PyCursesWindow_GetStr()
961 rtn2 = mvwgetnstr(self->win, y, x, rtn, MIN(n, 1023)); in PyCursesWindow_GetStr()
970 rtn[0] = 0; in PyCursesWindow_GetStr()
971 return PyString_FromString(rtn); in PyCursesWindow_GetStr()
1024 int rtn, x, y, use_xy = FALSE; in PyCursesWindow_InsCh() local
1063 rtn = mvwinsch(self->win,y,x, ch | attr); in PyCursesWindow_InsCh()
1065 rtn = winsch(self->win, ch | attr); in PyCursesWindow_InsCh()
1067 return PyCursesCheckERR(rtn, "insch"); in PyCursesWindow_InsCh()
1073 int x, y, rtn; in PyCursesWindow_InCh() local
1077 rtn = winch(self->win); in PyCursesWindow_InCh()
1082 rtn = mvwinch(self->win,y,x); in PyCursesWindow_InCh()
1088 return PyInt_FromLong((long) rtn); in PyCursesWindow_InCh()
1095 char rtn[1024]; /* This should be big enough.. I hope */ in PyCursesWindow_InStr() local
1100 rtn2 = winnstr(self->win,rtn, 1023); in PyCursesWindow_InStr()
1109 rtn2 = winnstr(self->win,rtn,MIN(n,1023)); in PyCursesWindow_InStr()
1114 rtn2 = mvwinnstr(self->win,y,x,rtn,1023); in PyCursesWindow_InStr()
1123 rtn2 = mvwinnstr(self->win, y, x, rtn, MIN(n,1023)); in PyCursesWindow_InStr()
1130 rtn[0] = 0; in PyCursesWindow_InStr()
1131 return PyString_FromString(rtn); in PyCursesWindow_InStr()
1137 int rtn; in PyCursesWindow_InsStr() local
1176 rtn = mvwinsstr(self->win,y,x,str); in PyCursesWindow_InsStr()
1178 rtn = winsstr(self->win,str); in PyCursesWindow_InsStr()
1181 return PyCursesCheckERR(rtn, "insstr"); in PyCursesWindow_InsStr()
1187 int rtn, x, y, n; in PyCursesWindow_InsNStr() local
1225 rtn = mvwinsnstr(self->win,y,x,str,n); in PyCursesWindow_InsNStr()
1227 rtn = winsnstr(self->win,str,n); in PyCursesWindow_InsNStr()
1230 return PyCursesCheckERR(rtn, "insnstr"); in PyCursesWindow_InsNStr()
1258 int rtn; in PyCursesWindow_NoOutRefresh() local
1275 rtn = pnoutrefresh(self->win, in PyCursesWindow_NoOutRefresh() local
1279 return PyCursesCheckERR(rtn, "pnoutrefresh"); in PyCursesWindow_NoOutRefresh()
1291 rtn = wnoutrefresh(self->win); in PyCursesWindow_NoOutRefresh() local
1293 return PyCursesCheckERR(rtn, "wnoutrefresh"); in PyCursesWindow_NoOutRefresh()
1303 int rtn; in PyCursesWindow_Overlay() local
1325 rtn = copywin(self->win, temp->win, sminrow, smincol, in PyCursesWindow_Overlay()
1327 return PyCursesCheckERR(rtn, "copywin"); in PyCursesWindow_Overlay()
1330 rtn = overlay(self->win, temp->win); in PyCursesWindow_Overlay()
1331 return PyCursesCheckERR(rtn, "overlay"); in PyCursesWindow_Overlay()
1341 int rtn; in PyCursesWindow_Overwrite() local
1363 rtn = copywin(self->win, temp->win, sminrow, smincol, in PyCursesWindow_Overwrite()
1365 return PyCursesCheckERR(rtn, "copywin"); in PyCursesWindow_Overwrite()
1368 rtn = overwrite(self->win, temp->win); in PyCursesWindow_Overwrite()
1369 return PyCursesCheckERR(rtn, "overwrite"); in PyCursesWindow_Overwrite()
1401 int rtn; in PyCursesWindow_Refresh() local
1419 rtn = prefresh(self->win, in PyCursesWindow_Refresh() local
1423 return PyCursesCheckERR(rtn, "prefresh"); in PyCursesWindow_Refresh()
1433 rtn = wrefresh(self->win); in PyCursesWindow_Refresh() local
1435 return PyCursesCheckERR(rtn, "prefresh"); in PyCursesWindow_Refresh()
1826 int rtn; in PyCurses_GetMouse() local
1831 rtn = getmouse( &event ); in PyCurses_GetMouse()
1832 if (rtn == ERR) { in PyCurses_GetMouse()