Get next history entry (down arrow).
(self)
| 821 | return self._entries[self._cursor] |
| 822 | |
| 823 | def next(self) -> str | None: |
| 824 | """Get next history entry (down arrow).""" |
| 825 | if not self._entries: |
| 826 | return None |
| 827 | self._cursor = min(len(self._entries), self._cursor + 1) |
| 828 | if self._cursor >= len(self._entries): |
| 829 | return "" # Past the end = empty |
| 830 | return self._entries[self._cursor] |
| 831 | |
| 832 | def search(self, prefix: str) -> list[str]: |
| 833 | """Search history for entries starting with prefix.""" |
no outgoing calls