-
Notifications
You must be signed in to change notification settings - Fork 2.6k
bugfix: Update PAGER env for Windows compatibility in Terminal #3986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This makes sense, we might need to consider using a windows-native pager like |
mrubens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KJ7LNW does this seem good to you?
|
Gonna merge for now, but happy to follow up |
This is to disable pager. Empty string is applicable to Unix too but some applications are not set up properly. aws/aws-cli#4972 |
That looks great as a simple compatibility fix. The only thing I would question is whether or not PAGER needs to be set in some way to prevent commands from requiring user input in Windows. @dosu please look at the diff: is there a Windows equivalent to |
|
FYI in case some future Windows application needs PAGER set and does not support I do not have the means to test this, but However, as @SmartManoj points out, I suggest we leave it as it is for now and follow up if someone else has a problem referencing this PR, this comment is mostly for future reference in case somebody needs it. |
Is there any source? Hangs in PS Setting an empty string will delete the env, but maybe in the future, they will fix it. Related changes in .NET |
|
okay well clearly my suggestion did not work ... so leaving it blank is probably the best option unless you come up with something |
* migrate focusChatInput * move subscription in with the others * changed grpc method; fixed a bug where keybinding doesn't show chatview if in another tab --------- Co-authored-by: Elephant Lumps <[email protected]>




Fixes
Important
Fixes Windows compatibility by conditionally setting
PAGERenvironment variable inTerminal.tsand updating tests accordingly.PAGERinTerminal.tsto be empty on Windows (process.platform === "win32") and "cat" otherwise.catcommand was not recognized on Windows.TerminalRegistry.test.tsto use a platform-specificPAGERvalue in tests.PAGER.This description was created by
for 88f64b5. You can customize this summary. It will automatically update as commits are pushed.