Esempio n. 1
0
def opt_postproc_initializations():
    from mmgen.term import set_terminal_vars
    set_terminal_vars()

    if g.color:  # MMGEN_DISABLE_COLOR sets this to False
        from mmgen.color import start_mscolor, init_color
        if g.platform == 'win':
            start_mscolor()
        init_color(num_colors=('auto', 256)[bool(g.force_256_color)])

    g.coin = g.coin.upper()  # allow user to use lowercase
    g.dcoin = g.coin
Esempio n. 2
0
File: opts.py Progetto: mmgen/mmgen
def opt_postproc_initializations():
	from mmgen.term import set_terminal_vars
	set_terminal_vars()

	if g.color: # MMGEN_DISABLE_COLOR sets this to False
		from mmgen.color import start_mscolor,init_color
		if g.platform == 'win':
			start_mscolor()
		init_color(num_colors=('auto',256)[bool(g.force_256_color)])

	g.coin = g.coin.upper() # allow user to use lowercase
	g.dcoin = g.coin
Esempio n. 3
0
def opt_postproc_initializations():
	from mmgen.term import set_terminal_vars
	set_terminal_vars()

	# testnet data_dir differs from data_dir_root, so check or create
	from mmgen.util import msg,die,check_or_create_dir
	check_or_create_dir(g.data_dir) # dies on error

	from mmgen.color import init_color
	init_color(enable_color=g.color,num_colors=('auto',256)[bool(g.force_256_color)])

	if g.platform == 'win': start_mscolor()

	g.coin = g.coin.upper() # allow user to use lowercase
Esempio n. 4
0
def opt_postproc_initializations():
    from mmgen.term import set_terminal_vars
    set_terminal_vars()

    # testnet data_dir differs from data_dir_root, so check or create
    from mmgen.util import msg, die, check_or_create_dir
    check_or_create_dir(g.data_dir)  # dies on error

    from mmgen.color import init_color
    init_color(enable_color=g.color,
               num_colors=('auto', 256)[bool(g.force_256_color)])

    if g.platform == 'win': start_mscolor()

    g.coin = g.coin.upper()  # allow user to use lowercase