summaryrefslogtreecommitdiff
path: root/src/terminal.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.1803: warning for uninitialized variablev8.0.1803Bram Moolenaar2018-05-071-1/+1
| | | | | Problem: Warning for uninitialized variable. (Tony Mechelynck) Solution: Initialize it.
* patch 8.0.1802: MS-Windows: terminal test failsv8.0.1802Bram Moolenaar2018-05-061-0/+7
| | | | | Problem: MS-Windows: terminal test fails. Solution: Close redirected output file earlier.
* patch 8.0.1801: MS-Windows: redirecting terminal output does not workv8.0.1801Bram Moolenaar2018-05-061-17/+53
| | | | | | Problem: MS-Windows: redirecting terminal output does not work. Solution: Intercept the text written to the terminal and write it to the file.
* patch 8.0.1797: terminal window is redrawn too oftenv8.0.1797Bram Moolenaar2018-05-061-31/+56
| | | | | | 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.
* patch 8.0.1796: GUI: click on tab fails when the focus is in a terminalv8.0.1796Bram Moolenaar2018-05-061-1/+4
| | | | | Problem: GUI: click on tab fails when the focus is in a terminal window. Solution: Handle K_TABLINE.
* patch 8.0.1795: lose contact with jobs when :gui forksv8.0.1795Bram Moolenaar2018-05-051-3/+0
| | | | | | | 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.
* patch 8.0.1794: duplicate term options after renamingv8.0.1794Bram Moolenaar2018-05-051-14/+17
| | | | | Problem: Duplicate term options after renaming. Solution: Remove the old names 'termkey', 'termsize' and 'terminalscroll'.
* patch 8.0.1789: BufWinEnter does not work well for a terminal windowv8.0.1789Bram Moolenaar2018-05-031-7/+1
| | | | | Problem: BufWinEnter does not work well for a terminal window. Solution: Do not trigger BufWinEnter when opening a terminal window.
* patch 8.0.1786: no test for 'termwinkey'v8.0.1786Bram Moolenaar2018-05-011-3/+4
| | | | | | Problem: No test for 'termwinkey'. Solution: Add a test. Make feedkeys() handle terminal_loop() returning before characters are consumed.
* patch 8.0.1783: cannot use 256 colors in a MS-Windows consolev8.0.1783Bram Moolenaar2018-05-011-59/+10
| | | | | Problem: Cannot use 256 colors in a MS-Windows console. Solution: Add 256 color support. (Nobuhiro Takasaki, closes #2821)
* patch 8.0.1747: MS-Windows: term_start() does not set job_info() cmdv8.0.1747Bram Moolenaar2018-04-211-0/+12
| | | | | Problem: MS-Windows: term_start() does not set job_info() cmd. Solution: Share the code from job_start() to set jv_argv.
* patch 8.0.1745: build failure on MS-Windowsv8.0.1745Bram Moolenaar2018-04-211-8/+0
| | | | | Problem: Build failure on MS-Windows. Solution: Build job arguments for MS-Windows. Fix allocating job twice.
* patch 8.0.1743: terminal window options are named inconsistentlyv8.0.1743Bram Moolenaar2018-04-211-8/+10
| | | | | | Problem: Terminal window options are named inconsistently. Solution: prefix terminal window options with "termwin". Keep the old names for now as an alias.
* patch 8.0.1732: crash when terminal API call deletes the bufferv8.0.1732Bram Moolenaar2018-04-171-0/+8
| | | | | Problem: Crash when terminal API call deletes the buffer. Solution: Lock the buffer while calling a function. (closes #2813)
* patch 8.0.1722: cannot specify a minimal size for a terminal windowv8.0.1722Bram Moolenaar2018-04-151-45/+64
| | | | | Problem: Cannot specify a minimal size for a terminal window. Solution: Support the "rows*cols" format for 'winsize'.
* patch 8.0.1720: when a timer is running a terminal window may not closev8.0.1720Bram Moolenaar2018-04-151-28/+55
| | | | | | Problem: When a timer is running a terminal window may not close after a shell has exited. Solution: Call job_status() more often.
* patch 8.0.1715: terminal buffer can be 1 more than 'terminalscroll' linesv8.0.1715Bram Moolenaar2018-04-151-1/+1
| | | | | Problem: Terminal buffer can be 1 more than 'terminalscroll' lines. Solution: Change > to >=.
* patch 8.0.1714: term_setsize() does not give an error in a normal bufferv8.0.1714Bram Moolenaar2018-04-141-1/+6
| | | | | Problem: Term_setsize() does not give an error in a normal buffer. Solution: Add an error message.
* patch 8.0.1712: terminal scrollback is not limitedv8.0.1712Bram Moolenaar2018-04-141-3/+21
| | | | | Problem: Terminal scrollback is not limited. Solution: Add the 'terminalscroll' option.
* patch 8.0.1711: term_setsize() is not implemented yetv8.0.1711Bram Moolenaar2018-04-141-3/+27
| | | | | Problem: Term_setsize() is not implemented yet. Solution: Implement it.
* patch 8.0.1706: cannot sent CTRL-\ to a terminal windowv8.0.1706Bram Moolenaar2018-04-131-1/+6
| | | | | Problem: Cannot sent CTRL-\ to a terminal window. Solution: Make CTRL-W CTRL-\ send CTRL-\ to a terminal window.
* patch 8.0.1687: 64 bit compiler warningsv8.0.1687Bram Moolenaar2018-04-101-3/+3
| | | | | Problem: 64 bit compiler warnings. Solution: change type, add type cast. (Mike Williams)
* patch 8.0.1685: can't set ANSI colors of a terminal windowv8.0.1685Bram Moolenaar2018-04-101-5/+152
| | | | | | 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)
* patch 8.0.1684: ml_get errors when using terminal window for shell commandv8.0.1684Bram Moolenaar2018-04-101-1/+1
| | | | | | Problem: ml_get errors when using terminal window for shell command. (Blay263) Solution: Do not change the size of the current window.
* patch 8.0.1680: memory allocated by libvterm is not profiledv8.0.1680Bram Moolenaar2018-04-101-4/+22
| | | | | Problem: Memory allocated by libvterm does not show up in profile. Solution: Pass allocater functions to vterm_new().
* patch 8.0.1664: test failure because of not allocating enough spacev8.0.1664Bram Moolenaar2018-04-051-1/+1
| | | | | Problem: Test failure because of not allocating enough space. Solution: Allocate more bytes.
* patch 8.0.1662: showing dump diff doesn't mention both file namesv8.0.1662Bram Moolenaar2018-04-051-5/+62
| | | | | Problem: Showing dump diff doesn't mention both file names. Solution: Add the file name in the separator line.
* patch 8.0.1661: warnings from 64 bit compilerv8.0.1661Bram Moolenaar2018-04-041-2/+2
| | | | | Problem: Warnings from 64 bit compiler. Solution: Add type casts. (Mike Williams)
* patch 8.0.1660: the terminal API "drop" command doesn't support optionsv8.0.1660Bram Moolenaar2018-04-041-4/+55
| | | | | Problem: The terminal API "drop" command doesn't support options. Solution: Implement the options.
* patch 8.0.1652: term_dumpwrite() does not output composing charactersv8.0.1652Bram Moolenaar2018-03-291-1/+1
| | | | | Problem: term_dumpwrite() does not output composing characters. Solution: Use the cell index.
* patch 8.0.1647: terminal API may call any user functionv8.0.1647Bram Moolenaar2018-03-261-1/+1
| | | | | | Problem: Terminal API may call a function not meant to be called by this API. Solution: Require the function to start with Tapi_.
* patch 8.0.1641: job in terminal can't communicate with Vimv8.0.1641Bram Moolenaar2018-03-251-6/+141
| | | | | Problem: Job in terminal can't communicate with Vim. Solution: Add the terminal API.
* patch 8.0.1632: in a terminal dump NUL and space are differentv8.0.1632Bram Moolenaar2018-03-231-0/+9
| | | | | | 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.
* patch 8.0.1626: compiler warning for possible loss of datav8.0.1626Bram Moolenaar2018-03-211-2/+2
| | | | | Problem: Compiler warning for possible loss of data. Solution: Use size_t instead of int. (Christian Brabandt)
* patch 8.0.1624: options for term_dumpdiff() and term_dumpload() not implementedv8.0.1624Bram Moolenaar2018-03-201-11/+25
| | | | | | Problem: Options for term_dumpdiff() and term_dumpload() not implemented yet. Solution: Implement the relevant options.
* patch 8.0.1615: term_dumpload() does not use the right colorsv8.0.1615Bram Moolenaar2018-03-181-13/+28
| | | | | Problem: term_dumpload() does not use the right colors. Solution: Initialize colors when not using create_vterm().
* patch 8.0.1612: need to close terminal after shell stoppedv8.0.1612Bram Moolenaar2018-03-161-6/+17
| | | | | Problem: Need to close terminal after shell stopped. Solution: Make :terminal without argument close the window by default.
* patch 8.0.1611: CTRL-W in system terminal does not go to jobv8.0.1611Bram Moolenaar2018-03-161-2/+7
| | | | | Problem: CTRL-W in system terminal does not go to job. Solution: Do not use CTRL-W as a terminal command in a system terminal.
* patch 8.0.1610: cannot build without GUIv8.0.1610Bram Moolenaar2018-03-161-0/+2
| | | | | Problem: Cannot build without GUI. Solution: Add #ifdef.
* patch 8.0.1609: shell commands in the GUI use a dumb terminalv8.0.1609Bram Moolenaar2018-03-161-113/+230
| | | | | | Problem: Shell commands in the GUI use a dumb terminal. Solution: Add the "!" flag to 'guioptions' to execute system commands in a special terminal window. Only for Unix now.
* patch 8.0.1603: cannot build with +terminal but without +menuv8.0.1603Bram Moolenaar2018-03-131-2/+5
| | | | | Problem: Cannot build with +terminal but without +menu. Solution: Add #ifdef. (Damien)
* patch 8.0.1598: cannot select text in a terminal with the mousev8.0.1598Bram Moolenaar2018-03-111-13/+138
| | | | | | | Problem: Cannot select text in a terminal with the mouse. Solution: When a job in a terminal is not consuming mouse events, use them for modeless selection. Also stop Insert mode when clicking in a terminal window.
* patch 8.0.1596: no autocommand specifically for opening a terminal windowv8.0.1596Bram Moolenaar2018-03-111-17/+10
| | | | | Problem: No autocommand specifically for opening a terminal window. Solution: Add TerminalOpen. (?, closes #2484)
* patch 8.0.1593: :qall never exits with an active terminal windowv8.0.1593Bram Moolenaar2018-03-101-21/+111
| | | | | Problem: :qall never exits with an active terminal window. Solution: Add a way to kill a job in a terminal window.
* patch 8.0.1592: terminal windows in a session are not properly restoredv8.0.1592Bram Moolenaar2018-03-091-5/+119
| | | | | | Problem: Terminal windows in a session are not properly restored. Solution: Add "terminal" in 'sessionoptions'. When possible restore the command running in a terminal.
* patch 8.0.1564: too many #ifdefsv8.0.1564Bram Moolenaar2018-03-041-10/+6
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.
* 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.