# Path: libxyz/ui/display.py
# def is_lowui_ge_0_9_9():
#     if hasattr(urwid, "VERSION") and urwid.VERSION >= (0, 9, 9):
#         return True
#     else:
#         return False


from libxyz.ui.display import is_lowui_ge_0_9_9
        @param allow_empty: If set, returns empty list if nothing was typed
        """

        _input = None

        if allow_empty:
            if is_lowui_ge_0_9_9():
                self.xyz.screen.set_input_timeouts(0)

        while True:
            _in = self.xyz.screen.get_input()

            if not _in:
                if allow_empty:
                    _input = _in
                    break
                else:
                    continue

            if self.WIN_RESIZE in _in:
                self._resized = True

            try:
                _input = [self.keycodes[tuple(_in)]]
            except KeyError:
                _input = _in

            break

        if allow_empty:

# Path: libxyz/ui/display.py
# def is_lowui_ge_0_9_9():
#     if hasattr(urwid, "VERSION") and urwid.VERSION >= (0, 9, 9):
#         return True
#     else:
#         return False


# Path: libxyz/core/inputwrapper.py
from libxyz.ui.display import is_lowui_ge_0_9_9

        @param allow_empty: If set, returns empty list if nothing was typed
        """

        _input = None

        if allow_empty:
            if is_lowui_ge_0_9_9():
                self.xyz.screen.set_input_timeouts(0)

        while True:
            _in = self.xyz.screen.get_input()

            if not _in:
                if allow_empty:
                    _input = _in
                    break
                else:
                    continue

            if self.WIN_RESIZE in _in:
                self._resized = True

            try:
                _input = [self.keycodes[tuple(_in)]]
            except KeyError:
                _input = _in

            break

        if allow_empty:

            if is_lowui_ge_0_9_9():