Bram Moolenaar
51b0f3701e
patch 8.0.1309: cannot use 'balloonexpr' in a terminal
...
Problem: Cannot use 'balloonexpr' in a terminal.
Solution: Add 'balloonevalterm' and add code to handle mouse movements in a
terminal. Initial implementation for Unix with GUI.
2017-11-18 18:52:04 +01:00
Bram Moolenaar
a42ad57e48
patch 8.0.1299: bracketed paste does not work well in terminal window
...
Problem: Bracketed paste does not work well in terminal window.
Solution: Send translated string to job right away. (Ozaki Kiichi, closes
#2341 )
2017-11-16 13:08:04 +01:00
Bram Moolenaar
26d205dcd8
patch 8.0.1277: terminal window CR-NL conversions may cause problems
...
Problem: Terminal window CR-NL conversions may cause problems.
Solution: Avoid most conversions, only fetch the current backspace key value
from the tty. (mostly by Ozaki Kiichi, closes #2278 )
2017-11-09 17:33:11 +01:00
Bram Moolenaar
a3f7e58bf8
patch 8.0.1276: key lost when window closed in exit callback
...
Problem: Typed key is lost when the terminal window is closed in exit
callback. (Gabriel Barta)
Solution: When the current window changes bail out of the wait loop. (closes
#2302 )
2017-11-09 13:21:58 +01:00
Bram Moolenaar
1232624ae5
patch 8.0.1261: program in terminal window gets NL instead of CR
...
Problem: Program in terminal window gets NL instead of CR. (Lifepillar)
Solution: Check the tty setup more often. (closes #1998 )
2017-11-04 20:12:14 +01:00
Bram Moolenaar
ba6febd380
patch 8.0.1240: MS-Windows: term_start() does not support environment
...
Problem: MS-Windows: term_start() does not support environment.
Solution: Implement the environment argument. (Yasuhiro Matsumoto, closes
#2264 )
2017-10-30 21:56:23 +01:00
Bram Moolenaar
6daeef1933
patch 8.0.1203: terminal window mistreats composing characters
...
Problem: Terminal window mistreats composing characters.
Solution: Count composing characters with the base character. (Ozaki Kiichi,
closes #2195 )
2017-10-15 22:56:49 +02:00
Bram Moolenaar
9377df3ecd
patch 8.0.1195: can't build on MS-Windows
...
Problem: Can't build on MS-Windows.
Solution: Adjust #ifdef and add #ifdefs.
2017-10-15 13:22:01 +02:00
Bram Moolenaar
65e4c4f686
patch 8.0.1194: actual fg and bg colors of terminal are unknown
...
Problem: Actual fg and bg colors of terminal are unknown.
Solution: Add t_RF. Store response to t_RB and t_RF, use for terminal.
2017-10-14 23:24:25 +02:00
Bram Moolenaar
54e5dbf58e
patch 8.0.1177: in a terminal window the popup menu is not cleared
...
Problem: In a terminal window the popup menu is not cleared. (Gerry
Agbobada)
Solution: Redraw when SOME_VALID is used instead of NOT_VALID. (closes
#2194 )
2017-10-07 17:35:09 +02:00
Bram Moolenaar
19a3d68b2c
patch 8.0.1173: terminal window is not redrawn after CTRL-L
...
Problem: Terminal window is not redrawn after CTRL-L. (Marcin Szamotulski)
Solution: Redraw the whole terminal when w_redr_type is NOT_VALID.
2017-10-02 21:54:59 +02:00
Bram Moolenaar
3a497e1a41
patch 8.0.1167: Motif: typing in terminal window is slow
...
Problem: Motif: typing in terminal window is slow.
Solution: Do not redraw the whole terminal window but only was was changed.
2017-09-30 20:40:27 +02:00
Bram Moolenaar
a8fc0d3817
patch 8.0.1149: libvterm colors differ from xterm
...
Problem: libvterm colors differ from xterm.
Solution: Use the xterm colors for libvterm.
2017-09-26 13:59:47 +02:00
Bram Moolenaar
53f8174eae
patch 8.0.1135: W_WINCOL() is always the same
...
Problem: W_WINCOL() is always the same.
Solution: Expand the macro.
2017-09-22 14:35:51 +02:00
Bram Moolenaar
8b21de33bb
Missing part of 8.0.1131.
2017-09-22 11:13:52 +02:00
Bram Moolenaar
2e6ab18729
Add back terminal.c
2017-09-20 10:03:07 +02:00
Bram Moolenaar
37c64c78fd
Update runtime files.
2017-09-19 22:06:03 +02:00
Bram Moolenaar
71b2964066
patch 8.0.1126: endless resize when terminal showing in two buffers
...
Problem: Endless resize when terminal showing in two buffers. (Hirohito
Higashi)
Solution: Set a flag to prevent resizing the window.
2017-09-18 21:24:56 +02:00
Bram Moolenaar
1b9645de3c
patch 8.0.1123: cannot define a toolbar for a window
...
Problem: Cannot define a toolbar for a window.
Solution: Add a window-local toolbar.
2017-09-17 23:03:31 +02:00
Bram Moolenaar
69fbc9e1da
patch 8.0.1108: cannot specify mappings for the terminal window
...
Problem: Cannot specify mappings for the terminal window.
Solution: Add the :tmap command and associated code. (Jacob Askeland,
closes #2073 )
2017-09-14 20:37:57 +02:00
Bram Moolenaar
69e8aa7511
patch 8.0.1106: terminal colors wrong on an MS-Windows console
...
Problem: Terminal colors on an MS-Windows console are not matching the
normal colors.
Solution: Use the normal colors for the terminal. (Yasuhiro Matsumoto,
closes #2087 )
2017-09-14 15:55:13 +02:00
Bram Moolenaar
478e3a78c3
patch 8.0.1103: converting cterm color fails for grey ramp
...
Problem: Converting cterm color fails for grey ramp.
Solution: Use index instead of number.
2017-09-14 13:37:00 +02:00
Bram Moolenaar
c71053c611
patch 8.0.1102: terminal window does not use Normal colors
...
Problem: Terminal window does not use Normal colors.
Solution: For the GUI and when 'termguicolors' is enabled, use the actual
foreground and background colors for the terminal. (Yasuhiro
Matsumoto, closes #2067 )
Use the "Terminal" highlight group if defined.
2017-09-14 00:00:44 +02:00
Bram Moolenaar
072412ed45
patch 8.0.1100: stuck in redraw loop when 'lazyredraw' is set
...
Problem: Stuck in redraw loop when 'lazyredraw' is set.
Solution: Don't loop on update_screen() when not redrawing. (Yasuhiro
Matsumoto, closes #2082 )
2017-09-13 22:11:35 +02:00
Bram Moolenaar
49a613f84a
patch 8.0.1097: background color wrong if job changes background color
...
Problem: Background color wrong if job changes background color.
Solution: Get the background color from vterm.
2017-09-11 23:05:44 +02:00
Bram Moolenaar
238d43b328
patch 8.0.1096: terminal window in Normal mode has wrong background
...
Problem: Terminal window in Normal mode has wrong background.
Solution: Store the default background and use it for clearning until the
end of the line. Not for below the last line, since there is no
text there.
2017-09-11 22:00:51 +02:00
Bram Moolenaar
e9f6fd27d0
patch 8.0.1087: Test_terminal_cwd is flaky
...
Problem: Test_terminal_cwd is flaky. MS-Windows: term_start() "cwd"
argument does not work.
Solution: Wait for the condition to be true instead of using a sleep.
Pass the directory to winpty.
2017-09-10 14:25:49 +02:00
Bram Moolenaar
74121231be
patch 8.0.1080: memory leak for eof_chars terminal option and buffer name
...
Problem: Memory leak for eof_chars terminal option and buffer name.
Solution: Free job options. Free the buffer name
2017-09-09 16:34:32 +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
1a735d6c9b
patch 8.0.1075: MS-Windows: mouse does not work in terminal
...
Problem: MS-Windows: mouse does not work in terminal.
Solution: Force the winpty mouse on. (Yasuhiro Matsumoto, closes #2072 )
2017-09-08 16:25:54 +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
28550b74bb
patch 8.0.1063: Coverity warns for NULL check and array use
...
Problem: Coverity warns for NULL check and using variable pointer as an
array.
Solution: Remove the NULL check. Make "argvar" an array.
2017-09-05 23:31:01 +02:00
Bram Moolenaar
6756c7037f
patch 8.0.1061: Coverity: no check for NULL command
...
Problem: Coverity: no check for NULL command.
Solution: Check for NULL list item.
2017-09-05 23:01:12 +02:00
Bram Moolenaar
e88fc7a574
patch 8.0.1052: term_start() does not allow in_io, out_io and err_io options
...
Problem: term_start() does not allow in_io, out_io and err_io options.
Solution: Add JO_OUT_IO to get_job_options().
2017-09-03 20:59:40 +02:00
Bram Moolenaar
cf4b00c856
patch 8.0.1038: strike-through text not supported
...
Problem: Strike-through text not supported.
Solution: Add support for the "strikethrough" attribute. (Christian
Brabandt, Ken Takata)
2017-09-02 18:33:56 +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
4ad3b2b588
patch 8.0.1018: warnings from 64-bit compiler
...
Problem: Warnings from 64-bit compiler. (Christian Brabandt)
Solution: Add type casts.
2017-08-30 15:57:33 +02:00
Bram Moolenaar
e561a7e2fa
patch 8.0.1013: terminal window behaves different from a buffer with changes
...
Problem: A terminal window with a running job behaves different from a
window containing a changed buffer.
Solution: Do not set 'bufhidden' to "hide". Fix that a buffer where a
terminal used to run is listed as "[Scratch]".
2017-08-29 22:44:59 +02:00
Bram Moolenaar
4db2554954
patch 8.0.1009: Xterm cursor blinking status may be inverted
...
Problem: Xterm cursor blinking status may be inverted.
Solution: Use another request to get the blink status and compare with the
cursor style report
2017-08-28 22:43:05 +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
be0b72977f
patch 8.0.0994: MS-Windows: cursor in terminal blinks undesirably
...
Problem: MS-Windows: cursor in terminal blinks even though the blinking
cursor was disabled on the system.
Solution: Use GetCaretBlinkTime(). (Ken Takata)
2017-08-24 21:48:26 +02:00
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