Bram Moolenaar
493359eb3b
patch 8.1.0050: $VIM_TERMINAL is also set when not in a terminal window
...
Problem: $VIM_TERMINAL is also set when not in a terminal window.
Solution: Pass a flag to indicate whether the job runs in a terminal.
2018-06-12 20:25:52 +02:00
Bram Moolenaar
6b810d92a9
patch 8.1.0032: BS in prompt buffer starts new line
...
Problem: BS in prompt buffer starts new line.
Solution: Do not allows BS over the prompt. Make term_sendkeys() handle
special keys. Add a test.
2018-06-04 17:28:44 +02:00
Bram Moolenaar
d45aa55d42
patch 8.1.0016: possible crash in term_wait()
...
Problem: Possible crash in term_wait(). (Dominique Pelle)
Solution: Check for a valid buffer after ui_delay(). (closes #2944 )
2018-05-21 22:50:29 +02:00
Bram Moolenaar
05af9a4191
patch 8.1.0015: cursor color wrong when closing a terminal window
...
Problem: Cursor color wrong when closing a terminal window, ending up in
another terminal window. (Dominique Pelle)
Solution: Bail out of terminal_loop() when the buffer changes.
(closes #2942 )
2018-05-21 18:48:12 +02:00
Bram Moolenaar
4f7fd56b42
patch 8.1.0013: using freed memory when changing terminal cursor color
...
Problem: Using freed memory when changing terminal cursor color.
Solution: Make a copy of the color. (Dominique Pelle, closes #2938 ,
closes #2941 )
2018-05-21 14:55:28 +02:00
Bram Moolenaar
03998f606a
patch 8.0.1850: todo items in source code not visible for users
...
Problem: Todo items in source code not visible for users.
Solution: Move the todo items to the help file.
2018-05-17 13:20:45 +02:00
Bram Moolenaar
4d6cd291ce
patch 8.0.1848: 'termwinscroll' does not work properly
...
Problem: 'termwinscroll' does not work properly. (Dominique Pelle)
Solution: Subtract removed scrollback from the scrollback count. Add a test
for 'termwinscroll'. (closes #2909 )
2018-05-15 23:53:26 +02:00
Bram Moolenaar
620020eb1d
patch 8.0.1838: cursor in wrong pos when switching to Terminal-Normal mode
...
Problem: Cursor in wrong position when switching to Terminal-Normal mode.
(Dominique Pelle)
Solution: Move to the end of the line if coladvance() fails. Do not take a
snapshot a second time.
2018-05-13 19:06:12 +02:00
Bram Moolenaar
05c4a471d2
patch 8.0.1830: switching to Terminal-Normal mode does not redraw
...
Problem: Switching to Terminal-Normal mode does not redraw. (Dominique
Pelle)
Solution: Also redraw when not updating the snapshot. (closes #2904 )
2018-05-13 15:15:43 +02:00
Bram Moolenaar
73dd1bd54e
patch 8.0.1824: Coverity warns for variable that may be uninitialized
...
Problem: Coverity warns for variable that may be uninitialized.
Solution: Initialize the variable.
2018-05-12 21:16:25 +02:00
Bram Moolenaar
2bc799579d
patch 8.0.1821: cursor in terminal window moves when pressing CTRL-W
...
Problem: Cursor in terminal window moves when pressing CTRL-W. (Dominique
Pelle)
Solution: Do not more the cursor or redraw when not in Terminal-Normal mode.
(closes #2904 )
2018-05-12 20:36:24 +02:00
Bram Moolenaar
3f1a53c434
patch 8.0.1818: lines remove from wrong buffer when using terminal window
...
Problem: Lines remove from wrong buffer when using terminal window.
Solution: Make sure to use tl_buffer.
2018-05-12 16:55:14 +02:00
Bram Moolenaar
0cb8ac71ae
patch 8.0.1815: crash with terminal window and with 'lazyredraw' set
...
Problem: Still a crash with terminal window and with 'lazyredraw' set.
(Antoine)
Solution: Do not wipe out the buffer when updating the screen.
2018-05-11 22:01:51 +02:00
Bram Moolenaar
a10ae5e323
patch 8.0.1814: crash with terminal window and with 'lazyredraw' set
...
Problem: Crash with terminal window and with 'lazyredraw' set. (Antoine)
Solution: Check the terminal still exists after update_screen().
2018-05-11 20:48:29 +02:00
Bram Moolenaar
56bc8e299c
patch 8.0.1810: buffer of a terminal only updated in Terminal-Normal mode
...
Problem: Buffer of a terminal only updated in Terminal-Normal mode.
Solution: Copy the terminal window content to the buffer when in
Terminal-Job mode.
2018-05-10 18:05:56 +02:00
Bram Moolenaar
9b50f36e40
patch 8.0.1803: warning for uninitialized variable
...
Problem: Warning for uninitialized variable. (Tony Mechelynck)
Solution: Initialize it.
2018-05-07 20:10:17 +02:00
Bram Moolenaar
402c83921e
patch 8.0.1802: MS-Windows: terminal test fails
...
Problem: MS-Windows: terminal test fails.
Solution: Close redirected output file earlier.
2018-05-06 22:01:42 +02:00
Bram Moolenaar
f25329cb94
patch 8.0.1801: MS-Windows: redirecting terminal output does not work
...
Problem: MS-Windows: redirecting terminal output does not work.
Solution: Intercept the text written to the terminal and write it to the
file.
2018-05-06 21:49:32 +02:00
Bram Moolenaar
6eddadff13
patch 8.0.1797: terminal window is redrawn too often
...
Problem: Terminal window is redrawn too often and scrolling is repeated.
Solution: Don't scroll immediately but only when redrawing. Avoid redrawing
the whole terminal window on every change.
2018-05-06 16:40:16 +02:00
Bram Moolenaar
231a2db1b3
patch 8.0.1796: GUI: click on tab fails when the focus is in a terminal
...
Problem: GUI: click on tab fails when the focus is in a terminal window.
Solution: Handle K_TABLINE.
2018-05-06 13:53:50 +02:00
Bram Moolenaar
b0b98d5230
patch 8.0.1795: lose contact with jobs when :gui forks
...
Problem: Lose contact with jobs when :gui forks.
Solution: Don't fork when there is a running job. Make log message for a
died job clearer. Also close the terminal when stderr and stdout
are the same FD.
2018-05-05 21:01:00 +02:00
Bram Moolenaar
b833c1ef7b
patch 8.0.1794: duplicate term options after renaming
...
Problem: Duplicate term options after renaming.
Solution: Remove the old names 'termkey', 'termsize' and 'terminalscroll'.
2018-05-05 16:36:06 +02:00
Bram Moolenaar
606cb8b08e
patch 8.0.1789: BufWinEnter does not work well for a terminal window
...
Problem: BufWinEnter does not work well for a terminal window.
Solution: Do not trigger BufWinEnter when opening a terminal window.
2018-05-03 20:40:20 +02:00
Bram Moolenaar
b2ac14c0b5
patch 8.0.1786: no test for 'termwinkey'
...
Problem: No test for 'termwinkey'.
Solution: Add a test. Make feedkeys() handle terminal_loop() returning
before characters are consumed.
2018-05-01 18:47:59 +02:00
Bram Moolenaar
c5cd88554f
patch 8.0.1783: cannot use 256 colors in a MS-Windows console
...
Problem: Cannot use 256 colors in a MS-Windows console.
Solution: Add 256 color support. (Nobuhiro Takasaki, closes #2821 )
2018-05-01 15:47:38 +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
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
6d150f783d
patch 8.0.1743: terminal window options are named inconsistently
...
Problem: Terminal window options are named inconsistently.
Solution: prefix terminal window options with "termwin". Keep the old names
for now as an alias.
2018-04-21 20:03:20 +02:00
Bram Moolenaar
a997b45c7e
patch 8.0.1732: crash when terminal API call deletes the buffer
...
Problem: Crash when terminal API call deletes the buffer.
Solution: Lock the buffer while calling a function. (closes #2813 )
2018-04-17 23:24:06 +02:00
Bram Moolenaar
498c2562e1
patch 8.0.1722: cannot specify a minimal size for a terminal window
...
Problem: Cannot specify a minimal size for a terminal window.
Solution: Support the "rows*cols" format for 'winsize'.
2018-04-15 23:45:15 +02:00
Bram Moolenaar
802bfb1463
patch 8.0.1720: when a timer is running a terminal window may not close
...
Problem: When a timer is running a terminal window may not close after a
shell has exited.
Solution: Call job_status() more often.
2018-04-15 17:28:13 +02:00
Bram Moolenaar
8c94a54905
patch 8.0.1715: terminal buffer can be 1 more than 'terminalscroll' lines
...
Problem: Terminal buffer can be 1 more than 'terminalscroll' lines.
Solution: Change > to >=.
2018-04-15 12:55:13 +02:00
Bram Moolenaar
6e72cd0d72
patch 8.0.1714: term_setsize() does not give an error in a normal buffer
...
Problem: Term_setsize() does not give an error in a normal buffer.
Solution: Add an error message.
2018-04-14 21:31:35 +02:00
Bram Moolenaar
8c041b6b95
patch 8.0.1712: terminal scrollback is not limited
...
Problem: Terminal scrollback is not limited.
Solution: Add the 'terminalscroll' option.
2018-04-14 18:14:06 +02:00
Bram Moolenaar
a42d363bac
patch 8.0.1711: term_setsize() is not implemented yet
...
Problem: Term_setsize() is not implemented yet.
Solution: Implement it.
2018-04-14 17:05:38 +02:00
Bram Moolenaar
b59118d501
patch 8.0.1706: cannot sent CTRL-\ to a terminal window
...
Problem: Cannot sent CTRL-\ to a terminal window.
Solution: Make CTRL-W CTRL-\ send CTRL-\ to a terminal window.
2018-04-13 22:11:56 +02:00
Bram Moolenaar
d6b4f2dd76
patch 8.0.1687: 64 bit compiler warnings
...
Problem: 64 bit compiler warnings.
Solution: change type, add type cast. (Mike Williams)
2018-04-10 18:26:27 +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
07b46af645
patch 8.0.1684: ml_get errors when using terminal window for shell command
...
Problem: ml_get errors when using terminal window for shell command.
(Blay263)
Solution: Do not change the size of the current window.
2018-04-10 14:56:18 +02:00
Bram Moolenaar
756ef113d1
patch 8.0.1680: memory allocated by libvterm is not profiled
...
Problem: Memory allocated by libvterm does not show up in profile.
Solution: Pass allocater functions to vterm_new().
2018-04-10 12:04:27 +02:00
Bram Moolenaar
3aa67fb453
patch 8.0.1664: test failure because of not allocating enough space
...
Problem: Test failure because of not allocating enough space.
Solution: Allocate more bytes.
2018-04-05 21:04:15 +02:00
Bram Moolenaar
4a69634b1b
patch 8.0.1662: showing dump diff doesn't mention both file names
...
Problem: Showing dump diff doesn't mention both file names.
Solution: Add the file name in the separator line.
2018-04-05 18:45:26 +02:00
Bram Moolenaar
878c96d5b9
patch 8.0.1661: warnings from 64 bit compiler
...
Problem: Warnings from 64 bit compiler.
Solution: Add type casts. (Mike Williams)
2018-04-04 23:00:06 +02:00
Bram Moolenaar
333b80acf3
patch 8.0.1660: the terminal API "drop" command doesn't support options
...
Problem: The terminal API "drop" command doesn't support options.
Solution: Implement the options.
2018-04-04 22:57:29 +02:00
Bram Moolenaar
f06b0b6c8f
patch 8.0.1652: term_dumpwrite() does not output composing characters
...
Problem: term_dumpwrite() does not output composing characters.
Solution: Use the cell index.
2018-03-29 17:22:24 +02:00
Bram Moolenaar
2a77d21f78
patch 8.0.1647: terminal API may call any user function
...
Problem: Terminal API may call a function not meant to be called by this
API.
Solution: Require the function to start with Tapi_.
2018-03-26 21:38:52 +02:00
Bram Moolenaar
8fbaeb195d
patch 8.0.1641: job in terminal can't communicate with Vim
...
Problem: Job in terminal can't communicate with Vim.
Solution: Add the terminal API.
2018-03-25 18:20:17 +02:00
Bram Moolenaar
47015b80a0
patch 8.0.1632: in a terminal dump NUL and space are different
...
Problem: In a terminal dump NUL and space considered are different,
although they are displayed the same.
Solution: When encountering NUL handle it like space.
2018-03-23 22:10:34 +01:00
Bram Moolenaar
b571c63d48
patch 8.0.1626: compiler warning for possible loss of data
...
Problem: Compiler warning for possible loss of data.
Solution: Use size_t instead of int. (Christian Brabandt)
2018-03-21 22:27:59 +01:00
Bram Moolenaar
5a3a49ed59
patch 8.0.1624: options for term_dumpdiff() and term_dumpload() not implemented
...
Problem: Options for term_dumpdiff() and term_dumpload() not implemented
yet.
Solution: Implement the relevant options.
2018-03-20 18:35:53 +01:00