summaryrefslogtreecommitdiff
path: root/src/terminal.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* patch 8.0.1096: terminal window in Normal mode has wrong backgroundv8.0.1096Bram Moolenaar2017-09-111-14/+28
| | | | | | | 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.
* patch 8.0.1087: Test_terminal_cwd is flakyv8.0.1087Bram Moolenaar2017-09-101-4/+11
| | | | | | | 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.
* patch 8.0.1080: memory leak for eof_chars terminal option and buffer namev8.0.1080Bram Moolenaar2017-09-091-0/+3
| | | | | Problem: Memory leak for eof_chars terminal option and buffer name. Solution: Free job options. Free the buffer name
* patch 8.0.1076: term_start() does not take callbacksv8.0.1076Bram Moolenaar2017-09-081-17/+39
| | | | | | | | 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.
* patch 8.0.1075: MS-Windows: mouse does not work in terminalv8.0.1075Bram Moolenaar2017-09-081-1/+8
| | | | | Problem: MS-Windows: mouse does not work in terminal. Solution: Force the winpty mouse on. (Yasuhiro Matsumoto, closes #2072)
* patch 8.0.1074: ":term NONE" does not work on MS-Windowsv8.0.1074Bram Moolenaar2017-09-081-15/+92
| | | | | | 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)
* patch 8.0.1063: Coverity warns for NULL check and array usev8.0.1063Bram Moolenaar2017-09-051-7/+9
| | | | | | Problem: Coverity warns for NULL check and using variable pointer as an array. Solution: Remove the NULL check. Make "argvar" an array.
* patch 8.0.1061: Coverity: no check for NULL commandv8.0.1061Bram Moolenaar2017-09-051-4/+8
| | | | | Problem: Coverity: no check for NULL command. Solution: Check for NULL list item.
* patch 8.0.1052: term_start() does not allow in_io, out_io and err_io optionsv8.0.1052Bram Moolenaar2017-09-031-26/+28
| | | | | Problem: term_start() does not allow in_io, out_io and err_io options. Solution: Add JO_OUT_IO to get_job_options().
* patch 8.0.1038: strike-through text not supportedv8.0.1038Bram Moolenaar2017-09-021-2/+2
| | | | | | Problem: Strike-through text not supported. Solution: Add support for the "strikethrough" attribute. (Christian Brabandt, Ken Takata)
* patch 8.0.1036: ++eof argument for terminal only available on MS-Windowsv8.0.1036Bram Moolenaar2017-09-021-31/+27
| | | | | Problem: ++eof argument for terminal only available on MS-Windows. Solution: Also support ++eof on Unix. Add a test.
* patch 8.0.1035: sending buffer lines to terminal doesn't work on MS-Windowsv8.0.1035Bram Moolenaar2017-09-021-4/+30
| | | | | | 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.
* patch 8.0.1034: sending buffer lines to terminal doesn't work on MS-Windowsv8.0.1034Bram Moolenaar2017-09-021-1/+24
| | | | | | 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.
* patch 8.0.1018: warnings from 64-bit compilerv8.0.1018Bram Moolenaar2017-08-301-4/+4
| | | | | Problem: Warnings from 64-bit compiler. (Christian Brabandt) Solution: Add type casts.
* patch 8.0.1013: terminal window behaves different from a buffer with changesv8.0.1013Bram Moolenaar2017-08-291-7/+0
| | | | | | | 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]".
* patch 8.0.1009: Xterm cursor blinking status may be invertedv8.0.1009Bram Moolenaar2017-08-281-2/+2
| | | | | | Problem: Xterm cursor blinking status may be inverted. Solution: Use another request to get the blink status and compare with the cursor style report
* patch 8.0.1002: unnecessarily updating screen after timer callbackv8.0.1002Bram Moolenaar2017-08-261-1/+1
| | | | | Problem: Unnecessarily updating screen after timer callback. Solution: Check if calling the timer sets must_redraw.
* patch 8.0.1000: cannot open a terminal without running a job in itv8.0.1000Bram Moolenaar2017-08-261-18/+62
| | | | | Problem: Cannot open a terminal without running a job in it. Solution: Make ":terminal NONE" open a terminal with a pty.
* patch 8.0.0994: MS-Windows: cursor in terminal blinks undesirablyv8.0.0994Bram Moolenaar2017-08-241-3/+5
| | | | | | Problem: MS-Windows: cursor in terminal blinks even though the blinking cursor was disabled on the system. Solution: Use GetCaretBlinkTime(). (Ken Takata)
* patch 8.0.0992: terminal title is wrong when 'encoding' is DBCSv8.0.0992Bram Moolenaar2017-08-231-0/+18
| | | | | | Problem: Terminal title is wrong when 'encoding' is DBCS. Solution: Convert the title from DBCS to utf-8. (Yasuhiro Matsumoto, closes #2009)
* patch 8.0.0991: using wrong character conversion for DBCSv8.0.0991Bram Moolenaar2017-08-231-2/+2
| | | | | | Problem: Using wrong character conversion for DBCS. Solution: Use utf_char2bytes instead of mb_char2bytes. (Yasuhiro Matsumoto, closes #2012)
* patch 8.0.0990: with DBCS 'encoding' wrong pasting register into terminalv8.0.0990Bram Moolenaar2017-08-231-0/+27
| | | | | | | 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)
* patch 8.0.0987: terminal: second byte of double-byte char wrongv8.0.0987Bram Moolenaar2017-08-221-2/+6
| | | | | Problem: terminal: second byte of double-byte char wrong Solution: Set the second byte to NUL only for utf-8 and non-multibyte.
* patch 8.0.0986: terminal feature always requires multi-byte featurev8.0.0986Bram Moolenaar2017-08-221-9/+2
| | | | | Problem: Terminal feature always requires multi-byte feature. Solution: Remove #ifdef FEAT_MBYTE, disable terminal without multi-byte.
* patch 8.0.0984: terminal blinking cursor not correct in the GUIv8.0.0984Bram Moolenaar2017-08-221-5/+16
| | | | | | 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)
* patch 8.0.0982: cannot use a terminal when 'encoding' is non-utf8 multi-bytev8.0.0982Bram Moolenaar2017-08-211-15/+66
| | | | | | | 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)
* patch 8.0.0981: cursor in terminal window blinks by defaultv8.0.0981Bram Moolenaar2017-08-211-1/+7
| | | | | | 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.
* patch 8.0.0977: cannot send lines to a terminal job on MS-Windowsv8.0.0977Bram Moolenaar2017-08-201-11/+18
| | | | | Problem: Cannot send lines to a terminal job on MS-Windows. Solution: Set jv_in_buf. Command doesn't get EOF yet though.
* patch 8.0.0976: cannot send lines to a terminal jobv8.0.0976Bram Moolenaar2017-08-201-17/+66
| | | | | | 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.