HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib/google-cloud-sdk/lib/third_party/prompt_toolkit/eventloop/callbacks.py
from __future__ import unicode_literals
from abc import ABCMeta, abstractmethod
from six import with_metaclass

__all__ = (
    'EventLoopCallbacks',
)


class EventLoopCallbacks(with_metaclass(ABCMeta, object)):
    """
    This is the glue between the :class:`~prompt_toolkit.eventloop.base.EventLoop`
    and :class:`~prompt_toolkit.interface.CommandLineInterface`.

    :meth:`~prompt_toolkit.eventloop.base.EventLoop.run` takes an
    :class:`.EventLoopCallbacks` instance and operates on that one, driving the
    interface.
    """
    @abstractmethod
    def terminal_size_changed(self):
        pass

    @abstractmethod
    def input_timeout(self):
        pass

    @abstractmethod
    def feed_key(self, key):
        pass