##// END OF EJS Templates
Display the length of the input history and the position of the...
walter.doerwald -
Show More
@@ -1434,9 +1434,21 b' class ibrowse(ipipe.Display):'
1434 1434 # Display input prompt
1435 1435 if self.mode in self.prompts:
1436 1436 history = self.prompts[self.mode]
1437 scr.addstr(self.scrsizey-1, 0,
1438 history.prompt + ": " + history.input,
1439 self.getstyle(astyle.style_default))
1437 posx = 0
1438 posy = self.scrsizey-1
1439 posx += self.addstr(posy, posx, 0, endx, history.prompt, astyle.style_default)
1440 posx += self.addstr(posy, posx, 0, endx, " [", astyle.style_default)
1441 if history.cury==-1:
1442 text = "new"
1443 else:
1444 text = str(history.cury+1)
1445 posx += self.addstr(posy, posx, 0, endx, text, astyle.style_type_number)
1446 if history.history:
1447 posx += self.addstr(posy, posx, 0, endx, "/", astyle.style_default)
1448 posx += self.addstr(posy, posx, 0, endx, str(len(history.history)), astyle.style_type_number)
1449 posx += self.addstr(posy, posx, 0, endx, "]: ", astyle.style_default)
1450 inputstartx = posx
1451 posx += self.addstr(posy, posx, 0, endx, history.input, astyle.style_default)
1440 1452 # Display report
1441 1453 else:
1442 1454 if self._report is not None:
@@ -1464,7 +1476,7 b' class ibrowse(ipipe.Display):'
1464 1476 # Position cursor
1465 1477 if self.mode in self.prompts:
1466 1478 history = self.prompts[self.mode]
1467 scr.move(self.scrsizey-1, len(history.prompt)+2+history.curx)
1479 scr.move(self.scrsizey-1, inputstartx+history.curx)
1468 1480 else:
1469 1481 scr.move(
1470 1482 1+self._headerlines+level.cury-level.datastarty,
@@ -1,3 +1,9 b''
1 2006-06-12 Walter Doerwald <walter@livinglogic.de>
2
3 * IPython/Extensions/ibrowse.py (_dodisplay): Display the length of the
4 input history and the position of the cursor in the input history for
5 the find, findbackwards and goto command.
6
1 7 2006-06-10 Walter Doerwald <walter@livinglogic.de>
2 8
3 9 * IPython/Extensions/ibrowse.py: Add a class _CommandInput that
General Comments 0
You need to be logged in to leave comments. Login now