-
-
Notifications
You must be signed in to change notification settings - Fork 386
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
feature: Added raw terminal support in monitor
command
#2291
Conversation
montior
commandmonitor
command
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2291 +/- ##
==========================================
- Coverage 63.40% 63.26% -0.14%
==========================================
Files 219 218 -1
Lines 19536 19555 +19
==========================================
- Hits 12386 12371 -15
- Misses 6069 6099 +30
- Partials 1081 1085 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
I've tested on:
Linux - ubuntu: ✔️
Windows 11: ✔️
You mention that in raw mode, “CR are not automatically added after NL.” This confuses me on two levels:
|
You're right, the sequence is CR+LF, I've edited the post.
In raw mode, the OS terminal emulation is bypassed, and when you press the "Enter" key, the CLI gets directly the In non-raw mode, the terminal emulator does some processing before the character reaches |
Please check if the PR fulfills these requirements
See how to contribute
before creating one)
our contributing guidelines
UPGRADING.md
has been updated with a migration guide (for breaking changes)configuration.schema.json
updated if new parameters are added.What kind of change does this PR introduce?
Adds the
--raw
flag to themonitor
command to put the terminal in raw mode.When the terminal is in raw mode:
CR are not automatically added after NLLF are not automatically added after CRThis may result in weird behavior but it may be the desired result, for example, see #2251
What is the current behavior?
What is the new behavior?
Does this PR introduce a breaking change, and is titled accordingly?
No
Other information
I've tested it on Linux only. More testing is needed especially on Windows.
Fix #2251