Split src/core into a separate xterm_core package that does not depend on Flutter #213
+136
−12,553
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a work-in-progress PR that moves src/core into a separate package called xterm_core that does not depend on Flutter. This allows using xterm in pure dart (headless mode). This is useful for client-server environments, it can also be used to develop terminal-based AI agents in dart.
Note: There are no logic changes in this PR. It merely moves all of the core files into the separate package, defines a new pubspec and updates the imports.
I have succesfully tested this on iOS with the example app.
Next steps: we can create a new repository for xterm_core, a pub.dev package and move the contents of xterm_core/ there. If you like, I can set up the new repository and transfer the ownership to you. Once the package is set up I can update this PR to add the dependency.