Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
97311bbb
Commit
97311bbb
authored
Jun 21, 2000
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added .timeout() method and .typeahead() function
parent
8eff33b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
Modules/_cursesmodule.c
Modules/_cursesmodule.c
+19
-0
No files found.
Modules/_cursesmodule.c
View file @
97311bbb
...
...
@@ -226,6 +226,7 @@ Window_NoArgNoReturnVoidFunction(wclear)
Window_OneArgNoReturnVoidFunction
(
idcok
,
int
,
"i;True(1) or False(0)"
)
Window_OneArgNoReturnVoidFunction
(
immedok
,
int
,
"i;True(1) or False(0)"
)
Window_OneArgNoReturnVoidFunction
(
wtimeout
,
int
,
"i;delay"
)
Window_NoArg2TupleReturnFunction
(
getyx
,
int
,
"(ii)"
)
Window_NoArg2TupleReturnFunction
(
getbegyx
,
int
,
"(ii)"
)
...
...
@@ -1286,6 +1287,7 @@ static PyMethodDef PyCursesWindow_Methods[] = {
{
"syncdown"
,
(
PyCFunction
)
PyCursesWindow_wsyncdown
},
{
"syncok"
,
(
PyCFunction
)
PyCursesWindow_syncok
},
{
"syncup"
,
(
PyCFunction
)
PyCursesWindow_wsyncup
},
{
"timeout"
,
(
PyCFunction
)
PyCursesWindow_wtimeout
},
{
"touchline"
,
(
PyCFunction
)
PyCursesWindow_TouchLine
},
{
"touchwin"
,
(
PyCFunction
)
PyCursesWindow_touchwin
},
{
"untouchwin"
,
(
PyCFunction
)
PyCursesWindow_untouchwin
},
...
...
@@ -2026,6 +2028,22 @@ PyCurses_Start_Color(self,arg)
}
}
static
PyObject
*
PyCurses_TypeAhead
(
self
,
arg
)
PyObject
*
self
;
PyObject
*
arg
;
{
int
fd
,
err
;
PyCursesInitialised
if
(
!
PyArg_Parse
(
arg
,
"i;fd"
,
&
fd
))
return
NULL
;
PyCursesCheckERR
(
typeahead
(
fd
),
"typeahead"
);
Py_INCREF
(
Py_None
);
return
Py_None
;
}
static
PyObject
*
PyCurses_UnCtrl
(
self
,
arg
)
PyObject
*
self
;
...
...
@@ -2154,6 +2172,7 @@ static PyMethodDef PyCurses_methods[] = {
{
"start_color"
,
(
PyCFunction
)
PyCurses_Start_Color
},
{
"termattrs"
,
(
PyCFunction
)
PyCurses_termattrs
},
{
"termname"
,
(
PyCFunction
)
PyCurses_termname
},
{
"typeahead"
,
(
PyCFunction
)
PyCurses_TypeAhead
},
{
"unctrl"
,
(
PyCFunction
)
PyCurses_UnCtrl
},
{
"ungetch"
,
(
PyCFunction
)
PyCurses_UngetCh
},
{
"use_env"
,
(
PyCFunction
)
PyCurses_Use_Env
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment