summaryrefslogtreecommitdiffstats
path: root/Modules/_cursesmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Limit string size on one-character-strings. Fixes #480384.Martin v. Löwis2001-11-111-2/+2
|
* Patch in bug report #477700: Fix memory leaks in gdbm & curses.Martin v. Löwis2001-11-111-0/+1
|
* Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED andMartin v. Löwis2001-10-241-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.
* Add two forgotten 'break' statementsAndrew M. Kuchling2001-10-201-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
* Test for __sun instead of __sun__, since SUNWspro only defines the latter;Martin v. Löwis2001-10-131-1/+1
| | | | gcc defines both.
* [Bug #457654] bkgd() used a hard-coded A_NORMAL attribute, when it shouldAndrew M. Kuchling2001-09-041-1/+1
| | | | have used the attribute argument provided as a parameter
* Remove warnings from the SGI compiler.Fred Drake2001-07-191-6/+3
| | | | This is part of SF patch #434992.
* Fix bug #417212: "curses.newwin can return pads" by changing the PythonAndrew M. Kuchling2001-07-141-3/+2
| | | | | newwin() wrapper to always return a window, and never a pad. This makes the code match the documentation.
* Properly use &&. Closes bug #434988.Martin v. Löwis2001-06-231-2/+2
|
* Include py_curses.h *after* defining _XOPEN_SOURCE_EXTENDED.Guido van Rossum2001-04-101-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.
* Patch #103485 from Donn Cave: patches to make the module compile on AIX andAndrew M. Kuchling2001-01-291-0/+36
| | | | NetBSD
* Rename 'lines' variable to 'nlines' to avoid conflict with a macro definedAndrew M. Kuchling2001-01-291-7/+7
| | | | in term.h
* Bug #130117: add a prototype required to compile cleanly on IRIXAndrew M. Kuchling2001-01-281-0/+1
| | | | (contributed by Paul Jackson)
* Support building this as a DLL under Cygwin.Guido van Rossum2001-01-191-2/+5
|
* Add the curses constants ERR and OK to the module at TG's suggestionAndrew M. Kuchling2000-12-261-0/+3
|
* Export C API from this module.Andrew M. Kuchling2000-12-221-99/+47
| | | | Remove several macros and #includes; py_curses.h contains them now.
* Another patch from Thomas Gellekum: add .overlay() and .overwrite()Andrew M. Kuchling2000-12-211-3/+81
| | | | window methods
* Wrapper for napms() function, contributed by Thomas Gellekum <tg@FreeBSD.org>Andrew M. Kuchling2000-12-151-1/+50
|
* Patch #102412 from mwh: Add support for the setupterm() function, toAndrew M. Kuchling2000-11-181-15/+76
| | | | initialize the terminal without necessarily calling initscr()
* Patch #102278: add tparm() function to _curses moduleAndrew M. Kuchling2000-11-071-4/+55
|
* Patch from Randall Hopper to fix PR #116172, "curses module fails toAndrew M. Kuchling2000-11-011-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
* Don't call Py_FatalError in module initializationJeremy Hylton2000-09-011-4/+0
| | | | (leaving the rest of the modules for Barry)
* Add alias for old function name -- removing it broke Alexei Gilchrist's cfmAndrew M. Kuchling2000-08-201-0/+2
|
* Added list of missing functions as a commentAndrew M. Kuchling2000-07-271-0/+26
|
* Comment out a debugging print (spotted by Michael Deegan)Andrew M. Kuchling2000-07-261-1/+1
|
* Added wrappers for tiget{flag,num,str}, for querying terminfo capabilitiesAndrew M. Kuchling2000-07-261-0/+47
|
* Modified version of patch #100963 from Mark Favas: has_key() is anAndrew M. Kuchling2000-07-251-5/+5
| | | | ncurses extension, so it's made conditional depending on STRICT_SYSV_CURSES
* Bug report and partial patch from Michael Deegan <michael@ucc.gu.uwa.edu.au>:Andrew M. Kuchling2000-07-241-4/+4
| | | | | reversed tests resulted in an exception when you supplied the correct number of arguments
* Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters2000-07-211-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 ;)
* Patch from Peter Schneider-Kamp: convert curses module to ANSI prototypes,Andrew M. Kuchling2000-07-091-377/+221
| | | | and substitute the conventional "args" instead of "arg".
* Python 2.0 is not supposed to use string exceptions in the standard libraryFred Drake2000-07-061-1/+1
| | | | | & extensions, so create exceptions in extension modules using the PyErr_NewException() API.
* Removed unused variables.Andrew M. Kuchling2000-07-061-3/+4
| | | | Added two functions that were left out of the method definition table.
* Fixes for compiling on Tru64.Andrew M. Kuchling2000-06-271-8/+13
| | | | | Define a STRICT_SYSV_CURSES macro on SGI, Sun, and Tru64, to mark systems that don't support some features.
* Fix two typos (, instead of ;)Andrew M. Kuchling2000-06-271-3/+2
|
* Added support for mouse functions: mousemask(), mouseinterval(),Andrew M. Kuchling2000-06-271-0/+130
| | | | | getmouse(), ungetmouse(), and window.enclose(). wmouse_trafo() seems of marginal importance at the moment.
* Release the global interpreter lock around the most importantAndrew M. Kuchling2000-06-231-12/+45
| | | | functions that might block or pause
* Added .timeout() method and .typeahead() functionAndrew M. Kuchling2000-06-211-0/+19
|
* Renamed the C extension for ncurses support from 'curses' to '_curses'.Andrew M. Kuchling2000-06-101-4/+4
| | | | (The SourceForge admins have been asked to rename the ,v file.)
* Changes by AMK: Use HAVE_NCURSES_H to include correct header fileAndrew M. Kuchling2000-05-231-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
* Oliver Andrich's ncurses-specific curses module, version 1.5b1Andrew M. Kuchling2000-05-231-948/+1607
|
* Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum2000-05-031-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.)
* Patch by Charles Waldman to implement an optional nlines argument toGuido van Rossum1999-01-051-2/+18
| | | | w.scroll(). (It then calls wscrl(win, nlines) instead of scoll(win).)
* Chris Herborth discovered a typo in the arrow key symbols.Guido van Rossum1998-12-231-1/+2
|
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Make the version variable static (it has no business being exported).Guido van Rossum1998-10-071-1/+1
|
* Apply two changes, systematically:Guido van Rossum1997-10-011-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!
* Avoid warning from gcc on Linux about dropping const.Guido van Rossum1997-05-091-1/+1
|
* Keep gcc -Wall happy.Guido van Rossum1996-12-051-3/+11
|
* Include ncurses.h where neededGuido van Rossum1996-02-251-0/+5
|
* Added some (method) casts.Sjoerd Mullender1995-03-171-42/+42
|