Please have a look what kind of output you get when you type echo $PS1 in your terminal.
Is it the same long string there?
If yes have a look in the file ~/.bashrc if you can remove the string there. (.bashrc is a hidden file in /home/username/.bashrc)
It should be something like
PS1= long string
If there is such an entry, please put a # in front of the PSI= variable to see if the prompt gets normal.
You have to reopen with ssh to see the result.
The latest systemd (in Fedora 43) expects that it is communicating with an ANSI-standard terminal emulator, and gives weird behaviour with non-ANSI terminals.
Yes. I found that the environment $TERM, which value couldn’t be changed with command export TERM=‘’, maybe has relation with the result.
It’s always “08;end=xxxxxxxx-xxxx-xxxx-899f-xxxxxxxx0e8e;exit=success08;start=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx;user=root;hostname=localhost;machineid=xxxxxxxxxxxx4cb99f4df0866d86fa07;bootid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx;pid=1111;type=shell;cwd=/root”
P.S.
It’s ok when I login console or ssh with tabby client.
Currently It’s wrong when I use SecureCRT client.
This totally misses the point. Fedora is shipping configuration that’s broken on most of the terminals it provides, including xterm, GNOME Terminal, and MATE Terminal. It also fails for people coming in from other systems.
It’s perfectly fine for the systemd config to expect to be communicating with an OSC 3008 compliant terminal. I have no issue with that.
From a Fedora integration perspective, however, it is definitely not okay to break the user experience this way. There needs to be some sort of OSC 3008 compliance check before allowing the systemd config to go forward. Whether that check is wrapped around vanilla systemd config or injected into it as a patch is up to the integrator, but leaving it out should be a release blocker.
Let me be clear: If systemd wants to declare such breakage NOI (“Not Our Issue”), that’s within their prerogative. It’s totally on the Fedora project to ensure the software they include integrates functionally.
Here’s a stupid simple test for terminals shipped by Fedora. Issue the following command to whack the terminal title:
Now ssh into the same host you’re already on (or another Fedora 43 host with vanilla prompt command config). In most Fedora-provided terminals, the terminal title will not change to reflect the host you’ve logged into. This is at best dangerous; the user is given bogus information about which host she’s logged into and could easily issue commands on the wrong host. The systemd project can hide behind “NOI”, but the Fedora project should not.