Is there a way to quit `less`, in linux, such that it leaves the current output ...

@mcc@mastodon.social

Is there a way to quit `less`, in linux, such that it leaves the current output on the screen. Like I `less` through a file, I find in the file an example of a command that I want to run. I quit. The screen blanks completely and now I'm back at a prompt, but the thing I need to type into the prompt is gone. On some systems `less` just leaves its current display up and scrolls up one line for the prompt. But not on this system. Why.

Also: Same question but vi.

EDIT: See answer in next post.