Mercurial > vim
annotate src/proto/terminal.pro @ 13298:a88c5e12b860 v8.0.1523
patch 8.0.1523: cannot write and read terminal screendumps
commit https://github.com/vim/vim/commit/d96ff165113ce5fe62107add590997660e3d4802
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 18 22:13:29 2018 +0100
patch 8.0.1523: cannot write and read terminal screendumps
Problem: Cannot write and read terminal screendumps.
Solution: Add term_dumpwrite(), term_dumpread() and term_dumpdiff().
Also add assert_equalfile().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 18 Feb 2018 22:15:06 +0100 |
parents | 418941f0df08 |
children | fa198b71bab2 |
rev | line source |
---|---|
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 /* terminal.c */ |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 void ex_terminal(exarg_T *eap); |
11834
0cfe4a07c2ad
patch 8.0.0797: finished job in terminal window is not handled
Christian Brabandt <cb@256bit.org>
parents:
11804
diff
changeset
|
3 void free_terminal(buf_T *buf); |
11670
3b2afa2b77b3
patch 8.0.0718: output of job in terminal is not displayed
Christian Brabandt <cb@256bit.org>
parents:
11621
diff
changeset
|
4 void write_to_term(buf_T *buffer, char_u *msg, channel_T *channel); |
11917
00836eb177cb
patch 8.0.0838: buffer hangs around whem terminal window is closed
Christian Brabandt <cb@256bit.org>
parents:
11882
diff
changeset
|
5 int term_job_running(term_T *term); |
12393
128cd982c7b8
patch 8.0.1076: term_start() does not take callbacks
Christian Brabandt <cb@256bit.org>
parents:
12309
diff
changeset
|
6 int term_none_open(term_T *term); |
11993
92a86fe8adc0
patch 8.0.0877: using CTRL- CTRL-N in terminal is inconsistent
Christian Brabandt <cb@256bit.org>
parents:
11985
diff
changeset
|
7 int term_in_normal_mode(void); |
92a86fe8adc0
patch 8.0.0877: using CTRL- CTRL-N in terminal is inconsistent
Christian Brabandt <cb@256bit.org>
parents:
11985
diff
changeset
|
8 void term_enter_job_mode(void); |
11983
448635f73e09
patch 8.0.0872: no mouse scroll with a terminal window
Christian Brabandt <cb@256bit.org>
parents:
11933
diff
changeset
|
9 int send_keys_to_term(term_T *term, int c, int typed); |
12457
dfb8254aa735
patch 8.0.1108: cannot specify mappings for the terminal window
Christian Brabandt <cb@256bit.org>
parents:
12393
diff
changeset
|
10 int terminal_is_active(void); |
12082
504df4aa84c6
patch 8.0.0921: terminal window cursor shape not supported in the GUI
Christian Brabandt <cb@256bit.org>
parents:
12035
diff
changeset
|
11 cursorentry_T *term_get_cursor_shape(guicolor_T *fg, guicolor_T *bg); |
11993
92a86fe8adc0
patch 8.0.0877: using CTRL- CTRL-N in terminal is inconsistent
Christian Brabandt <cb@256bit.org>
parents:
11985
diff
changeset
|
12 int term_use_loop(void); |
12457
dfb8254aa735
patch 8.0.1108: cannot specify mappings for the terminal window
Christian Brabandt <cb@256bit.org>
parents:
12393
diff
changeset
|
13 int terminal_loop(int blocking); |
11846
1c65cad8b967
patch 8.0.0804: terminal window functions not yet implemented
Christian Brabandt <cb@256bit.org>
parents:
11836
diff
changeset
|
14 void term_job_ended(job_T *job); |
11834
0cfe4a07c2ad
patch 8.0.0797: finished job in terminal window is not handled
Christian Brabandt <cb@256bit.org>
parents:
11804
diff
changeset
|
15 void term_channel_closed(channel_T *ch); |
0cfe4a07c2ad
patch 8.0.0797: finished job in terminal window is not handled
Christian Brabandt <cb@256bit.org>
parents:
11804
diff
changeset
|
16 int term_update_window(win_T *wp); |
11836
f080b225a2a4
patch 8.0.0798: no highlighting in a terminal window with a finished job
Christian Brabandt <cb@256bit.org>
parents:
11834
diff
changeset
|
17 int term_is_finished(buf_T *buf); |
11866
be40c8a9240d
patch 8.0.0813: cannot use a terminal window while the job is running
Christian Brabandt <cb@256bit.org>
parents:
11846
diff
changeset
|
18 int term_show_buffer(buf_T *buf); |
11836
f080b225a2a4
patch 8.0.0798: no highlighting in a terminal window with a finished job
Christian Brabandt <cb@256bit.org>
parents:
11834
diff
changeset
|
19 void term_change_in_curbuf(void); |
f080b225a2a4
patch 8.0.0798: no highlighting in a terminal window with a finished job
Christian Brabandt <cb@256bit.org>
parents:
11834
diff
changeset
|
20 int term_get_attr(buf_T *buf, linenr_T lnum, int col); |
11772
f33b9375ba03
patch 8.0.0768: terminal window status shows "[Scratch]"
Christian Brabandt <cb@256bit.org>
parents:
11757
diff
changeset
|
21 char_u *term_get_status_text(term_T *term); |
11804
5630978ae089
patch 8.0.0784: job of terminal may be garbage collected
Christian Brabandt <cb@256bit.org>
parents:
11772
diff
changeset
|
22 int set_ref_in_term(int copyID); |
12973
418941f0df08
patch 8.0.1362: terminal window colors wrong when using Terminal highlighting
Christian Brabandt <cb@256bit.org>
parents:
12457
diff
changeset
|
23 void set_terminal_default_colors(int cterm_fg, int cterm_bg); |
13298
a88c5e12b860
patch 8.0.1523: cannot write and read terminal screendumps
Christian Brabandt <cb@256bit.org>
parents:
12973
diff
changeset
|
24 void f_term_dumpwrite(typval_T *argvars, typval_T *rettv); |
a88c5e12b860
patch 8.0.1523: cannot write and read terminal screendumps
Christian Brabandt <cb@256bit.org>
parents:
12973
diff
changeset
|
25 int term_swap_diff(void); |
a88c5e12b860
patch 8.0.1523: cannot write and read terminal screendumps
Christian Brabandt <cb@256bit.org>
parents:
12973
diff
changeset
|
26 void f_term_dumpdiff(typval_T *argvars, typval_T *rettv); |
a88c5e12b860
patch 8.0.1523: cannot write and read terminal screendumps
Christian Brabandt <cb@256bit.org>
parents:
12973
diff
changeset
|
27 void f_term_dumpload(typval_T *argvars, typval_T *rettv); |
12035
a3ed3d236839
patch 8.0.0898: can't use the alternate screen in a terminal window
Christian Brabandt <cb@256bit.org>
parents:
12025
diff
changeset
|
28 void f_term_getaltscreen(typval_T *argvars, typval_T *rettv); |
11846
1c65cad8b967
patch 8.0.0804: terminal window functions not yet implemented
Christian Brabandt <cb@256bit.org>
parents:
11836
diff
changeset
|
29 void f_term_getattr(typval_T *argvars, typval_T *rettv); |
11876
3704ca24c9a2
patch 8.0.0818: cannot get the cursor position of a terminal
Christian Brabandt <cb@256bit.org>
parents:
11866
diff
changeset
|
30 void f_term_getcursor(typval_T *argvars, typval_T *rettv); |
11846
1c65cad8b967
patch 8.0.0804: terminal window functions not yet implemented
Christian Brabandt <cb@256bit.org>
parents:
11836
diff
changeset
|
31 void f_term_getjob(typval_T *argvars, typval_T *rettv); |
1c65cad8b967
patch 8.0.0804: terminal window functions not yet implemented
Christian Brabandt <cb@256bit.org>
parents:
11836
diff
changeset
|
32 void f_term_getline(typval_T *argvars, typval_T *rettv); |
12025
c0ee48f48a2b
patch 8.0.0893: cannot get the scroll count of a terminal window
Christian Brabandt <cb@256bit.org>
parents:
11993
diff
changeset
|
33 void f_term_getscrolled(typval_T *argvars, typval_T *rettv); |
11846
1c65cad8b967
patch 8.0.0804: terminal window functions not yet implemented
Christian Brabandt <cb@256bit.org>
parents:
11836
diff
changeset
|
34 void f_term_getsize(typval_T *argvars, typval_T *rettv); |
11882
69e7379f46db
patch 8.0.0821: cannot get the title and status of a terminal window
Christian Brabandt <cb@256bit.org>
parents:
11876
diff
changeset
|
35 void f_term_getstatus(typval_T *argvars, typval_T *rettv); |
69e7379f46db
patch 8.0.0821: cannot get the title and status of a terminal window
Christian Brabandt <cb@256bit.org>
parents:
11876
diff
changeset
|
36 void f_term_gettitle(typval_T *argvars, typval_T *rettv); |
11933
d033653d3df8
patch 8.0.0846: cannot get the name of the pty of a job
Christian Brabandt <cb@256bit.org>
parents:
11917
diff
changeset
|
37 void f_term_gettty(typval_T *argvars, typval_T *rettv); |
11846
1c65cad8b967
patch 8.0.0804: terminal window functions not yet implemented
Christian Brabandt <cb@256bit.org>
parents:
11836
diff
changeset
|
38 void f_term_list(typval_T *argvars, typval_T *rettv); |
1c65cad8b967
patch 8.0.0804: terminal window functions not yet implemented
Christian Brabandt <cb@256bit.org>
parents:
11836
diff
changeset
|
39 void f_term_scrape(typval_T *argvars, typval_T *rettv); |
1c65cad8b967
patch 8.0.0804: terminal window functions not yet implemented
Christian Brabandt <cb@256bit.org>
parents:
11836
diff
changeset
|
40 void f_term_sendkeys(typval_T *argvars, typval_T *rettv); |
11866
be40c8a9240d
patch 8.0.0813: cannot use a terminal window while the job is running
Christian Brabandt <cb@256bit.org>
parents:
11846
diff
changeset
|
41 void f_term_start(typval_T *argvars, typval_T *rettv); |
11846
1c65cad8b967
patch 8.0.0804: terminal window functions not yet implemented
Christian Brabandt <cb@256bit.org>
parents:
11836
diff
changeset
|
42 void f_term_wait(typval_T *argvars, typval_T *rettv); |
12393
128cd982c7b8
patch 8.0.1076: term_start() does not take callbacks
Christian Brabandt <cb@256bit.org>
parents:
12309
diff
changeset
|
43 void term_send_eof(channel_T *ch); |
12144
abd69cea3459
patch 8.0.0952: has('terminal') does not check existence of dll file
Christian Brabandt <cb@256bit.org>
parents:
12082
diff
changeset
|
44 int terminal_enabled(void); |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
45 /* vim: set ft=c : */ |