summaryrefslogtreecommitdiff
path: root/Modules/_cursesmodule.c
AgeCommit message (Collapse)AuthorLines
2002-03-17Backport my fix from a whiles back:Michael W. Hudson-9/+9
Fix for [ #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.
2002-02-06Backport my fixing up of PyObject_New/PyMem_Del mismatches.Michael W. Hudson-1/+1
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
2000-05-23Oliver Andrich's ncurses-specific curses module, version 1.5b1Andrew M. Kuchling-945/+1604
2000-05-03Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum-4/+4
For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
1999-01-05Patch by Charles Waldman to implement an optional nlines argument toGuido van Rossum-2/+18
w.scroll(). (It then calls wscrl(win, nlines) instead of scoll(win).)
1998-12-23Chris Herborth discovered a typo in the arrow key symbols.Guido van Rossum-1/+2
1998-12-04Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum-1/+1
on BeOS or Windows.
1998-10-07Make the version variable static (it has no business being exported).Guido van Rossum-1/+1
1997-10-01Apply two changes, systematically:Guido van Rossum-5/+1
(1) Use PyErr_NewException("module.class", NULL, NULL) to create the exception object. (2) Remove all calls to Py_FatalError(); instead, return or ignore the errors -- the import code now checks PyErr_Occurred() after calling a module's init function, so it's no longer a fatal error for the initialization to fail. Also did some small cleanups, e.g. removed unnecessary test for "already initialized" from initfpectl(), and unified initposix()/initnt(). I haven't checked this very thoroughly, so while the changes are pretty trivial -- beware of untested code!
1997-05-09Avoid warning from gcc on Linux about dropping const.Guido van Rossum-1/+1