Guido van Rossum
dc2e5cebdf
In case there ever will be a 2.1.3, this fixes SF bug #514928 (Bastian
...
Kleineidam): curses error in w.border().
For some reason, in 2.1.2 and before, PyCursesWindow_Border is
declared as METH_VARARGS but calls PyArg_Parse(), which is wrong.
(This is not relevant for 2.2, which does this completely different
and makes all functions METH_VARARGS.)
2002-02-08 21:32:41 +00:00
Guido van Rossum
858ca0f229
Include py_curses.h *after* defining _XOPEN_SOURCE_EXTENDED.
...
Michael Hudson suggested this fox for the Tru64 problem (SF bug
232597). It looks reasonable, it works on Tru64, and it doesn't beak
anything on Linux, so I say go for it.
2001-04-10 19:53:37 +00:00
Andrew M. Kuchling
2d339f9369
Patch #103485 from Donn Cave: patches to make the module compile on AIX and
...
NetBSD
2001-01-29 20:47:59 +00:00
Andrew M. Kuchling
e1c4352f98
Rename 'lines' variable to 'nlines' to avoid conflict with a macro defined
...
in term.h
2001-01-29 20:31:29 +00:00
Andrew M. Kuchling
399b8af563
Bug #130117 : add a prototype required to compile cleanly on IRIX
...
(contributed by Paul Jackson)
2001-01-28 18:10:23 +00:00
Guido van Rossum
6915c4d0a8
Support building this as a DLL under Cygwin.
2001-01-19 00:28:08 +00:00
Andrew M. Kuchling
caefb37ee1
Add the curses constants ERR and OK to the module at TG's suggestion
2000-12-26 15:57:01 +00:00
Andrew M. Kuchling
3255268777
Export C API from this module.
...
Remove several macros and #includes; py_curses.h contains them now.
2000-12-22 21:52:27 +00:00
Andrew M. Kuchling
9de6ffa314
Another patch from Thomas Gellekum: add .overlay() and .overwrite()
...
window methods
2000-12-21 16:22:22 +00:00
Andrew M. Kuchling
2824d7f6b1
Wrapper for napms() function, contributed by Thomas Gellekum <tg@FreeBSD.org>
2000-12-15 00:44:02 +00:00
Andrew M. Kuchling
26cc66fe6a
Patch #102412 from mwh: Add support for the setupterm() function, to
...
initialize the terminal without necessarily calling initscr()
2000-11-18 17:45:59 +00:00
Andrew M. Kuchling
f16e0ed76c
Patch #102278 : add tparm() function to _curses module
2000-11-07 03:35:24 +00:00
Andrew M. Kuchling
e7d3616409
Patch from Randall Hopper to fix PR #116172 , "curses module fails to
...
build on SGI":
* Check for 'sgi' preprocessor symbol, not '__sgi__'
* Surround individual character macros with #ifdef's, instead of making them
all rely on STRICT_SYSV_CURSES
2000-11-01 19:59:12 +00:00
Jeremy Hylton
51ee09b995
Don't call Py_FatalError in module initialization
...
(leaving the rest of the modules for Barry)
2000-09-01 03:46:16 +00:00
Andrew M. Kuchling
a98e92bc13
Add alias for old function name -- removing it broke Alexei Gilchrist's cfm
2000-08-20 23:37:02 +00:00
Andrew M. Kuchling
fb6bbf51a6
Added list of missing functions as a comment
2000-07-27 11:58:01 +00:00
Andrew M. Kuchling
8353f623d6
Comment out a debugging print (spotted by Michael Deegan)
2000-07-26 18:36:27 +00:00
Andrew M. Kuchling
70e89c11fe
Added wrappers for tiget{flag,num,str}, for querying terminfo capabilities
2000-07-26 02:57:20 +00:00
Andrew M. Kuchling
bf680266da
Modified version of patch #100963 from Mark Favas: has_key() is an
...
ncurses extension, so it's made conditional depending on STRICT_SYSV_CURSES
2000-07-25 12:37:41 +00:00
Andrew M. Kuchling
4463acbc32
Bug report and partial patch from Michael Deegan <michael@ucc.gu.uwa.edu.au>:
...
reversed tests resulted in an exception when you supplied the correct number
of arguments
2000-07-24 23:54:49 +00:00
Thomas Wouters
f3f33dcf03
Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',
...
and a couple of functions that were missed in the previous batches. Not
terribly tested, but very carefully scrutinized, three times.
All these were found by the little findkrc.py that I posted to python-dev,
which means there might be more lurking. Cases such as this:
long
func(a, b)
long a;
long b; /* flagword */
{
and other cases where the last ; in the argument list isn't followed by a
newline and an opening curly bracket. Regexps to catch all are welcome, of
course ;)
2000-07-21 06:00:07 +00:00
Andrew M. Kuchling
ad9b1f8533
Patch from Peter Schneider-Kamp: convert curses module to ANSI prototypes,
...
and substitute the conventional "args" instead of "arg".
2000-07-09 14:35:00 +00:00
Fred Drake
589c35bcc7
Python 2.0 is not supposed to use string exceptions in the standard library
...
& extensions, so create exceptions in extension modules using the
PyErr_NewException() API.
2000-07-06 19:38:49 +00:00
Andrew M. Kuchling
1a10400692
Removed unused variables.
...
Added two functions that were left out of the method definition table.
2000-07-06 18:14:03 +00:00
Andrew M. Kuchling
a1e4b05ac4
Fixes for compiling on Tru64.
...
Define a STRICT_SYSV_CURSES macro on SGI, Sun, and Tru64, to mark systems
that don't support some features.
2000-06-27 21:49:47 +00:00