@prompt
    def teletype(self, keys, delay=None):
        """teletype(keys, delay=90)
        Type ``keys`` character-by-character, as if you were actually typing
        them by hand.

        The ``delay`` parameter adds time between each keystroke for
        verisimilitude. The actual time between keystrokes varies up to ten
        percent more or less than the nominal value. The default, 90
        milliseconds, approximates a fast typist.

        .. note:: |auto-advancing|

        :param keys: the literal keys to be typed
        :param int delay: the nominal time between keystrokes in milliseconds.
        """
        if delay is None:
            delay = (self.teletype_delay if self.teletype_delay is not None
                     else 90)

        delay_variation = delay / 10

        with self.auto_advance():
            logger.info('[%s] Sending %s', self.session, repr(keys))
            for key in keys:
                self.send_keys(key)

                current_delay = random.randint(delay - delay_variation,
                                               delay + delay_variation)
                time.sleep(current_delay / 1000.0)
dataset/ETHPy150Open ddbeck/oraide/oraide/__init__.py/Session.teletype/original