warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.35k stars 372 forks source link

Input position is changed when switch to root over ssh #5173

Open eahangari-8x8 opened 3 months ago

eahangari-8x8 commented 3 months ago

Dupe Check

Describe the bug

Hi everyone, I have set my input position to Classic mode and it is ok when I ssh to my ec2 instances, but in the instance when I change to user to root like sudo -i then the input position for the root user is moved to the bottom of the screen. any Idea of this? Thanks

To reproduce

sudo -i

Expected behavior

just change the user in the same input position like the regural linux user

Screenshots

Screenshot 2024-07-25 at 2 32 20 PM

Operating system

Linux

Operating system and version

ec2 ubuntu 24.04

Shell Version

No response

Current Warp version

v0.2024.07.23.08.02.stable_01

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

dannyneira commented 3 months ago

Warp has an SSH Wrapper that enables features (like the blocks, prompt, completions, etc.) on remote machines requiring the default prompt on the remote machine to be either bash or zsh. Once you're in the ssh wrapper and you run sudo -i, your essentially in a subshell, similar to when you run it on the local machine.

Add sudo -i to the subshell menu and it should prompt to Warpify the subshell with CTRL-i

Related docs: https://docs.warp.dev/features/ssh https://docs.warp.dev/features/subshells

If those don't work, please let us know.