summaryrefslogtreecommitdiffstats
path: root/src/proto/terminal.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-08 20:47:00 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-08 20:47:00 +0200
commit3c518400d1a51929572dd9fcf77dba94d78d7545 (patch)
treed87d536f1d0c3621ed013f0cf2b1b9ffe18b3ee1 /src/proto/terminal.pro
parent1a735d6c9bf4204492b9f9aeba280737fab46ed3 (diff)
patch 8.0.1076: term_start() does not take callbacksv8.0.1076
Problem: term_start() does not take callbacks. When using two terminals without a job only one is read from. A terminal without a window returns the wrong pty. Solution: Support "callback", "out_cb" and "err_cb". Fix terminal without a window. Fix reading from multiple channels.
Diffstat (limited to 'src/proto/terminal.pro')
-rw-r--r--src/proto/terminal.pro3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/proto/terminal.pro b/src/proto/terminal.pro
index 3811ba7a51..639318d518 100644
--- a/src/proto/terminal.pro
+++ b/src/proto/terminal.pro
@@ -3,6 +3,7 @@ void ex_terminal(exarg_T *eap);
void free_terminal(buf_T *buf);
void write_to_term(buf_T *buffer, char_u *msg, channel_T *channel);
int term_job_running(term_T *term);
+int term_none_open(term_T *term);
int term_in_normal_mode(void);
void term_enter_job_mode(void);
int send_keys_to_term(term_T *term, int c, int typed);
@@ -16,7 +17,6 @@ int term_update_window(win_T *wp);
int term_is_finished(buf_T *buf);
int term_show_buffer(buf_T *buf);
void term_change_in_curbuf(void);
-void term_send_eof(channel_T *ch);
int term_get_attr(buf_T *buf, linenr_T lnum, int col);
char_u *term_get_status_text(term_T *term);
int set_ref_in_term(int copyID);
@@ -35,5 +35,6 @@ void f_term_scrape(typval_T *argvars, typval_T *rettv);
void f_term_sendkeys(typval_T *argvars, typval_T *rettv);
void f_term_start(typval_T *argvars, typval_T *rettv);
void f_term_wait(typval_T *argvars, typval_T *rettv);
+void term_send_eof(channel_T *ch);
int terminal_enabled(void);
/* vim: set ft=c : */