Bram Moolenaar
33d66bd9fa
patch 8.0.0992: terminal title is wrong when 'encoding' is DBCS
...
Problem: Terminal title is wrong when 'encoding' is DBCS.
Solution: Convert the title from DBCS to utf-8. (Yasuhiro Matsumoto, closes
#2009 )
2017-08-23 23:51:58 +02:00
Bram Moolenaar
6c4d12c527
patch 8.0.0991: using wrong character conversion for DBCS
...
Problem: Using wrong character conversion for DBCS.
Solution: Use utf_char2bytes instead of mb_char2bytes. (Yasuhiro Matsumoto,
closes #2012 )
2017-08-23 23:36:25 +02:00
Bram Moolenaar
285f243e50
patch 8.0.0990: with DBCS 'encoding' wrong pasting register into terminal
...
Problem: When 'encoding' is a double-byte encoding, pasting a register into
a terminal ends up with the wrong characters.
Solution: Convert from 'encoding' to utf-8. (Yasuhiro Matsumoto, closes
#2007 )
2017-08-23 23:10:21 +02:00
Bram Moolenaar
d2c45a1964
patch 8.0.0987: terminal: second byte of double-byte char wrong
...
Problem: terminal: second byte of double-byte char wrong
Solution: Set the second byte to NUL only for utf-8 and non-multibyte.
2017-08-22 22:29:00 +02:00
Bram Moolenaar
ec0e07a324
patch 8.0.0986: terminal feature always requires multi-byte feature
...
Problem: Terminal feature always requires multi-byte feature.
Solution: Remove #ifdef FEAT_MBYTE, disable terminal without multi-byte.
2017-08-22 22:21:37 +02:00
Bram Moolenaar
5830232c02
patch 8.0.0984: terminal blinking cursor not correct in the GUI
...
Problem: Terminal blinking cursor not correct in the GUI.
Solution: Set blinkoff correctly. Also make the cursor blink on MS-Windows
by default. (Ken Takata)
2017-08-22 20:33:53 +02:00
Bram Moolenaar
740c433c59
patch 8.0.0982: cannot use a terminal when 'encoding' is non-utf8 multi-byte
...
Problem: When 'encoding' is set to a multi-byte encoding other than utf-8
the characters from ther terminal are messed up.
Solution: Convert displayed text from utf-8 to 'encoding' for MS-Windows.
(Yasuhiro Matsumoto, close #2000 )
2017-08-21 22:01:27 +02:00
Bram Moolenaar
0cbba82359
patch 8.0.0981: cursor in terminal window blinks by default
...
Problem: Cursor in terminal window blinks by default, while in a real xterm
it does not blink, unless the -bc argument is used.
Solution: Do not use a blinking cursor by default.
2017-08-21 21:39:28 +02:00
Bram Moolenaar
5983d50247
patch 8.0.0977: cannot send lines to a terminal job on MS-Windows
...
Problem: Cannot send lines to a terminal job on MS-Windows.
Solution: Set jv_in_buf. Command doesn't get EOF yet though.
2017-08-20 19:22:56 +02:00
Bram Moolenaar
b241208a13
patch 8.0.0976: cannot send lines to a terminal job
...
Problem: Cannot send lines to a terminal job.
Solution: Make [range]terminal send selected lines to the job.
Use ++rows and ++cols for the terminal size.
2017-08-20 18:09:14 +02:00
Bram Moolenaar
ce1c32780a
patch 8.0.0973: initial info about blinking cursor is wrong
...
Problem: initial info about blinking cursor is wrong
Solution: Invert the blink flag. Add t_VS to stop a blinking cursor.
2017-08-20 15:05:15 +02:00
Bram Moolenaar
77ac9b5c62
patch 8.0.0968: crash when switching terminal modes
...
Problem: Crash when switching terminal modes. (Nikolai Pavlov)
Solution: Check that there are scrollback lines.
2017-08-19 21:23:05 +02:00
Bram Moolenaar
3eee06e7d4
patch 8.0.0965: not restoring cursor shape after it was set in a terminal
...
Problem: The cursor shape is not reset after it was changed in a terminal.
Solution: Request the original cursor shape and restore it. Add t_RS.
Do not add t_SH for now, it does not work properly.
2017-08-19 19:40:50 +02:00
Bram Moolenaar
8e539c51c3
patch 8.0.0960: job in terminal does not get CTRL-C
...
Problem: Job in terminal does not get CTRL-C, we send a SIGINT instead.
Solution: Don't call may_send_sigint() on CTRL-C. Make CTRL-W CTRL-C end
the job.
2017-08-18 22:57:06 +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
cfce71710b
patch 8.0.0956: scrolling in a terminal window has flicker
...
Problem: Scrolling in a terminal hwindow as flicker when the Normal
background differs from the terminal window background.
Solution: Set the attribute to clear with.
2017-08-17 20:31:48 +02:00
Bram Moolenaar
f5be7cd016
patch 8.0.0953: get "no write since last change" error in terminal window
...
Problem: Get "no write since last change" error in terminal window.
Solution: Use another message when closing a terminal window. Make ":quit!"
also end the job.
2017-08-17 16:55:13 +02:00
Bram Moolenaar
a83e3962ac
patch 8.0.0952: has('terminal') does not check existence of dll file
...
Problem: MS-Windows: has('terminal') does not check existence of dll file.
Solution: Check if the winpty dll file can be loaded. (Ken Takata)
2017-08-17 14:39:07 +02:00
Bram Moolenaar
9e13aa7729
patch 8.0.0949: winpty.dll name is fixed
...
Problem: winpty.dll name is fixed.
Solution: Add the 'winptydll' option. Make the default name depend on
whether it is a 32-bit or 64-bit build. (idea by Yasuhiro
Matsumoto, closes #1978 )
2017-08-16 23:14:08 +02:00
Bram Moolenaar
4fa1019f80
patch 8.0.0942: using freed memory with ":terminal"
...
Problem: Using freed memory with ":terminal" if an autocommand changes
'shell' when splitting the window. (Marius Gedminas)
Solution: Make a copy of 'shell'. (closes #1974 )
2017-08-14 22:56:27 +02:00
Bram Moolenaar
6bb18a878c
patch 8.0.0938: scrolling in terminal window is inefficient
...
Problem: Scrolling in terminal window is inefficient.
Solution: Use win_del_lines().
2017-08-13 22:14:17 +02:00
Bram Moolenaar
4f44b88684
patch 8.0.0932: terminal may not use right characters for BS and Enter
...
Problem: Terminal may not use right characters for BS and Enter.
Solution: Get the characters from the tty.
2017-08-13 20:06:18 +02:00
Bram Moolenaar
2438ae3d67
patch 8.0.0929: :term without argument does not work
...
Problem: :term without argument does not work.
Solution: Use shell for empty command. (Yasuhiro Matsumoto, closes #1970 )
2017-08-13 17:38:11 +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
274a52fd58
patch 8.0.0927: if a terminal job sends a blank title "running" is not shown
...
Problem: If a terminal job sends a blank title "running" is not shown.
Solution: When the title is blank make it empty.
2017-08-13 16:09:31 +02:00
Bram Moolenaar
e0f314aa8d
patch 8.0.0926: when job in terminal window ends topline is wrong
...
Problem: When job in terminal window ends topline may be wrong.
Solution: When the job ends adjust topline so that the active part of the
terminal is displayed.
2017-08-13 16:01:31 +02:00
Bram Moolenaar
5cc1f2c477
patch 8.0.0924: terminal window not updated after using term_sendkeys()
...
Problem: Terminal window not updated after using term_sendkeys().
Solution: Call redraw_after_callback().
2017-08-13 15:16:53 +02:00
Bram Moolenaar
679653e59c
patch 8.0.0923: crash in GUI when terminal job exits
...
Problem: Crash in GUI when terminal job exits. (Kazunobu Kuriyama)
Solution: reset in_terminal_loop when a terminal is freed.
2017-08-13 14:13:19 +02:00
Bram Moolenaar
3d9bdfebf1
patch 8.0.0921: terminal window cursor shape not supported in the GUI
...
Problem: Terminal window cursor shape not supported in the GUI.
Solution: Use the terminal window cursor shape in the GUI.
2017-08-12 22:55:58 +02:00
Bram Moolenaar
893029ab20
patch 8.0.0920: cursor wrong after switching altscreen in terminal
...
Problem: The cursor shape is wrong after switch back from an alternate
screen in a terminal window. (arius Gedminas)
Solution: Change bitfield to unsigned. Set flag that cursor shape was set.
2017-08-12 21:15:34 +02:00
Bram Moolenaar
3cd43ccccb
patch 8.0.0918: cannot get terminal window cursor shape or attributes
...
Problem: Cannot get terminal window cursor shape or attributes.
Solution: Support cursor shape, attributes and color.
2017-08-12 19:51:41 +02:00
Bram Moolenaar
589b1109c5
patch 8.0.0917: MS-Windows:CTRL-C handling in terminal window is wrong
...
Problem: MS-Windows:CTRL-C handling in terminal window is wrong
Solution: Pass CTRL-C as a key. Turn CTRL-BREAK into a key stroke. (Yasuhiro
Matsumoto, closes #1965 )
2017-08-12 16:39:05 +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
9698ad7201
patch 8.0.0913: MS-Windows: CTRL-C kills shell in terminal window
...
Problem: MS-Windows: CTRL-C kills shell in terminal window instead of the
command running in the shell.
Solution: Make CTRL-C only send a CTRL_C_EVENT and have CTRL-BREAK kill the
job. (partly by Yasuhiro Matsumoto, closes #1962 )
2017-08-12 14:52:15 +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
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
e41e3b41f9
patch 8.0.0898: can't use the alternate screen in a terminal window
...
Problem: Can't use the alternate screen in a terminal window.
Solution: Initialze the alternate screen. (Yasuhiro Matsumoto, closes
#1957 ) Add term_getaltscreen().
2017-08-11 16:24:50 +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
82b9ca05f4
patch 8.0.0893: cannot get the scroll count of a terminal window
...
Problem: Cannot get the scroll count of a terminal window.
Solution: Add term_getscrolled().
2017-08-08 23:06:46 +02:00
Bram Moolenaar
292d569935
patch 8.0.0892: when opening a terminal the pty size doesn't always match
...
Problem: When opening a terminal the pty size doesn't always match.
Solution: Update the pty size after opening the terminal. (Ken Takata)
2017-08-08 21:52:22 +02:00
Bram Moolenaar
7fadbf8325
patch 8.0.0891: uninitialized memory use with empty line in terminal
...
Problem: Uninitialized memory use with empty line in terminal.
Solution: Initialize growarray earlier. (Yasuhiro Matsumoto, closes #1949 )
2017-08-07 22:08:05 +02:00
Bram Moolenaar
e20b3eba73
patch 8.0.0889: gcc gives warnings for uninitialized variables
...
Problem: Gcc gives warnings for uninitialized variables. (Tony Mechelynck)
Solution: Initialize variables even though they are not used.
2017-08-07 21:26:29 +02:00
Bram Moolenaar
f8d57a5049
patch 8.0.0886: crash when using ":term ls"
...
Problem: Crash when using ":term ls".
Solution: Fix line number computation. Add a test for this.
2017-08-07 20:38:42 +02:00
Bram Moolenaar
33a43bee9c
patch 8.0.0885: terminal window scrollback is stored inefficiently
...
Problem: Terminal window scrollback is stored inefficiently.
Solution: Store the text in the Vim buffer.
2017-08-06 21:36:22 +02:00
Bram Moolenaar
f3402b1b7f
patch 8.0.0884: can't specify the wait time for term_wait()
...
Problem: Can't specify the wait time for term_wait().
Solution: Add an otional second argument.
2017-08-06 19:07:08 +02:00
Bram Moolenaar
6d8197485d
patch 8.0.0877: using CTRL-\ CTRL-N in terminal is inconsistent
...
Problem: Using CTRL-\ CTRL-N in terminal is inconsistent.
Solution: Stay in Normal mode.
2017-08-06 14:57:49 +02:00
Bram Moolenaar
aaa8a35fbd
patch 8.0.0873: in terminal cannot use CTRL-\ CTRL-N to start Visual mode
...
Problem: In a terminal window cannot use CTRL-\ CTRL-N to start Visual
mode.
Solution: After CTRL-\ CTRL-N enter Terminal-Normal mode for one command.
2017-08-05 20:17:00 +02:00