Esempio n. 1
0
import os
import socket
import sys
import time

# IPython's own
from IPython import ColorANSI
from IPython.Itpl import ItplNS
from IPython.ipstruct import Struct
from IPython.macro import Macro
from IPython.genutils import *

#****************************************************************************
#Color schemes for Prompts.

PromptColors = ColorANSI.ColorSchemeTable()
InputColors = ColorANSI.InputTermColors  # just a shorthand
Colors = ColorANSI.TermColors  # just a shorthand

PromptColors.add_scheme(
    ColorANSI.ColorScheme(
        'NoColor',
        in_prompt=InputColors.NoColor,  # Input prompt
        in_number=InputColors.NoColor,  # Input prompt number
        in_prompt2=InputColors.NoColor,  # Continuation prompt
        in_normal=InputColors.NoColor,  # color off (usu. Colors.Normal)
        out_prompt=Colors.NoColor,  # Output prompt
        out_number=Colors.NoColor,  # Output prompt number
        normal=Colors.NoColor  # color off (usu. Colors.Normal)
    ))
Esempio n. 2
0
import time

# IPython's own
from IPython.external.Itpl import ItplNS
from macro import Macro

from IPython import ColorANSI
from IPython import Release
from IPython.ipapi import TryNext
from IPython.ipstruct import Struct
from IPython.genutils import *

#****************************************************************************
#Color schemes for Prompts.

PromptColors = ColorANSI.ColorSchemeTable()
InputColors = ColorANSI.InputTermColors  # just a shorthand
Colors = ColorANSI.TermColors  # just a shorthand

__PColNoColor = ColorANSI.ColorScheme(
    'NoColor',
    in_prompt=InputColors.NoColor,  # Input prompt
    in_number=InputColors.NoColor,  # Input prompt number
    in_prompt2=InputColors.NoColor,  # Continuation prompt
    in_normal=InputColors.NoColor,  # color off (usu. Colors.Normal)
    out_prompt=Colors.NoColor,  # Output prompt
    out_number=Colors.NoColor,  # Output prompt number
    normal=Colors.NoColor  # color off (usu. Colors.Normal)
)

PromptColors.add_scheme(__PColNoColor)