lwgray / think

MIT License
0 stars 1 forks source link

Print statements not properly formatted in explain mode #9

Closed lwgray closed 1 week ago

lwgray commented 1 week ago

Description

When using explain mode, print statements are currently left-aligned and lack visual distinction from other debug output. This makes it difficult to follow program execution and distinguish between debug information and actual program output.

Current Behavior

Print statements:

Example current output:

[TASK] Executing Greeting
  [STEP] Executing Set message
    [VARIABLE] Assigned Hello, World! to message
Hello, World!  # <- Problem: No indentation or formatting

Expected Behavior

Print statements should:

Example desired output:

[TASK] Executing Greeting
  [STEP] Executing Set message
    [VARIABLE] Assigned Hello, World! to message
    [OUTPUT] Hello, World!  # <- Properly formatted

Impact

This issue affects:

Technical Details

Affects the print_wrapper method in the ThinkPyInterpreter class. Needs to be implemented across all supported styles:

Labels