GNU bug report logs - #71440
Python Inferior Mode Can’t Recognize My Prompt

Previous Next

Package: emacs;

Reported by: "shynur ." <one.last.kiss <at> outlook.com>

Date: Sat, 8 Jun 2024 16:36:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "shynur ." <one.last.kiss <at> outlook.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "71440 <at> debbugs.gnu.org" <71440 <at> debbugs.gnu.org>
Subject: bug#71440: Re:  Re: bug#71440: Python Inferior Mode Can’t Recognize My Prompt
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.

This bug report was last modified 1 year and 39 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.