Subject: bug#71440: Re: Re: bug#71440: Python Inferior Mode Can’t Recognize My Prompt

From: "shynur ." <[email-masked]>
Date: Sat, 8 Jun 2024 19:50:14 +0000

> Because your PYTHONSTARTUP file is encoded in UTF-8, right?

Yes.

> Anyway, codepage 1252 cannot encode these two characters

Python inferior mode works well with

```python
import sys
sys.ps1, sys.ps2 = "►", "▻"
```

The problem came after I change PS to "\033[32m►\033[0m".
"\033[32m" and "\033[0m" color the prompt in terminal.