OILS / pyext / line_input.pyi View on Github | oilshell.org

32 lines, 16 significant
1from typing import Callable, List, Optional
2
3
4def parse_and_bind(s: str) -> None: ...
5
6def add_history(line: str) -> None: ...
7
8def read_history_file(path: Optional[str] = None) -> None: ...
9
10def write_history_file(path: Optional[str] = None) -> None: ...
11
12def set_completer(completer: Optional[Callable[[str, int], str]] = None) -> None: ...
13
14def set_completer_delims(delims: str) -> None: ...
15
16def set_completion_display_matches_hook(hook: Optional[Callable[[str, List[str], int], None]] = None) -> None: ...
17
18def get_line_buffer() -> str: ...
19
20def get_begidx() -> int: ...
21
22def get_endidx() -> int: ...
23
24def clear_history() -> None: ...
25
26def get_history_item(pos: int) -> str: ...
27
28def remove_history_item(pos: int) -> None: ...
29
30def get_current_history_length() -> int: ...
31
32def resize_terminal() -> None: ...