summaryrefslogtreecommitdiff
path: root/src/terminal.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.2134: modifier keys are not always recognizedv8.1.2134Bram Moolenaar2019-10-101-2/+18
| | | | | | Problem: Modifier keys are not always recognized. Solution: Handle key codes generated by xterm with modifyOtherKeys set. Add this to libvterm so we can debug it.
* patch 8.1.2120: some MB_ macros are more complicated than necessaryv8.1.2120Bram Moolenaar2019-10-061-1/+1
| | | | | | Problem: Some MB_ macros are more complicated than necessary. (Dominique Pelle) Solution: Simplify the macros. Expand inline.
* patch 8.1.2107: various memory leaks reported by asanv8.1.2107Bram Moolenaar2019-10-011-1/+2
| | | | | Problem: Various memory leaks reported by asan. Solution: Free the memory. (Ozaki Kiichi, closes #5003)
* patch 8.1.2080: the terminal API is limited and can't be disabledv8.1.2080Bram Moolenaar2019-09-261-19/+71
| | | | | | Problem: The terminal API is limited and can't be disabled. Solution: Add term_setapi() to set the function prefix. (Ozaki Kiichi, closes #2907)
* patch 8.1.2076: crash when trying to put a terminal in a popup windowv8.1.2076Bram Moolenaar2019-09-251-0/+2
| | | | | | Problem: Crash when trying to put a terminal buffer in a popup window. Solution: Check for NULL buffer. Do not allow putting a terminal in a popup window.
* patch 8.1.2064: MS-Windows: compiler warnings for unused argumentsv8.1.2064Bram Moolenaar2019-09-211-3/+3
| | | | | Problem: MS-Windows: compiler warnings for unused arguments. Solution: Add UNUSED. (Yegappan Lakshmanan, closes #4963)
* patch 8.1.2021: some global functions can be local to the filev8.1.2021Bram Moolenaar2019-09-101-2/+2
| | | | | Problem: Some global functions can be local to the file. Solution: Add "static". (Yegappan Lakshmanan, closes #4917)
* patch 8.1.2012: more functions can be used as methodsv8.1.2012Bram Moolenaar2019-09-081-0/+2
| | | | | Problem: More functions can be used as methods. Solution: Make terminal functions usable as a method. Fix term_getattr().
* patch 8.1.1848: 'langmap' is not used for CTRL-W command in terminalv8.1.1848Bram Moolenaar2019-08-151-2/+7
| | | | | | Problem: 'langmap' is not used for CTRL-W command in terminal. Solution: Push the command in the typeahead buffer instead of the stuff buffer. (closes #4814)
* patch 8.1.1800: function call functions have too many argumentsv8.1.1800Bram Moolenaar2019-08-031-6/+6
| | | | | Problem: Function call functions have too many arguments. Solution: Pass values in a funcexe_T struct.
* patch 8.1.1592: may start file dialog while exitingv8.1.1592Bram Moolenaar2019-06-251-11/+18
| | | | | | Problem: May start file dialog while exiting. Solution: Ignore the "browse" modifier when exiting. (Ozaki Kiichi, closes #4582
* patch 8.1.1575: callbacks may be garbage collectedv8.1.1575Bram Moolenaar2019-06-201-1/+1
| | | | | Problem: Callbacks may be garbage collected. Solution: Set reference in callbacks. (Ozaki Kiichi, closes #4564)
* patch 8.1.1566: error message when terminal closes in another tabv8.1.1566Bram Moolenaar2019-06-171-0/+2
| | | | | | | Problem: Error message when terminal closes while it is not in the current tab. Solution: Also set "do_set_w_closing" when using the special autocommand window. (closes #4552)
* patch 8.1.1457: cannot reuse a buffer when loading a screen dumpv8.1.1457Bram Moolenaar2019-06-031-2/+22
| | | | | Problem: Cannot reuse a buffer when loading a screen dump. Solution: Add the "bufnr" option.
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-7/+6
| | | | | | Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
* patch 8.1.1393: unnecessary type castsv8.1.1393Bram Moolenaar2019-05-251-9/+9
| | | | | Problem: Unnecessary type casts. Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
* patch 8.1.1391: no popup window supportv8.1.1391Bram Moolenaar2019-05-251-2/+2
| | | | | Problem: No popup window support. Solution: Add initial code for popup windows. Add the 'wincolor' option.
* patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386Bram Moolenaar2019-05-241-1/+1
| | | | | Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
* patch 8.1.1330: using bold attribute in terminal changes the colorv8.1.1330Bram Moolenaar2019-05-131-1/+3
| | | | | | | Problem: Using bold attribute in terminal changes the color. (Jason Franklin) Solution: Don't set the "bold-highbright" flag in vterm unless the terminal supports less than 16 colors.
* patch 8.1.1319: computing function length name in many placesv8.1.1319Bram Moolenaar2019-05-111-1/+1
| | | | | Problem: Computing function length name in many places. Solution: compute name length in call_func().
* patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exev8.1.1230Bram Moolenaar2019-04-281-10/+20
| | | | | | Problem: A lot of code is shared between vim.exe and gvim.exe. Solution: Optionally put the shared code in vim.dll. (Ken Takata, closes #4287)
* patch 8.1.1194: typos and small problems in source filesv8.1.1194Bram Moolenaar2019-04-211-1/+1
| | | | | Problem: Typos and small problems in source files. Solution: Small fixes.
* patch 8.1.1182: some function prototypes are outdatedv8.1.1182Bram Moolenaar2019-04-171-0/+13
| | | | | Problem: Some function prototypes are outdated. Solution: Update function prototypes. (Ken Takata, closes #4267)
* patch 8.1.1161: unreachable codev8.1.1161Bram Moolenaar2019-04-121-4/+1
| | | | | | Problem: Unreachable code. Solution: Remove condition that will never be true. Add tests for all ANSI colors.
* patch 8.1.1146: in MS-Windows console colors in a terminal window are wrongv8.1.1146Bram Moolenaar2019-04-111-2/+3
| | | | | Problem: In MS-Windows console colors in a terminal window are wrong. Solution: Use the ansi index also for 16 colors. (Ken Takata)
* patch 8.1.1131: getwinpos() does not work in the MS-Windows consolev8.1.1131Bram Moolenaar2019-04-061-1/+3
| | | | | Problem: getwinpos() does not work in the MS-Windows console. Solution: Implement getwinpos().
* patch 8.1.1127: getwinpos() doesn't work in terminal on MS-Windows consolev8.1.1127Bram Moolenaar2019-04-061-1/+4
| | | | | Problem: getwinpos() doesn't work in terminal on MS-Windows console. Solution: Adjust #ifdefs. Disable test for MS-Windows console.
* patch 8.1.1125: libvterm does not handle the window position reportv8.1.1125Bram Moolenaar2019-04-061-7/+61
| | | | | | Problem: Libvterm does not handle the window position report. Solution: Let libvterm call the fallback CSI handler when not handling CSI sequence. Handle the window position report in Vim.
* patch 8.1.1086: too many curly bracesv8.1.1086Bram Moolenaar2019-03-301-2/+0
| | | | | | Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
* patch 8.1.1024: stray log calls in terminal codev8.1.1024Bram Moolenaar2019-03-201-3/+0
| | | | | Problem: Stray log calls in terminal code. (Christian Brabandt) Solution: Remove the calls.
* patch 8.1.1018: window cleared when entering Terminal-Normal twicev8.1.1018Bram Moolenaar2019-03-191-1/+4
| | | | | | Problem: Window cleared when entering Terminal-Normal twice. (Epheien) Solution: Don't cleanup scrollback when there is no postponed scrollback. (Christian Brabandt, closes #4126)
* patch 8.1.0982: update_cursor() called twice in :shellv8.1.0982Bram Moolenaar2019-02-251-1/+0
| | | | | Problem: update_cursor() called twice in :shell. Solution: Remove one of the calls. (Yasuhiro Matsumoto, closes #4039)
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-25/+25
| | | | | | | Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and others. Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the GUI build. (Hirohito Higashi, closes #3932)
* patch 8.1.0929: no error when requesting ConPTY but it's not availablev8.1.0929Bram Moolenaar2019-02-161-11/+10
| | | | | Problem: No error when requesting ConPTY but it's not available. Solution: Add an error message. (Hirohito Higashi, closes #3967)
* patch 8.1.0923: terminal dump diff swap does not update file namesv8.1.0923Bram Moolenaar2019-02-151-2/+18
| | | | | Problem: Terminal dump diff swap does not update file names. Solution: Also swap the file name. Add a test.
* patch 8.1.0921: terminal test sometimes fails; using memory after freev8.1.0921Bram Moolenaar2019-02-141-1/+2
| | | | | | Problem: Terminal test sometimes fails; using memory after free. Solution: Fee memory a bit later. Add test to cover this. Disable flaky screenshot test. (closes #3956)
* patch 8.1.0920: in Terminal-Normal mode job output messes up the windowv8.1.0920Bram Moolenaar2019-02-141-33/+140
| | | | | | Problem: In Terminal-Normal mode job output messes up the window. Solution: Postpone scrolling and updating the buffer when in Terminal-Normal mode.
* patch 8.1.0912: MS-Windows: warning for signed/unsignedv8.1.0912Bram Moolenaar2019-02-131-2/+2
| | | | | Problem: MS-Windows: warning for signed/unsigned. Solution: Add type cast. (Nobuhiro Takasaki, closes #3945)
* patch 8.1.0909: MS-Windows: using ConPTY even though it is not stablev8.1.0909Bram Moolenaar2019-02-131-2/+2
| | | | | | Problem: MS-Windows: using ConPTY even though it is not stable. Solution: When ConPTY version is unstable, prefer using winpty. (Ken Takata, closes #3949)
* patch 8.1.0900: ConPTY many crash with 32-bit buildv8.1.0900Bram Moolenaar2019-02-121-3/+3
| | | | | Problem: ConPTY many crash with 32-bit build. Solution: Fix function declarations. (Ken Takata, closes #3943)
* patch 8.1.0880: MS-Windows: inconsistent selection of winpty/conptyv8.1.0880Bram Moolenaar2019-02-081-29/+29
| | | | | | Problem: MS-Windows: inconsistent selection of winpty/conpty. Solution: Name option 'termwintype', use ++type argument and "term_pty" for term_start(). (Hirohito Higashi, closes #3915)
* patch 8.1.0870: Vim doesn't use the new ConPTY support in Windows 10v8.1.0870Bram Moolenaar2019-02-031-16/+458
| | | | | Problem: Vim doesn't use the new ConPTY support in Windows 10. Solution: Use ConPTY support, if available. (Nobuhiro Takasaki, closes #3794)
* patch 8.1.0847: may use terminal after it was cleaned upv8.1.0847Bram Moolenaar2019-01-291-5/+10
| | | | | Problem: May use terminal after it was cleaned up. Solution: Use the job pointer.
* patch 8.1.0845: having job_status() free the job causes problemsv8.1.0845Bram Moolenaar2019-01-291-21/+49
| | | | | | | Problem: Having job_status() free the job causes problems. Solution: Do not actually free the job or terminal yet, put it in a list and free it a bit later. Do not use a terminal after checking the job status. (closes #3873)
* patch 8.1.0824: SunOS/Solaris has a problem with ttysv8.1.0824Bram Moolenaar2019-01-261-3/+3
| | | | | | Problem: SunOS/Solaris has a problem with ttys. Solution: Add mch_isatty() with extra handling for SunOS. (Ozaki Kiichi, closes #3865)
* patch 8.1.0785: depending on the configuration some functions are unusedv8.1.0785Bram Moolenaar2019-01-201-30/+3
| | | | | | Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
* patch 8.1.0760: no proper test for using 'termencoding'v8.1.0760Bram Moolenaar2019-01-171-46/+52
| | | | | | Problem: No proper test for using 'termencoding'. Solution: Add a screendump test. Fix using double width characters in a screendump.
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-19/+19
| | | | | | | | Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
* patch 8.1.0685: get_buf_tv() is named inconsistentlyv8.1.0685Bram Moolenaar2019-01-031-1/+1
| | | | | Problem: get_buf_tv() is named inconsistently. Solution: Rename it to tv_get_buf(). (Yegappan Lakshmanan, closes #3759)
* patch 8.1.0645: Coverity warns for possible use of NULL pointerv8.1.0645Bram Moolenaar2018-12-271-0/+2
| | | | | Problem: Coverity warns for possible use of NULL pointer. Solution: Check return value of vterm_obtain_screen().