summaryrefslogtreecommitdiff
path: root/src/terminal.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.1546: using feedkeys() in a terminal may trigger mappingsv8.0.1546Bram Moolenaar2018-02-271-3/+2
| | | | | | Problem: Using feedkeys() in a terminal window may trigger mappings. (Charles Sheridan) Solution: Avoid triggering a mapping when peeking for a key.
* patch 8.0.1542: terminal screen dump does not include cursor positionv8.0.1542Bram Moolenaar2018-02-251-8/+49
| | | | | Problem: Terminal screen dump does not include cursor position. Solution: Mark the cursor position in the cump.
* patch 8.0.1539: no test for the popup menu positioningv8.0.1539Bram Moolenaar2018-02-241-15/+25
| | | | | Problem: No test for the popup menu positioning. Solution: Add a screendump test for the popup menu.
* patch 8.0.1526: no test using a screen dump yetv8.0.1526Bram Moolenaar2018-02-201-3/+6
| | | | | Problem: No test using a screen dump yet. Solution: Add a test for C syntax highlighting. Add helper functions.
* patch 8.0.1524: compiler warnings for uninitialized variablesv8.0.1524Bram Moolenaar2018-02-191-3/+3
| | | | | Problem: Compiler warnings for uninitialized variables. (Tony Mechelynck) Solution: Initialize variables.
* patch 8.0.1523: cannot write and read terminal screendumpsv8.0.1523Bram Moolenaar2018-02-181-34/+824
| | | | | | Problem: Cannot write and read terminal screendumps. Solution: Add term_dumpwrite(), term_dumpread() and term_dumpdiff(). Also add assert_equalfile().
* patch 8.0.1521: Shift-Tab does not work in a terminal windowv8.0.1521Bram Moolenaar2018-02-161-1/+2
| | | | | Problem: Shift-Tab does not work in a terminal window. Solution: Recognize Shift-Tab key press. (Jsees Luehrs, closes #2644)
* patch 8.0.1520: cursor in wrong line when using a WinBar in Terminal windowv8.0.1520Bram Moolenaar2018-02-131-2/+2
| | | | | | Problem: Cursor is in the wrong line when using a WinBar in a Terminal window. Solution: Adjust the row number. (Christian Brabandt, closes #2362)
* patch 8.0.1515: BufWinEnter event fired when opening hidden terminalv8.0.1515Bram Moolenaar2018-02-131-3/+6
| | | | | | Problem: BufWinEnter event fired when opening hidden terminal. Solution: Do not fire BufWinEnter when the terminal is midden and does not open a window. (Kenta Sato, closes #2636)
* patch 8.0.1499: out-of-memory situation not correctly handledv8.0.1499Bram Moolenaar2018-02-111-0/+2
| | | | | Problem: Out-of-memory situation not correctly handled. (Coverity) Solution: Check for NULL value.
* patch 8.0.1496: clearing a pointer takes two linesv8.0.1496Bram Moolenaar2018-02-101-12/+6
| | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
* patch 8.0.1484: reduntant conditionsv8.0.1484Bram Moolenaar2018-02-091-3/+2
| | | | | Problem: Reduntant conditions. Solution: Remove them. (Dominique Pelle)
* patch 8.0.1477: redraw flicker when moving the mouse outside of terminal windowv8.0.1477Bram Moolenaar2018-02-081-16/+59
| | | | | | | Problem: Redraw flicker when moving the mouse outside of terminal window. Solution: Instead of updating the cursor color and shape every time leaving and entering a terminal window, only update when different from the previously used cursor.
* patch 8.0.1440: terminal window: some vterm responses are delayedv8.0.1440Bram Moolenaar2018-01-301-23/+35
| | | | | | Problem: Terminal window: some vterm responses are delayed. Solution: After writing input. check if there is output to read. (Ozaki Kiichi, closes #2594)
* patch 8.0.1430: crash when term_start() failsv8.0.1430Bram Moolenaar2018-01-261-1/+1
| | | | | Problem: Crash when term_start() fails. Solution: Initialize winpty_err.
* patch 8.0.1429: crash when calling term_start() with empty argumentv8.0.1429Bram Moolenaar2018-01-261-10/+19
| | | | | | Problem: Crash when calling term_start() with empty argument. Solution: Check for invalid argument. (Yasuhiro Matsomoto, closes #2503) Fix memory leak.
* patch 8.0.1376: cursor in terminal not always updatedv8.0.1376Bram Moolenaar2017-12-051-0/+3
| | | | | Problem: Cursor in terminal not always updated. Solution: Call gui_mch_flush(). (Ken Takata)
* patch 8.0.1368: cannot drag status or separator of new terminal windowv8.0.1368Bram Moolenaar2017-12-051-3/+4
| | | | | | | Problem: Cannot drag status line or vertical separator of new terminal window. (UncleBill) Solution: Adjust mouse row and column computation. (Yasuhiro Matsumoto, closes #2410)
* patch 8.0.1362: terminal window colors wrong when using Terminal highlightingv8.0.1362Bram Moolenaar2017-12-011-20/+25
| | | | | | Problem: Terminal window colors wrong when using Terminal highlighting. Solution: Set ansi_index when setting the default color. Also cache the color index for Terminal. (Ozaki Kiichi, closes #2393)
* patch 8.0.1360: the Terminal highlighting doesn't work in a terminalv8.0.1360Bram Moolenaar2017-11-301-0/+17
| | | | | | Problem: The Terminal highlighting doesn't work in a terminal. (Ozaki Kiichi) Solution: Use the Terminal highlighting when the cterm index is zero.
* patch 8.0.1359: libvterm ANSI colors can not always be recognizedv8.0.1359Bram Moolenaar2017-11-291-88/+46
| | | | | | Problem: Libvterm ANSI colors can not always be recognized from the RGB values. The default color is wrong when t_RB is empty. Solution: Add the ANSI color index to VTermColor.
* patch 8.0.1330: MS-Windows: job in terminal can't get back to Vimv8.0.1330Bram Moolenaar2017-11-211-8/+5
| | | | | | Problem: MS-Windows: job in terminal can't get back to Vim. Solution: set VIM_SERVERNAME in the environment. (Yasuhiro Matsumoto, closes #2360)
* patch 8.0.1328: trouble when using ":term ++close" with autocmdv8.0.1328Bram Moolenaar2017-11-211-1/+5
| | | | | | Problem: Trouble when using ":term ++close" with autocmd. (Gabriel Barta) Solution: Use aucmd_prepbuf() and aucmd_restbuf() instead of setting curbuf. (closes #2339)
* patch 8.0.1323: mouse events in a terminal window may cause endless loopv8.0.1323Bram Moolenaar2017-11-201-2/+2
| | | | | | Problem: Mouse events in a terminal window may cause endless loop. Solution: Adjust position computation. Don't stuff a mouse event when coming from normal_cmd().
* patch 8.0.1317: accessing freed memory in term_wait()v8.0.1317Bram Moolenaar2017-11-191-0/+4
| | | | | Problem: Accessing freed memory in term_wait(). (Dominique Pelle) Solution: Check that the buffer still exists.
* patch 8.0.1309: cannot use 'balloonexpr' in a terminalv8.0.1309Bram Moolenaar2017-11-181-1/+5
| | | | | | 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.
* patch 8.0.1299: bracketed paste does not work well in terminal windowv8.0.1299Bram Moolenaar2017-11-161-16/+19
| | | | | | Problem: Bracketed paste does not work well in terminal window. Solution: Send translated string to job right away. (Ozaki Kiichi, closes #2341)
* patch 8.0.1277: terminal window CR-NL conversions may cause problemsv8.0.1277Bram Moolenaar2017-11-091-46/+21
| | | | | | 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)
* patch 8.0.1276: key lost when window closed in exit callbackv8.0.1276Bram Moolenaar2017-11-091-2/+4
| | | | | | | 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)
* patch 8.0.1261: program in terminal window gets NL instead of CRv8.0.1261Bram Moolenaar2017-11-041-17/+20
| | | | | Problem: Program in terminal window gets NL instead of CR. (Lifepillar) Solution: Check the tty setup more often. (closes #1998)
* patch 8.0.1240: MS-Windows: term_start() does not support environmentv8.0.1240Bram Moolenaar2017-10-301-6/+24
| | | | | | Problem: MS-Windows: term_start() does not support environment. Solution: Implement the environment argument. (Yasuhiro Matsumoto, closes #2264)
* patch 8.0.1203: terminal window mistreats composing charactersv8.0.1203Bram Moolenaar2017-10-151-6/+13
| | | | | | Problem: Terminal window mistreats composing characters. Solution: Count composing characters with the base character. (Ozaki Kiichi, closes #2195)
* patch 8.0.1195: can't build on MS-Windowsv8.0.1195Bram Moolenaar2017-10-151-0/+4
| | | | | Problem: Can't build on MS-Windows. Solution: Adjust #ifdef and add #ifdefs.
* patch 8.0.1194: actual fg and bg colors of terminal are unknownv8.0.1194Bram Moolenaar2017-10-141-5/+14
| | | | | 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.
* patch 8.0.1177: in a terminal window the popup menu is not clearedv8.0.1177Bram Moolenaar2017-10-071-2/+5
| | | | | | | 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)
* patch 8.0.1173: terminal window is not redrawn after CTRL-Lv8.0.1173Bram Moolenaar2017-10-021-0/+7
| | | | | Problem: Terminal window is not redrawn after CTRL-L. (Marcin Szamotulski) Solution: Redraw the whole terminal when w_redr_type is NOT_VALID.
* patch 8.0.1167: Motif: typing in terminal window is slowv8.0.1167Bram Moolenaar2017-09-301-3/+10
| | | | | Problem: Motif: typing in terminal window is slow. Solution: Do not redraw the whole terminal window but only was was changed.
* patch 8.0.1149: libvterm colors differ from xtermv8.0.1149Bram Moolenaar2017-09-261-12/+30
| | | | | Problem: libvterm colors differ from xterm. Solution: Use the xterm colors for libvterm.
* patch 8.0.1135: W_WINCOL() is always the samev8.0.1135Bram Moolenaar2017-09-221-2/+2
| | | | | Problem: W_WINCOL() is always the same. Solution: Expand the macro.
* Missing part of 8.0.1131.Bram Moolenaar2017-09-221-0/+6
|
* Add back terminal.cBram Moolenaar2017-09-201-0/+3673
|
* Update runtime files.Bram Moolenaar2017-09-191-3670/+0
|
* patch 8.0.1126: endless resize when terminal showing in two buffersv8.0.1126Bram Moolenaar2017-09-181-6/+15
| | | | | | Problem: Endless resize when terminal showing in two buffers. (Hirohito Higashi) Solution: Set a flag to prevent resizing the window.
* patch 8.0.1123: cannot define a toolbar for a windowv8.0.1123Bram Moolenaar2017-09-171-3/+4
| | | | | Problem: Cannot define a toolbar for a window. Solution: Add a window-local toolbar.
* patch 8.0.1108: cannot specify mappings for the terminal windowv8.0.1108Bram Moolenaar2017-09-141-12/+14
| | | | | | Problem: Cannot specify mappings for the terminal window. Solution: Add the :tmap command and associated code. (Jacob Askeland, closes #2073)
* patch 8.0.1106: terminal colors wrong on an MS-Windows consolev8.0.1106Bram Moolenaar2017-09-141-1/+24
| | | | | | | 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)
* patch 8.0.1103: converting cterm color fails for grey rampv8.0.1103Bram Moolenaar2017-09-141-3/+3
| | | | | Problem: Converting cterm color fails for grey ramp. Solution: Use index instead of number.
* patch 8.0.1102: terminal window does not use Normal colorsv8.0.1102Bram Moolenaar2017-09-141-4/+134
| | | | | | | | 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.
* patch 8.0.1100: stuck in redraw loop when 'lazyredraw' is setv8.0.1100Bram Moolenaar2017-09-131-2/+5
| | | | | | Problem: Stuck in redraw loop when 'lazyredraw' is set. Solution: Don't loop on update_screen() when not redrawing. (Yasuhiro Matsumoto, closes #2082)
* patch 8.0.1097: background color wrong if job changes background colorv8.0.1097Bram Moolenaar2017-09-111-15/+56
| | | | | Problem: Background color wrong if job changes background color. Solution: Get the background color from vterm.