Skip to content

Conversation

msteveb
Copy link
Owner

@msteveb msteveb commented Sep 11, 2025

Add support for custom end-of-line (EOL) delimiters and an option to keep or discard the EOL string in the aio gets command.

This can be helpful when reading from a stream that uses something other than newline as an end of frame sequence.

@msteveb msteveb requested a review from Copilot September 11, 2025 01:21
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for custom end-of-line (EOL) delimiters and an option to keep or discard the EOL string in the aio gets command. This enhancement allows reading from streams that use delimiters other than newline characters.

Key changes:

  • Added -eol option to specify custom end-of-line delimiters
  • Added -keep option to control whether EOL strings are included in results
  • Updated command signature and parameter validation to support the new options

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
jim-aio.c Implements the new -eol and -keep options with parameter parsing and custom delimiter searching
jim_tcl.txt Updates documentation to describe the new command options and usage
tests/aio.test Adds comprehensive test cases covering various combinations of the new options

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

This can make it easier to read non-newline based protocols
with gets, especially in conjunction with timeout.

Signed-off-by: Steve Bennett <[email protected]>
@msteveb
Copy link
Owner Author

msteveb commented Oct 5, 2025

If there are no comments on this I will merge it soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant