pygeek_stellar/utils/user_input.py
def safe_input(msg):
    """
    This method extends the system built input() method in order to exit gracefully
    in case of a KeyboardInterrupt signal (ctr+c) being received.
    :param str msg: Message to be displayed to the user.
    :return: Returns the input inserted by the user.
    :rtype: str
    """
    try:
        return input('{}: '.format(msg))
    except KeyboardInterrupt:
        print('\n\nExiting..')
        raise SystemExit

    This method extends the system built input() method in order to exit gracefully
    in case of a KeyboardInterrupt signal (ctr+c) being received.
    :param str msg: Message to be displayed to the user.
    :return: Returns the input inserted by the user.
    :rtype: str
    
This method extends the system built input() method in order to exit gracefully
in case of a KeyboardInterrupt signal (ctr+c) being received.
This method extends the system built input () method in order to exit gracefully in case of a KeyboardInterrupt signal ( ctr + c ) being received .
def safe_input(msg):
    try:
        return input('{}: '.format(msg))
    except KeyboardInterrupt:
        print('\n\nExiting..')
        raise SystemExit
def safe_input ( msg ) : try : return input ( '{}: ' . format ( msg ) ) except KeyboardInterrupt : print ( '\n\nExiting..' ) raise SystemExit
This method extends the system built input() method in order to exit gracefully
in case of a KeyboardInterrupt signal (ctr+c) being received.
This method extends the system built input () method in order to exit gracefully in case of a KeyboardInterrupt signal ( ctr + c ) being received .
"""
    This method extends the system built input() method in order to exit gracefully
    in case of a KeyboardInterrupt signal (ctr+c) being received.
    :param str msg: Message to be displayed to the user.
    :return: Returns the input inserted by the user.
    :rtype: str
    """
Returns the input inserted by the user.
Returns the input inserted by the user .
str
msg
Message to be displayed to the user.
Message to be displayed to the user .