@brammool Thanks for fixing this. But I think that it's better to be callback function related on the job options like below. How do you think?
```
call job_setoptions(job, {"response_cb", Fn)
```
In my opinion it should work to just run a terminal and start some tool
there, without setting something up on the Vim side for this specific
terminal. A plugin could provide a Vim function and a small tool to run
in the terminal. Let's keep this simple.
--
hundred-and-one symptoms of being an internet addict:
70. ISDN lines are added to your house on a hourly basis
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
When start terminals A and B, and want to handle response messages
from only A, it have to look argument a:bufnum?
Yes, the buffer of the terminal is passed, so you can use something in
that buffer to distinguish A and B.
More general would be that A and B call different functions, thus the
decision what to do is made in the job running in the terminal, since
that one wants to communicate something to Vim.
--
hundred-and-one symptoms of being an internet addict:
72. Somebody at IRC just mentioned a way to obtain full motion video without
a PC using a wireless protocol called NTSC, you wonder how you never
heard about it
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This comment has been minimized.
@brammool Thanks for fixing this. But I think that it's better to be callback function related on the job options like below. How do you think?
This comment has been minimized.
Or this is better to be an option for term_start.
This comment has been minimized.
This comment has been minimized.
When start terminals A and B, and want to handle response messages from only A, it have to look argument a:bufnum?
This comment has been minimized.