INNER CODE UNIT · Python

padding2

tomtommyyuan/spmind · spmind/cli.py:211

    padding2 = (term_width - 2 - len(subtitle)) // 2
    print(f"\033[1;36m│\033[0m{' ' * padding2}\033[90m{subtitle}\033[0m{' ' * (term_width - 2 - padding2 - len(subtitle))}\033[1;36m│\033[0m")
    print(f"\033[1;36m│\033[0m{' ' * (term_width - 2)}\033[1;36m│\033[0m")
    print(f"\033[1;36m╰{'─' * (term_width - 2)}╯\033[0m")
    print()

    # Tips
    print(f"\033[90m  cwd: {agent.path}\033[0m")
    if agent.model:
        print(f"\033[90m  model: {agent.model}\033[0m")
    print()
    print(f"\033[90m  Tips: Use \033[0m\033[33m/help\033[0m\033[90m for commands, \033[0m\033[33mCtrl+C\033[0m\033[90m to exit\033[0m")
    print()

    # Handle initial prompt if provided
    if initial_prompt:
        print(f"\033[1;32m❯\033[0m {initial_prompt}")
        print()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…