[Idle-dev] CVS: idle EditorWindow.py,1.36,1.37

Kurt B. Kaiser kbk@users.sourceforge.net
Mon, 16 Dec 2002 14:25:18 -0800


Update of /cvsroot/idlefork/idle
In directory sc8-pr-cvs1:/tmp/cvs-serv12732

Modified Files:
	EditorWindow.py 
Log Message:
In Shell:
1. If a tab is entered at the prompt, allow it to be backspaced away.
2. Eliminate the beep when hitting <enter> at the prompt.


Index: EditorWindow.py
===================================================================
RCS file: /cvsroot/idlefork/idle/EditorWindow.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -r1.36 -r1.37
*** EditorWindow.py	16 Dec 2002 02:07:11 -0000	1.36
--- EditorWindow.py	16 Dec 2002 22:25:10 -0000	1.37
***************
*** 955,958 ****
--- 955,960 ----
          ncharsdeleted = 0
          while 1:
+             if chars == sys.ps1:
+                 break
              chars = chars[:-1]
              ncharsdeleted = ncharsdeleted + 1
***************
*** 1010,1013 ****
--- 1012,1017 ----
              line = text.get("insert linestart", "insert")
              i, n = 0, len(line)
+             if line == sys.ps1:
+                 return "break"
              while i < n and line[i] in " \t":
                  i = i+1