Ejemplo n.º 1
0
    'out_prompt'     : Colors.Red,
    'out_number'     : Colors.LightRed,

    'normal'         : Colors.Normal  # color off (usu. Colors.Normal)
    }  )

# Hack: the 'neutral' colours are not very visible on a dark background on
# Windows. Since Windows command prompts have a dark background by default, and
# relatively few users are likely to alter that, we will use the 'Linux' colours,
# designed for a dark background, as the default on Windows. Changing it here
# avoids affecting the prompt colours rendered by prompt_toolkit, where the
# neutral defaults do work OK.

if os.name == 'nt':
    NeutralColors = LinuxColors.copy(name='Neutral')

LightBGColors = ColorScheme(
    'LightBG',{
    'header'         : Colors.Red,
    token.NUMBER     : Colors.Cyan,
    token.OP         : Colors.Blue,
    token.STRING     : Colors.Blue,
    tokenize.COMMENT : Colors.Red,
    token.NAME       : Colors.Normal,
    token.ERRORTOKEN : Colors.Red,


    _KEYWORD         : Colors.Green,
    _TEXT            : Colors.Blue,
Ejemplo n.º 2
0
        'in_prompt2': InputTermColors.Blue,
        'in_normal': InputTermColors.Normal,  # color off (usu. Colors.Normal)
        'out_prompt': Colors.Red,
        'out_number': Colors.LightRed,
        'normal': Colors.Normal  # color off (usu. Colors.Normal)
    })

# Hack: the 'neutral' colours are not very visible on a dark background on
# Windows. Since Windows command prompts have a dark background by default, and
# relatively few users are likely to alter that, we will use the 'Linux' colours,
# designed for a dark background, as the default on Windows. Changing it here
# avoids affecting the prompt colours rendered by prompt_toolkit, where the
# neutral defaults do work OK.

if os.name == 'nt':
    NeutralColors = LinuxColors.copy(name='Neutral')

LightBGColors = ColorScheme(
    'LightBG',
    {
        'header': Colors.Red,
        token.NUMBER: Colors.Cyan,
        token.OP: Colors.Blue,
        token.STRING: Colors.Blue,
        tokenize.COMMENT: Colors.Red,
        token.NAME: Colors.Normal,
        token.ERRORTOKEN: Colors.Red,
        _KEYWORD: Colors.Green,
        _TEXT: Colors.Blue,
        'in_prompt': InputTermColors.Blue,
        'in_number': InputTermColors.LightBlue,
Ejemplo n.º 3
0
        "in_normal": InputTermColors.Normal,  # color off (usu. Colors.Normal)
        "out_prompt": Colors.Red,
        "out_number": Colors.LightRed,
        "normal": Colors.Normal,  # color off (usu. Colors.Normal)
    },
)

# Hack: the 'neutral' colours are not very visible on a dark background on
# Windows. Since Windows command prompts have a dark background by default, and
# relatively few users are likely to alter that, we will use the 'Linux' colours,
# designed for a dark background, as the default on Windows. Changing it here
# avoids affecting the prompt colours rendered by prompt_toolkit, where the
# neutral defaults do work OK.

if os.name == "nt":
    NeutralColors = LinuxColors.copy(name="Neutral")

LightBGColors = ColorScheme(
    "LightBG",
    {
        "header": Colors.Red,
        token.NUMBER: Colors.Cyan,
        token.OP: Colors.Blue,
        token.STRING: Colors.Blue,
        tokenize.COMMENT: Colors.Red,
        token.NAME: Colors.Normal,
        token.ERRORTOKEN: Colors.Red,
        _KEYWORD: Colors.Green,
        _TEXT: Colors.Blue,
        "in_prompt": InputTermColors.Blue,
        "in_number": InputTermColors.LightBlue,