Belle II Software light-2406-ragdoll
Basf2IPythonPrompt Class Reference
Inheritance diagram for Basf2IPythonPrompt:
Collaboration diagram for Basf2IPythonPrompt:

Public Member Functions

def in_prompt_tokens (self, cli=None)
 
def out_prompt_tokens (self)
 

Detailed Description

Provide slightly customized prompts when running basf2 interactively

Definition at line 31 of file interactive.py.

Member Function Documentation

◆ in_prompt_tokens()

def in_prompt_tokens (   self,
  cli = None 
)
Input prompt

Definition at line 34 of file interactive.py.

34 def in_prompt_tokens(self, cli=None):
35 """Input prompt"""
36 return [(Token.Prompt, "basf2 in ["),
37 (Token.PromptNum, str(self.shell.execution_count)),
38 (Token.Prompt, ']: ')]
39

◆ out_prompt_tokens()

def out_prompt_tokens (   self)
Output prompt

Definition at line 40 of file interactive.py.

40 def out_prompt_tokens(self):
41 """Output prompt"""
42 return [(Token.OutPrompt, "basf2 out["),
43 (Token.OutPromptNum, str(self.shell.execution_count)),
44 (Token.OutPrompt, ']: ')]
45
46

The documentation for this class was generated from the following file: