connectbot icon indicating copy to clipboard operation
connectbot copied to clipboard

When switching to Fish shell the prompt shows spurious characters

Open mdeval opened this issue 7 months ago • 1 comments

Bug description

When dropping to fish the shell prompt has spurious characters and the commands in the history do not display correctly

Steps to reproduce

  1. Log in to an SSH server with ConnectBot
  2. Dropping to fish shell
  3. Prompt has spurious charactes

Expected behavior

Uaing a Linux ssh client and dropping to fish works normally.

Screenshots

The screenshot shows the result after typing fish and a few carriage returns: Image

Android device

  • Device: Motorola g Power 5G
  • OS: Android 15
  • ConnectBot Version: 1.9.10-oss

Server information

  • OS: Archlinux
  • SSH Software and Version: OpenSSH 10.0p1
  • Pubkeys used (if applicable):

Additional context

locale is en_US.utf8 and TERM is xterm

mdeval avatar May 09 '25 08:05 mdeval

Same problem. Fish v4 on Fedora. All emulation modes have this problem.

TheDidek avatar May 31 '25 16:05 TheDidek

Yes, same for me Connectbot is installed from github, version 1.9.12

Image

Aldnoa19 avatar Jul 22 '25 06:07 Aldnoa19

1.9.12-oss installed from f-droid.

Same issue 4;1m on a fish prompt. We use fish as the default shell on a bunch of machines. This is machine and prompt independent as those change, we get tge same results in connectbot Other SSH clients are unaffected.

CoTH-dev avatar Aug 17 '25 13:08 CoTH-dev

It looks like an VT escape sequence that vt220.java is not handling.

kruton avatar Aug 17 '25 14:08 kruton

Same for me. Arch Linux with fish 4.1.2. Connectbot on android is installed from Google Play, tested both beta and normal versions - same thing.

Aldnoa19 avatar Nov 08 '25 23:11 Aldnoa19

Thanks, I can reproduce this by running fish. I'll try to fix it in the next minor release.

kruton avatar Nov 20 '25 17:11 kruton

Fixed by #1660

kruton avatar Dec 04 '25 06:12 kruton

Here's what it looks like with the new terminal emulator and configured fonts (issue #458)

Image

kruton avatar Dec 04 '25 06:12 kruton

Nice, thank you!

Cameo007 avatar Dec 04 '25 07:12 Cameo007