Bram Moolenaar
850d427f07
patch 8.0.1775: MS-Windows: warning for unused variable
...
Problem: MS-Windows: warning for unused variable.
Solution: Move declaration inside #ifdef. (Mike Williams)
2018-04-30 10:38:40 +02:00
Bram Moolenaar
4e9d443a25
patch 8.0.1761: job in terminal window with no output channel is killed
...
Problem: Job in terminal window with no output channel is killed.
Solution: Keep the job running when the input is a tty. (Ozaki Kiichi,
closes #2734 )
2018-04-24 20:54:07 +02:00
Bram Moolenaar
ebe74b7367
patch 8.0.1747: MS-Windows: term_start() does not set job_info() cmd
...
Problem: MS-Windows: term_start() does not set job_info() cmd.
Solution: Share the code from job_start() to set jv_argv.
2018-04-21 23:34:43 +02:00
Bram Moolenaar
a69b39511d
patch 8.0.1746: MS-Windows: channel tests fail
...
Problem: MS-Windows: channel tests fail.
Solution: Make a copy of the command before splitting it.
2018-04-21 23:00:27 +02:00
Bram Moolenaar
2060892028
patch 8.0.1745: build failure on MS-Windows
...
Problem: Build failure on MS-Windows.
Solution: Build job arguments for MS-Windows. Fix allocating job twice.
2018-04-21 22:30:08 +02:00
Bram Moolenaar
e1fc51558d
patch 8.0.1742: cannot get a list of all the jobs
...
Problem: Cannot get a list of all the jobs. Cannot get the command of
the job.
Solution: When job_info() is called without an argument return a list of
jobs. Otherwise, include the command that the job is running.
(Yegappan Lakshmanan)
2018-04-21 19:49:08 +02:00
Bram Moolenaar
2e324950b8
patch 8.0.1709: some non-C89 code may slip through
...
Problem: Some non-C89 code may slip through.
Solution: Enforce C89 in configure. Fix detected problems. (James McCoy,
closes #2735 )
2018-04-14 14:37:07 +02:00
Bram Moolenaar
f59c6e8cee
patch 8.0.1685: can't set ANSI colors of a terminal window
...
Problem: Can't set ANSI colors of a terminal window.
Solution: Add term_setansicolors(), term_getansicolors() and
g:term_ansi_colors. (Andy Massimino, closes #2747 )
2018-04-10 15:59:11 +02:00
Bram Moolenaar
e80757c154
patch 8.0.1681: the format attribute fails with MinGW
...
Problem: The format attribute fails with MinGW. (John Marriott)
Solution: Don't use the format attribute with MinGW.
2018-04-10 12:42:44 +02:00
Bram Moolenaar
4ac2e8d8e6
patch 8.0.1676: no compiler warning for wrong printf format
...
Problem: No compiler warning for wrong printf format.
Solution: Add a printf attribute for gcc. Fix reported problems. (Dominique
Pelle, closes #2789 )
2018-04-08 12:38:26 +02:00
Bram Moolenaar
22efba47de
patch 8.0.1671: crash when passing non-dict argument as env to job_start()
...
Problem: Crash when passing non-dict argument as env to job_start().
Solution: Check for valid argument. (Ozaki Kiichi, closes #2765 )
2018-04-07 13:22:21 +02:00
Bram Moolenaar
9af9778209
patch 8.0.1657: crash when reading a channel
...
Problem: Crash when reading a channel.
Solution: Clear the write flag before writing. (idea by Shinya Ohyanagi,
closes #2769 ).
2018-04-03 12:51:01 +02:00
Bram Moolenaar
135682517b
patch 8.0.1609: shell commands in the GUI use a dumb terminal
...
Problem: Shell commands in the GUI use a dumb terminal.
Solution: Add the "!" flag to 'guioptions' to execute system commands in a
special terminal window. Only for Unix now.
2018-03-16 20:46:58 +01:00
Bram Moolenaar
25cdd9c33b
patch 8.0.1593: :qall never exits with an active terminal window
...
Problem: :qall never exits with an active terminal window.
Solution: Add a way to kill a job in a terminal window.
2018-03-10 20:28:12 +01:00
Bram Moolenaar
4d8bac8bf5
patch 8.0.1592: terminal windows in a session are not properly restored
...
Problem: Terminal windows in a session are not properly restored.
Solution: Add "terminal" in 'sessionoptions'. When possible restore the
command running in a terminal.
2018-03-09 21:33:34 +01:00
Bram Moolenaar
b3292fa2d3
patch 8.0.1516: errors for job options are not very specific
...
Problem: Errors for job options are not very specific.
Solution: Add more specific error messages.
2018-02-13 15:17:58 +01:00
Bram Moolenaar
d23a823669
patch 8.0.1496: clearing a pointer takes two lines
...
Problem: Clearing a pointer takes two lines.
Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi,
closes #2629 )
2018-02-10 18:45:26 +01:00
Bram Moolenaar
a338adcf22
patch 8.0.1449: slow redrawing with DirectX
...
Problem: Slow redrawing with DirectX.
Solution: Avoid calling gui_mch_flush() unnecessarily, especially when
updating the cursor. (Ken Takata, closes #2560 )
2018-01-31 20:51:47 +01:00
Bram Moolenaar
620ca2da37
patch 8.0.1381: ch_readraw() waits for NL if channel mode is NL
...
Problem: ch_readraw() waits for NL if channel mode is NL.
Solution: Pass a "raw" flag to channel_read_block(). (Yasuhiro Matsumoto)
2017-12-09 19:13:13 +01:00
Bram Moolenaar
5fd8b78214
patch 8.0.1286: occasional crash when using a channel
...
Problem: Occasional crash when using a channel. (Marek)
Solution: Decrement reference count later. (closes #2315 )
2017-11-11 15:54:00 +01:00
Bram Moolenaar
f33606112a
patch 8.0.1170: using termdebug results in 100% CPU time
...
Problem: Using termdebug results in 100% CPU time. (tomleb)
Solution: Use polling instead of select().
2017-10-01 16:21:31 +02:00
Bram Moolenaar
71eeb74a60
patch 8.0.1101: channel write fails if writing to log fails
...
Problem: Channel write fails if writing to log fails.
Solution: Ignore return value of fwrite(). (Ozaki Kiichi, closes #2081 )
2017-09-13 22:18:01 +02:00
Bram Moolenaar
5b5adf5b9c
patch 8.0.1083: leaking memory in input part of channel
...
Problem: Leaking memory in input part of channel.
Solution: Clear the input part of channel. Free the entry. Move failing
command test to a separate file to avoid bogus leak reports
clouding tests that should not leak.
2017-09-09 18:16:43 +02:00
Bram Moolenaar
aba680a851
patch 8.0.1081: memory leak for the channel write queue
...
Problem: Memory leak for the channel write queue.
Solution: Free the write queue when clearing a channel.
2017-09-09 16:42:53 +02:00
Bram Moolenaar
3c518400d1
patch 8.0.1076: term_start() does not take callbacks
...
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.
2017-09-08 20:47:00 +02:00
Bram Moolenaar
2dc9d26c14
patch 8.0.1074: ":term NONE" does not work on MS-Windows
...
Problem: ":term NONE" does not work on MS-Windows.
Solution: Make it work. Split "pty" into "pty_in" and "pty_out". (Yasuhiro
Matsumoto, closes #2058 , closes #2045 )
2017-09-08 14:39:30 +02:00
Bram Moolenaar
dada6d2a8e
patch 8.0.1036: ++eof argument for terminal only available on MS-Windows
...
Problem: ++eof argument for terminal only available on MS-Windows.
Solution: Also support ++eof on Unix. Add a test.
2017-09-02 17:18:35 +02:00
Bram Moolenaar
ef68e4fa52
patch 8.0.1035: sending buffer lines to terminal doesn't work on MS-Windows
...
Problem: Sending buffer lines to terminal doesn't work on MS-Windows.
Solution: Use CR instead of NL after every line. Make the EOF text work
properly. Add the ++eof argument to :terminal.
2017-09-02 16:28:36 +02:00
Bram Moolenaar
3346cc4ffb
patch 8.0.1034: sending buffer lines to terminal doesn't work on MS-Windows
...
Problem: Sending buffer lines to terminal doesn't work on MS-Windows.
Solution: Send CTRL-D to mark the end of the text. (Yasuhiro Matsumoto,
closes #2043 ) Add the "eof_chars" option.
2017-09-02 14:54:21 +02:00
Bram Moolenaar
4ab7968aa9
patch 8.0.1005: terminal without job updates slowly in GUI
...
Problem: Terminal without job updates slowly in GUI.
Solution: Poll for input when a channel has the keep_open flag.
2017-08-27 14:50:47 +02:00
Bram Moolenaar
e85928a324
patch 8.0.1003: 64 bit compiler warning
...
Problem: 64 bit compiler warning
Solution: Add type cast. (Mike Williams)
2017-08-27 13:10:10 +02:00
Bram Moolenaar
02e177d3e8
patch 8.0.1002: unnecessarily updating screen after timer callback
...
Problem: Unnecessarily updating screen after timer callback.
Solution: Check if calling the timer sets must_redraw.
2017-08-26 23:43:28 +02:00
Bram Moolenaar
13ebb03e75
patch 8.0.1000: cannot open a terminal without running a job in it
...
Problem: Cannot open a terminal without running a job in it.
Solution: Make ":terminal NONE" open a terminal with a pty.
2017-08-26 22:02:51 +02:00
Bram Moolenaar
dc926dd0dd
patch 8.0.0969: Coverity warning for unused return value
...
Problem: Coverity warning for unused return value.
Solution: Add (void) to avoid the warning.
2017-08-19 21:26:44 +02:00
Bram Moolenaar
683b796725
patch 8.0.0964: channel write buffer does not work with poll()
...
Problem: Channel write buffer does not work with poll().
Solution: Use the same mechanism as with select().
2017-08-19 15:51:59 +02:00
Bram Moolenaar
f66a2cda2c
patch 8.0.0959: build failure on MS-Windows
...
Problem: Build failure on MS-Windows.
Solution: Use ioctlsocket() instead of fcntl().
2017-08-18 21:53:22 +02:00
Bram Moolenaar
97bd5e6527
patch 8.0.0957: a terminal job can deadlock when sending many keys
...
Problem: When term_sendkeys() sends many keys it may get stuck in writing
to the job.
Solution: Make the write non-blocking, buffer keys to be sent.
2017-08-18 20:50:30 +02:00
Bram Moolenaar
dcaa61384c
patch 8.0.0928: MS-Windows: passing arglist to job has escaping problems
...
Problem: MS-Windows: passing arglist to job has escaping problems.
Solution: Improve escaping. (Yasuhiro Matsumoto, closes #1954 )
2017-08-13 17:13:09 +02:00
Bram Moolenaar
37c4583594
patch 8.0.0916: cannot specify properties of window for terminal open
...
Problem: Cannot specify properties of window for when opening a window for
a finished terminal job.
Solution: Add "term_opencmd".
2017-08-12 16:01:04 +02:00
Bram Moolenaar
8cad930a25
patch 8.0.0912: cannot run a job in a hidden terminal
...
Problem: Cannot run a job in a hidden terminal.
Solution: Add option "hidden" and ++hidden.
2017-08-12 14:32:32 +02:00
Bram Moolenaar
da43b61ddd
patch 8.0.0910: cannot create a terminal in the current window
...
Problem: Cannot create a terminal in the current window.
Solution: Add option "curwin" and ++curwin.
2017-08-11 22:27:50 +02:00
Bram Moolenaar
8ed5400739
patch 8.0.0909: channel test fails
...
Problem: Channel test fails.
Solution: Allow for "cwd" and "env" arguments.
2017-08-11 22:22:36 +02:00
Bram Moolenaar
08d384ff3a
patch 8.0.0908: cannot set terminal size with options
...
Problem: Cannot set terminal size with options.
Solution: Add "term_rows", "term_cols" and "vertical".
2017-08-11 21:51:23 +02:00
Bram Moolenaar
05aafed54b
patch 8.0.0902: cannot specify directory or environment for a job
...
Problem: Cannot specify directory or environment for a job.
Solution: Add the "cwd" and "env" arguments to job options. (Yasuhiro
Matsumoto, closes #1160 )
2017-08-11 19:12:11 +02:00
Bram Moolenaar
2d33e90f81
patch 8.0.0899: function name mch_stop_job() is confusing
...
Problem: Function name mch_stop_job() is confusing.
Solution: Rename to mch_signal_job().
2017-08-11 16:31:54 +02:00
Bram Moolenaar
f1237f1814
patch 8.0.0897: wrong error message for invalid term_finish value
...
Problem: Wrong error message for invalid term_finish value
Solution: Pass the right argument to emsg().
2017-08-11 15:45:28 +02:00
Bram Moolenaar
dd693ce28b
patch 8.0.0896: cannot close a terminal window when the job ends
...
Problem: Cannot automaticlaly close a terminal window when the job ends.
Solution: Add the ++close argument to :term. Add the term_finish option to
term_start(). (Yasuhiro Matsumoto, closes #1950 ) Also add
++open.
2017-08-10 23:15:19 +02:00
Bram Moolenaar
a9f028103f
patch 8.0.0869: job output is sometimes not displayed in a terminal
...
Problem: Job output is sometimes not displayed in a terminal.
Solution: Flush output before closing the channel.
2017-08-05 17:40:38 +02:00
Bram Moolenaar
8456ea8050
patch 8.0.0865: cannot build with channel but without terminal feature
...
Problem: Cannot build with channel but without terminal feature.
Solution: Add #ifdef
2017-08-05 15:02:05 +02:00
Bram Moolenaar
78712a7733
patch 8.0.0864: cannot specify the name of a terminal
...
Problem: Cannot specify the name of a terminal.
Solution: Add the "term_name" option. (Yasuhiro Matsumoto, closes #1936 )
2017-08-05 14:50:12 +02:00