Commit Graph

38 Commits

Author SHA1 Message Date
Benjamin Peterson 6e3dbbdf39 replace has_key with 'in' operator 2009-10-09 22:15:50 +00:00
Facundo Batista 17f2e4acb9 Issue #3239. Differentiate the ascii call from the curses one and
the builtin one.
2008-07-05 20:39:59 +00:00
Andrew M. Kuchling 734451a4bc Use file descriptor for real stdout 2008-02-25 16:29:58 +00:00
Christian Heimes c5f05e45cf Patch #2167 from calvin: Remove unused imports 2008-02-23 17:40:11 +00:00
Andrew M. Kuchling 322349e31b #1119331: ncurses will just call exit() if the terminal name isn't found.
Call setupterm() first so that we get a Python exception instead of just existing.
2008-02-23 15:49:35 +00:00
Andrew M. Kuchling 4a2762d146 Patch #1048820 from Stefan Wehr: add insert-mode editing to Textbox.
Fix an off-by-one error I noticed.
2008-01-20 00:00:38 +00:00
Andrew M. Kuchling 76276177de [Bug #1152762] Ensure _end_of_line() returns an x-coordinate that's within the text box 2005-06-02 00:10:04 +00:00
Andrew M. Kuchling 8520b94750 Display helpful message; print repr() of return value so the whitespace is clearer 2004-10-19 19:36:09 +00:00
Andrew M. Kuchling ccab001c3d [Bug #1048816] Fix bug when you do Ctrl-K at the start of a line; fix from Stefan Heimann 2004-10-19 19:29:40 +00:00
Andrew M. Kuchling a13ea5572a Make magic coordinates more readable 2004-10-19 19:21:20 +00:00
Michael W. Hudson 3fdd43ef35 Somehow (no idea how!) I missed half of patch #1005008. Sorry about that. 2004-08-07 15:20:15 +00:00
Michael W. Hudson 09ad235f99 This is patch
[ 1005008 ] curses.wrapper should also forward keyword args

Plus my rewrite to use finally as opposed to painfully doing the
equivalent by hand.
2004-08-07 15:18:07 +00:00
Tim Peters 182b5aca27 Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
Andrew M. Kuchling f19f8610fa Modernize code a bit: use isinstance instead of type(); return True/False 2003-09-02 11:52:06 +00:00
Andrew M. Kuchling 0ec5288d09 [Patch #759208] Fix has_key emulation to not raise KeyError 2003-09-02 11:44:44 +00:00
Andrew M. Kuchling b738041c5d Rework previous fix slightly; the &0x20 test seems useless, and the isprint() check mustn't prevent the meta-bit check at the end 2003-08-29 18:50:59 +00:00
Andrew M. Kuchling 72cdb70296 [Bug #790356] unctrl() doesn't work for full printable charset. Fix by Dave Cinege. 2003-08-29 18:40:03 +00:00
Raymond Hettinger ff41c48a77 SF patch #701494: more apply removals 2003-04-06 09:01:11 +00:00
Guido van Rossum bffa52f07f Whitespace normalization (get rid of tabs). 2002-09-29 00:25:51 +00:00
Martin v. Löwis 9d51fc8972 Patch #521670: Remove unused sys import. 2002-02-23 22:31:53 +00:00
Andrew M. Kuchling fee3126eb3 Catch curses.error instead of a non-existent global (PyChecker)
Edit comment
2001-08-13 13:47:23 +00:00
Andrew M. Kuchling 40ea6177b9 Remove redundant import 2001-08-13 13:45:22 +00:00
Andrew M. Kuchling 37f0263811 Bug #412086, reported by Peter Wilson: The _curses module doesn't
define COLORS or COLOR_PAIRS until after start_color() is called,
    but they were never added to the curses module.  Fixed by adding
    a wrapper around start_color(), similar to the wrapper around initscr().
2001-04-05 16:08:41 +00:00
Andrew M. Kuchling 0cc87f37b3 Make isspace(chr(32)) return true 2000-12-26 16:07:59 +00:00
Andrew M. Kuchling 9f5eeebb26 Wrapper for _curses_panel module; currently this adds nothing extra
beyond what's in _curses_panel
2000-12-22 21:58:29 +00:00
Eric S. Raymond 1ebd3f6c4b Tweak curses.wrapper so it initializes colors if they are available. 2000-08-09 21:11:07 +00:00
Eric S. Raymond 5af256ded6 Corrected a bug in handling of ^N and ^P with stripspaces on. 2000-08-04 07:33:18 +00:00
Andrew M. Kuchling b45bd325b5 Added Python function to emulate the ncurses has_key() function. 2000-08-01 01:21:11 +00:00
Andrew M. Kuchling 38f744195f Remove extra argument to method call 2000-07-12 03:38:34 +00:00
Andrew M. Kuchling e0d0090e76 Docstring changes. 2000-07-11 10:38:24 +00:00
Jeremy Hylton 2ea17faf4b fix inconsistent use of tabs and spaces
convert semicolons to newlines
2000-07-07 21:02:22 +00:00
Andrew M. Kuchling 8628157026 Fix comment typo noticed by Rob Hooft 2000-06-27 14:15:29 +00:00
Andrew M. Kuchling e8d7dbfe42 Sync to ESR's current version 2000-06-27 00:53:12 +00:00
Andrew M. Kuchling 8f790fe459 Drop back to old version of wrapper(); ESR reports that it broke things,
and I lack the time to track down the cause.
2000-06-27 00:50:40 +00:00
Andrew M. Kuchling 2b9d0bcf83 Added two modules for ASCII characters and a simple editing form (ESR) 2000-06-26 23:55:42 +00:00
Andrew M. Kuchling 289d9d4227 Add wrapper for initscr() to copy the ACS_ and LINES,COLS bindings 2000-06-26 23:54:03 +00:00
Andrew M. Kuchling 5185a084b7 Applied simplifications suggested by Greg Stein. 2000-06-10 23:39:05 +00:00
Andrew M. Kuchling d0939fa592 Add contents of curses package 2000-06-10 23:06:53 +00:00