| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report❌ Patch coverage is 38.09524% with 13 lines in your changes missing coverage. Please review. @@ Coverage Diff @@
## main #3770 +/- ##
==========================================
- Coverage 61.37% 61.32% -0.05%
==========================================
Files 648 648
Lines 45706 45716 +10
==========================================
- Hits 28051 28036 -15
- Misses 17655 17680 +25
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Sorry, something went wrong.
There was a problem hiding this comment.
Linux SetTermios now rejects valid termios values returned or produced by existing package APIs.
Review effort: Balanced
Findings: 1
Updates termios handling to support Linux baud-rate changes and reuse platform-specific ioctl wrappers.
Changes:
| File | Description |
|---|---|
| pkg/termios/termios_linux.go | Adds Linux baud conversion during setting. |
| pkg/termios/termios_bsd.go | Uses platform-specific ioctl constants. |
| pkg/termios/sgtty.go | Uses shared termios get/set helpers. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
That constant no longer exists in bsd. Signed-off-by: Ronald Minnich <rminnich@gmail.com>
Use the package constants, specifically designed to provide the right values for different kernels. Signed-off-by: Ronald Minnich <rminnich@gmail.com>
Use the old fashioned BAUD flags in Cflags, because the Go unix package still can not handle TIOC?ETS2 and its structs. Signed-off-by: Ronald Minnich <rminnich@gmail.com>
We defined the per-os functions years ago and never used them. This fixes baud rate setting across a number of kernels, particularly Linux. Signed-off-by: Ronald Minnich <rminnich@gmail.com>
Convert returned Linux B* to a rate for Ispeed and Ospeed Add 0 as a possible baud rate. Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
| Back | FazBrowse Home | New Git URL |
baud rate setting never worked on Linux, fix that.
Fix improper code in this package (all of it my fault ...)