Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/python/blessed/blessed/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Impressum keyboard.pyi   Interaktion und
Portierbarkeitunbekannt

 
Columbo aufrufen.pyi Download desUnknown {[0] [0] [0]}Datei anzeigen

"""Type hints for 'keyboard awareness'"""

# std imports
from typing import (TYPE_CHECKING,
                    Set,
                    Dict,
                    Type,
                    Match,
                    Tuple,
                    Mapping,
                    TypeVar,
                    Iterable,
                    Optional,
                    OrderedDict)

if TYPE_CHECKING:
    # local
    from .terminal import Terminal

_T = TypeVar("_T")

# pylint: disable=unused-argument,missing-function-docstring,missing-class-docstring

class Keystroke(str):
    def __new__(
        cls: Type[_T],
        ucs: str = ...,
        code: Optional[int] = ...,
        name: Optional[str] = ...,
    ) -> _T: ...
    @property
    def is_sequence(self) -> bool: ...
    @property
    def name(self) -> Optional[str]: ...
    @property
    def code(self) -> Optional[int]: ...

def get_keyboard_codes() -> Dict[int, str]: ...
def get_keyboard_sequences(term: 'Terminal') -> OrderedDict[str, int]: ...
def get_leading_prefixes(sequences: Iterable[str]) -> Set[str]: ...
def resolve_sequence(
    text: str, mapper: Mapping[str, int], codes: Mapping[int, str]
) -> Keystroke: ...
def _time_left(stime: float, timeout: Optional[float]) -> Optional[float]: ...
def _read_until(
        term: 'Terminal', pattern: str, timeout: Optional[float]
    ) -> Tuple[Optional[Match[str]], str]: ...


DEFAULT_ESCDELAY: float

[Seitenstruktur0.63Drucken]