http://mmgen-wallet.i2p/project/mmgen/mmgen-wallet/src/e2a3fd921fd296eb636411eac151779ccdd1ecc3/mmgen/main.py
If not, see <http://www.gnu.org/licenses/>. """ main: Script launcher for the MMGen Project """ import sys,os def launch(*, mod=None, func=None, fqmod=None, package='mmgen'): if sys.platform == 'linux' and sys.stdin.isatty(): import termios,atexit fd = sys.stdin.fileno() old = termios.tcgetattr(fd) atexit.register(lambda: termios.tcsetattr(fd,termios.TCSADRAIN,old)) try: __import__(f'{package}.main_{mod}') if mod else func() if func else __import__(fqmod) except KeyboardInterrupt: from .color import...