WSL terminal - more command - navigation with space, b, q does not work #5715

Closed
opened 2026-01-31 00:19:56 +00:00 by claunia · 6 comments
Owner

Originally created by @eliranwong on GitHub (Dec 28, 2019).

Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

open Winodws Terminal (Preview)
open a WSL terminal
cat [a text file] | more

navigation with keys "space", "b", or "q" does not work

Expected behavior

Actual behavior

Originally created by @eliranwong on GitHub (Dec 28, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Any other software? ``` # Steps to reproduce open Winodws Terminal (Preview) open a WSL terminal cat [a text file] | more navigation with keys "space", "b", or "q" does not work # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior <!-- What's actually happening? -->
claunia added the Issue-QuestionNeeds-Tag-FixResolution-Answered labels 2026-01-31 00:19:56 +00:00
Author
Owner

@eliranwong commented on GitHub (Dec 28, 2019):

don't know why. after a restart of Windows, keys "space" and "q" work with command "more", but key "b" is till not working.

@eliranwong commented on GitHub (Dec 28, 2019): don't know why. after a restart of Windows, keys "space" and "q" work with command "more", but key "b" is till not working.
Author
Owner

@DHowett-MSFT commented on GitHub (Dec 28, 2019):

As far as I am aware, more doesn’t support b, only space and q. You may want to use less if you need support for scrolling backwards in history?

@DHowett-MSFT commented on GitHub (Dec 28, 2019): As far as I am aware, _more_ doesn’t support `b`, only space and `q`. You may want to use _less_ if you need support for scrolling backwards in history?
Author
Owner

@DHowett-MSFT commented on GitHub (Dec 28, 2019):

Does this work in a normal WSL window (outside of Windows Terminal)?

@DHowett-MSFT commented on GitHub (Dec 28, 2019): Does this work in a normal WSL window (outside of Windows Terminal)?
Author
Owner

@eliranwong commented on GitHub (Dec 28, 2019):

@DHowett-MSFT thanks for reply.

"b" is on man page of "more". I just tried in a normal WSL window. It does not work. It is not a big problem to me, I will use "less" instead. What strange was that on first launch after I installed Windows Terminal, even "space" and "q" does not work with both "man" and "more" command.

The issue disappear now after a restart, though I am not sure if it relates to the restart.

@eliranwong commented on GitHub (Dec 28, 2019): @DHowett-MSFT thanks for reply. "b" is on man page of "more". I just tried in a normal WSL window. It does not work. It is not a big problem to me, I will use "less" instead. What strange was that on first launch after I installed Windows Terminal, even "space" and "q" does not work with both "man" and "more" command. The issue disappear now after a restart, though I am not sure if it relates to the restart.
Author
Owner

@j4james commented on GitHub (Dec 29, 2019):

From the man page:

b or ^B Skip backwards k screenfuls of text. Defaults to 1.
Only works with files, not pipes.

Note the last bit. If you want to be able to skip backwards, you can't pipe the output from cat into more - you need to open the file directly, e.g. more filename.txt

@j4james commented on GitHub (Dec 29, 2019): From the man page: >b or ^B Skip backwards k screenfuls of text. Defaults to 1. Only works with files, not pipes. Note the last bit. If you want to be able to skip backwards, you can't pipe the output from `cat` into `more` - you need to open the file directly, e.g. `more filename.txt`
Author
Owner

@DHowett-MSFT commented on GitHub (Dec 29, 2019):

A-ha!

@DHowett-MSFT commented on GitHub (Dec 29, 2019): A-ha!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5715