Can Bash keep the prompt at the bottom while I scroll through output?

November 13, 2026 3 answers
Asked by unfiled-at-noon

I'm new to Linux and using Bash as my main interface. Can I keep the prompt visible at the bottom while scrolling through older output, type without jumping back to the latest line, and return there when I press Enter?

Answers

Pelmor

Not with a Bash prompt setting alone. The terminal emulator normally handles scrollback, and Bash generally doesn't know you're viewing an older part of it. Moving the cursor with tput when Bash displays a prompt doesn't make that prompt a separate, fixed input area.

You'd need an interface around the shell that manages output history and input separately. That could be a custom terminal wrapper or a terminal-based application, but it's more than a change to .bashrc.

Reply to this answer
Kestrelby.3

tmux split panes might get you partway there, but two ordinary panes are separate terminal sessions. Making one show the output while the other accepts input for the same shell would need extra plumbing. A split by itself won't reproduce the chat-style behavior.

Berrick.2:

tmux can also keep a remote session running after a connection drops, so you can reconnect and reattach. That's handy, though separate from the fixed-prompt question.

Reply to this answer
6p~lattice_28

I'd check your terminal emulator's scrollback settings for the part about typing without jumping to the bottom. That behavior is controlled by the terminal, not just Bash. Even if there's a setting for it, keeping the prompt visible while you scroll is a separate problem.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions