summaryrefslogtreecommitdiff
path: root/Modules/_cursesmodule.c
AgeCommit message (Collapse)AuthorLines
2002-11-21Always call tparm with 10 arguments. It seems it's not varargs iMichael W. Hudson-43/+3
more often than it is. In response to bug: [ 641808 ] Portability of Modules/_cursesmodule.c submitted by Nick Mclaren.
2002-11-06[Patch #633635 from David M. Cooke]Andrew M. Kuchling-6/+14
Make keyname raise ValueError if passed -1, avoiding a segfault Make getkey() match the docs and raise an exception in nodelay mode The return type of getch() is int, not chtype
2002-10-30Use personal e-mail addressAndrew M. Kuchling-2/+1
2002-10-26Remove duplicate definitions of _XOPEN_SOURCE_EXTENDED.Martin v. Löwis-2/+0
2002-09-30Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.Martin v. Löwis-1/+1
2002-08-02Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond-1/+1
for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
2002-01-30I think this fixesMichael W. Hudson-1/+1
[ #510644 ] test_curses segfaults If we use the *object* *allocator*, we should use the *object* *deallocator*, not the *raw memory* deallocator (confused yet?). I think this was what caused segfaults when pymalloc was enabled. Even if it wasn't the cause, it's still wrong. 2.2.1 candidate.
2002-01-17Patch #477752: Drop old-style getargs from curses.Martin v. Löwis-331/+286
2002-01-16Change some spaces to tabs. I don't *think* that was me, but itMichael W. Hudson-2/+2
might have been...
2002-01-16Fix forMichael W. Hudson-8/+8
[ #504284 ] Last build problems on AIX I'm ignoring the suggestion that this should be an autoconf test in the interests of having a fix today. Feel free to quibble.
2001-12-08Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum-1/+1
type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment.
2001-11-11Limit string size on one-character-strings. Fixes #480384.Martin v. Löwis-2/+2
2001-11-11Patch in bug report #477700: Fix memory leaks in gdbm & curses.Martin v. Löwis-0/+1
2001-10-24Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED andMartin v. Löwis-7/+40
STRICT_SYSV_CURSES when compiling curses module on HP/UX. Generalize access to _flags on systems where WINDOW is opaque. Fixes bugs #432497, #422265, and the curses parts of #467145 and #473150.
2001-10-20Add two forgotten 'break' statementsAndrew M. Kuchling-15/+40
Allow passing strings to the .border() method Correct some error messages ("1 or 4" -> "1 to 4") Bump version number Tweak code formatting Update my e-mail address
2001-10-13Test for __sun instead of __sun__, since SUNWspro only defines the latter;Martin v. Löwis-1/+1
gcc defines both.
2001-09-04[Bug #457654] bkgd() used a hard-coded A_NORMAL attribute, when it shouldAndrew M. Kuchling-1/+1
have used the attribute argument provided as a parameter
2001-07-19Remove warnings from the SGI compiler.Fred Drake-6/+3
This is part of SF patch #434992.
2001-07-14Fix bug #417212: "curses.newwin can return pads" by changing the PythonAndrew M. Kuchling-3/+2
newwin() wrapper to always return a window, and never a pad. This makes the code match the documentation.
2001-06-23Properly use &&. Closes bug #434988.Martin v. Löwis-2/+2
2001-04-10Include py_curses.h *after* defining _XOPEN_SOURCE_EXTENDED.Guido van Rossum-2/+3
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-01-29Patch #103485 from Donn Cave: patches to make the module compile on AIX andAndrew M. Kuchling-0/+36
NetBSD
2001-01-29Rename 'lines' variable to 'nlines' to avoid conflict with a macro definedAndrew M. Kuchling-7/+7
in term.h
2001-01-28Bug #130117: add a prototype required to compile cleanly on IRIXAndrew M. Kuchling-0/+1
(contributed by Paul Jackson)
2001-01-19Support building this as a DLL under Cygwin.Guido van Rossum-2/+5
2000-12-26Add the curses constants ERR and OK to the module at TG's suggestionAndrew M. Kuchling-0/+3
2000-12-22Export C API from this module.Andrew M. Kuchling-99/+47
Remove several macros and #includes; py_curses.h contains them now.
2000-12-21Another patch from Thomas Gellekum: add .overlay() and .overwrite()Andrew M. Kuchling-3/+81
window methods
2000-12-15Wrapper for napms() function, contributed by Thomas Gellekum <tg@FreeBSD.org>Andrew M. Kuchling-1/+50
2000-11-18Patch #102412 from mwh: Add support for the setupterm() function, toAndrew M. Kuchling-15/+76
initialize the terminal without necessarily calling initscr()
2000-11-07Patch #102278: add tparm() function to _curses moduleAndrew M. Kuchling-4/+55
2000-11-01Patch from Randall Hopper to fix PR #116172, "curses module fails toAndrew M. Kuchling-4/+38
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-09-01Don't call Py_FatalError in module initializationJeremy Hylton-4/+0
(leaving the rest of the modules for Barry)
2000-08-20Add alias for old function name -- removing it broke Alexei Gilchrist's cfmAndrew M. Kuchling-0/+2
2000-07-27Added list of missing functions as a commentAndrew M. Kuchling-0/+26
2000-07-26Comment out a debugging print (spotted by Michael Deegan)Andrew M. Kuchling-1/+1
2000-07-26Added wrappers for tiget{flag,num,str}, for querying terminfo capabilitiesAndrew M. Kuchling-0/+47
2000-07-25Modified version of patch #100963 from Mark Favas: has_key() is anAndrew M. Kuchling-5/+5
ncurses extension, so it's made conditional depending on STRICT_SYSV_CURSES
2000-07-24Bug report and partial patch from Michael Deegan <michael@ucc.gu.uwa.edu.au>:Andrew M. Kuchling-4/+4
reversed tests resulted in an exception when you supplied the correct number of arguments
2000-07-21Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters-4/+2
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-09Patch from Peter Schneider-Kamp: convert curses module to ANSI prototypes,Andrew M. Kuchling-377/+221
and substitute the conventional "args" instead of "arg".
2000-07-06Python 2.0 is not supposed to use string exceptions in the standard libraryFred Drake-1/+1
& extensions, so create exceptions in extension modules using the PyErr_NewException() API.
2000-07-06Removed unused variables.Andrew M. Kuchling-3/+4
Added two functions that were left out of the method definition table.
2000-06-27Fixes for compiling on Tru64.Andrew M. Kuchling-8/+13
Define a STRICT_SYSV_CURSES macro on SGI, Sun, and Tru64, to mark systems that don't support some features.
2000-06-27Fix two typos (, instead of ;)Andrew M. Kuchling-3/+2
2000-06-27Added support for mouse functions: mousemask(), mouseinterval(),Andrew M. Kuchling-0/+130
getmouse(), ungetmouse(), and window.enclose(). wmouse_trafo() seems of marginal importance at the moment.
2000-06-23Release the global interpreter lock around the most importantAndrew M. Kuchling-12/+45
functions that might block or pause
2000-06-21Added .timeout() method and .typeahead() functionAndrew M. Kuchling-0/+19
2000-06-10Renamed the C extension for ncurses support from 'curses' to '_curses'.Andrew M. Kuchling-4/+4
(The SourceForge admins have been asked to rename the ,v file.)
2000-05-23Changes by AMK: Use HAVE_NCURSES_H to include correct header fileAndrew M. Kuchling-133/+124
Lots of typo fixes (a bit too much cut-and-paste in this module) Aliases removed: attr_on, attr_off, attr_set Lowercased the names COLOR_PAIR and PAIR_NUMBER #ifdef's for compiling on Solaris added (need to understand SYSV curses versions better and generalize this) Bumped version number bumped to 1.6