DATurner/miranda
1
14
Fork
You've already forked miranda
2

Vendor linenoise sources #47

Open
jgart wants to merge 3 commits from jgart/miranda:vendor-linenoise into main
pull from: jgart/miranda:vendor-linenoise
merge into: DATurner:main
DATurner:main
DATurner:interleave
DATurner:sparc
Collaborator
Copy link

Hi @martinwguy

This PR adds in the vendored sources for linenoise taken from here:

https://github.com/antirez/linenoise

I've added some documentation about this as well.

I've added a small amount of build system logic in order to simplify packaging for distro maintainers who prefer to use their system installed linenoise library.

What do you think?

If all looks good I can merge to main or simplify as you prefer.

Hi @martinwguy This PR adds in the vendored sources for `linenoise` taken from here: https://github.com/antirez/linenoise I've added some documentation about this as well. I've added a small amount of build system logic in order to simplify packaging for distro maintainers who prefer to use their system installed linenoise library. What do you think? If all looks good I can merge to `main` or simplify as you prefer.
jgart force-pushed vendor-linenoise from ab9f3925a2 to c04a174ffc 2025年12月17日 22:31:47 +01:00 Compare
jgart force-pushed vendor-linenoise from c04a174ffc to bc0d543801 2025年12月17日 22:36:28 +01:00 Compare
jgart force-pushed vendor-linenoise from bc0d543801 to e578b9e545 2025年12月17日 22:42:37 +01:00 Compare
jgart force-pushed vendor-linenoise from e578b9e545 to 29dbe21b71 2025年12月18日 00:02:52 +01:00 Compare
jgart changed title from (削除) Vendor linenoise sources (削除ここまで) to WIP: Vendor linenoise sources 2025年12月18日 05:33:26 +01:00
jgart changed title from (削除) WIP: Vendor linenoise sources (削除ここまで) to Vendor linenoise sources 2025年12月18日 05:47:39 +01:00

rlwrap is interesting but Professor Turner's direction was
to incorporate linenoise directly so let's do that.

Please go ahead. I'll make a new release as and when.

Blessings & thanks for caring

M
`rlwrap` is interesting but Professor Turner's direction was to incorporate linenoise directly so let's do that. Please go ahead. I'll make a new release as and when. Blessings & thanks for caring M
Author
Collaborator
Copy link

@martinwguy wrote in #47 (comment):

rlwrap is interesting but Professor Turner's direction was to incorporate linenoise directly so let's do that.

Hi, ok, sounds good. That makes sense. 🎉

Please go ahead. I'll make a new release as and when.

Give me a day or two to review a few things and I'll proceed with merging these build system changes.

Blessings & thanks for caring

Thank you for reviewing and for being encouraging and welcoming.

@martinwguy wrote in https://codeberg.org/DATurner/miranda/pulls/47#issuecomment-9034860: > `rlwrap` is interesting but Professor Turner's direction was to incorporate linenoise directly so let's do that. Hi, ok, sounds good. That makes sense. 🎉 > Please go ahead. I'll make a new release as and when. Give me a day or two to review a few things and I'll proceed with merging these build system changes. > Blessings & thanks for caring Thank you for reviewing and for being encouraging and welcoming.

My only other thought is how it might interfere with programs that read stdin,
like a visual editor for example, presumably wanting one character at a time.
isatty(0) maybe (like for --hush) and only for the interactive command line.
That said it seems to run normally in "cooked mode" with [Delete] and so on
but if one does "stty cbreak; mira" and say $- it does get one character at a time.

My only other thought is how it might interfere with programs that read stdin, like a visual editor for example, presumably wanting one character at a time. isatty(0) maybe (like for --hush) and only for the interactive command line. That said it seems to run normally in "cooked mode" with [Delete] and so on but if one does "stty cbreak; mira" and say $- it does get one character at a time.

@jgart Please forgive me, I've been forgetting this for ages, always taken with sox_ng.

Save me some time: can you make a branch with the changes you suggest?
I can see about making another release if all goes well.

Scusa!

M
@jgart Please forgive me, I've been forgetting this for ages, always taken with sox_ng. Save me some time: can you make a branch with the changes you suggest? I can see about making another release if all goes well. Scusa! M
Author
Collaborator
Copy link

@martinwguy Hi, I've been pulled away to other work as well recently.

Give me another week or so and I'll take another look. Thanks for your message.

@martinwguy Hi, I've been pulled away to other work as well recently. Give me another week or so and I'll take another look. Thanks for your message.
This pull request has changes conflicting with the target branch.
  • Makefile
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u vendor-linenoise:jgart-vendor-linenoise
git switch jgart-vendor-linenoise

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff jgart-vendor-linenoise
git switch jgart-vendor-linenoise
git rebase main
git switch main
git merge --ff-only jgart-vendor-linenoise
git switch jgart-vendor-linenoise
git rebase main
git switch main
git merge --no-ff jgart-vendor-linenoise
git switch main
git merge --squash jgart-vendor-linenoise
git switch main
git merge --ff-only jgart-vendor-linenoise
git switch main
git merge jgart-vendor-linenoise
git push origin main
Sign in to join this conversation.
No reviewers
No labels
unconfirmed
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DATurner/miranda!47
Reference in a new issue
DATurner/miranda
No description provided.
Delete branch "jgart/miranda:vendor-linenoise"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?