Need help to send a BLAH RET to an eat buffer from Lisp #17
Labels
No labels
Kind: Breaking
Kind: Bug
Kind: Documentation
Kind: Enhancement
Kind: Feature
Kind: Maintenance
Kind: Question
Kind: Security
Kind: Testing
Priority: Critical
Priority: High
Priority: Low
Priority: Medium
Reviewed: Confirmed
Reviewed: Duplicate
Reviewed: Invalid
Status: Blocked
Status: Completed
Status: Help wanted
Status: In progress
Status: Needs feedback
Status: Stale
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: akib/emacs-eat#17
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Hi, I am trying to make eepitch[0] support eat, and I need help with something that I'm not being able to figure out from the source code...
Suppose that I have a buffer called "eat: lua5.1 (2)" - let me call it the "target buffer" - that is in eat-mode and in eat-emacs-mode, and that is running lua5.1. What is the right way to "send the line BLAH and a RET" to it? Let me make this more precise: I need to simulate that the user went to the target buffer, switched it to some non-read-only eat mode, typed "BLAH" there, typed a RET after that BLAH, and switched back to eat-emacs-mode. How do I do that? For example, in vterm I can do this:
I don't know how much detail I should send, so let me guess that it is better to send a lot... here it goes, for the sake of completeness. There is more info about eepitch here,
[0] http://angg.twu.net/eepitch.html
the functions in eepitch that support vterm are here,
[1] http://angg.twu.net/eev-current/eepitch.el.html#other-terms
and a solution that is simple but fragile is ok for me. For example, we can suppose that the "cursor of the terminal" is at (point-max). More info: I am on Debian and running an Emacs 29 compiled today, and my code for creating the buffer "eat: lua5.1 (2)" is here:
For now do
(process-send-string eat--process "blah\n")in the terminal buffer. I'll create a function for this when Eat matures.Hi akib, has there been any progress on this, it complains about
eat--processbeing void variable when I use it like this:The API has changed. It's now
(eat-term-send-string TERMINAL STRING).And what would the TERMINAL argument here be, can you share example usage?
Where I want to send multiple strings to same eat terminal, how would I choose that terminal?