summaryrefslogtreecommitdiff
path: root/src/term.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.1513: cannot interrupt shell used for filename expansionv8.2.1513Bram Moolenaar2020-08-231-1/+1
| | | | | | Problem: Cannot interrupt shell used for filename expansion. (Dominique Pellé) Solution: Do set tmode in mch_delay(). (closes #6770)
* patch 8.2.1362: last entry of ":set term=xxx" overwritten by error messagev8.2.1362Bram Moolenaar2020-08-041-0/+5
| | | | | | Problem: Last entry of ":set term=xxx" overwritten by error message when 'cmdheight' is two or more. (Tony Mechelynck) Solution: Output extra line breaks.
* patch 8.2.1215: Atari MiNT support is outdatedv8.2.1215Bram Moolenaar2020-07-141-39/+2
| | | | | Problem: Atari MiNT support is outdated. Solution: Nobody responded this code is still useful, so let's delete it.
* patch 8.2.1164: text cleared by checking terminal properties not redrawnv8.2.1164Bram Moolenaar2020-07-081-0/+2
| | | | | | Problem: Text cleared by checking terminal properties not redrawn. (Alexey Radkov) Solution: Mark the screen characters as invalid. (closes #6422)
* patch 8.2.1019: mapping <M-S-a> does not work in the GUIv8.2.1019Bram Moolenaar2020-06-201-11/+2
| | | | | | Problem: Mapping <M-S-a> does not work in the GUI. Solution: Move the logic to remove the shift modifier to may_remove_shift_modifier() and also use it in the GUI.
* patch 8.2.1015: popup filter gets key with modifier prependedv8.2.1015Bram Moolenaar2020-06-191-2/+5
| | | | | | | Problem: Popup filter gets key with modifier prepended when using modifyOtherKeys. Solution: Remove the shift modifier when it is included in the key, also when the Alt or Meta modifier is used.
* patch 8.2.0979: a couple of screendump tests failv8.2.0979Bram Moolenaar2020-06-141-1/+2
| | | | | Problem: A couple of screendump tests fail. Solution: Do not redraw when clearing t_8u.
* patch 8.2.0978: leaking memory in termcodes testv8.2.0978Bram Moolenaar2020-06-141-1/+1
| | | | | Problem: Leaking memory in termcodes test. Solution: Set t_8u with set_option_value().
* patch 8.2.0977: t_8u is made empty for the wrong terminalsv8.2.0977Bram Moolenaar2020-06-141-1/+2
| | | | | Problem: t_8u is made empty for the wrong terminals. (Dominique Pelle) Solution: Invert the check for TPR_YES. (closes #6254)
* patch 8.2.0971: build with tiny features failsv8.2.0971Bram Moolenaar2020-06-131-1/+7
| | | | | Problem: Build with tiny features fails. Solution: Add #ifdef.
* patch 8.2.0970: terminal properties are not available in Vim scriptv8.2.0970Bram Moolenaar2020-06-131-4/+26
| | | | | Problem: Terminal properties are not available in Vim script. Solution: Add the terminalprops() function.
* patch 8.2.0967: unnecessary type casts for vim_strnsave()v8.2.0967Bram Moolenaar2020-06-121-2/+2
| | | | | Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts.
* patch 8.2.0941: detecting terminal properties is unstructuredv8.2.0941Bram Moolenaar2020-06-101-75/+162
| | | | | | Problem: Detecting terminal properties is unstructured. Solution: Add a table with terminal properties. Set properties when a terminal is detected.
* patch 8.2.0940: build failure with tiny featuresv8.2.0940Bram Moolenaar2020-06-091-3/+7
| | | | | Problem: Build failure with tiny features. Solution: Add #ifdef. Add UNUSED. A bit more cleaning up.
* patch 8.2.0939: checking for term escape sequences is long and confusingv8.2.0939Bram Moolenaar2020-06-091-550/+658
| | | | | Problem: checking for term escape sequences is long and confusing Solution: Refactor code into separate functions.
* patch 8.2.0936: some terminals misinterpret the code for getting cursor stylev8.2.0936Bram Moolenaar2020-06-091-15/+84
| | | | | | Problem: Some terminals misinterpret the code for getting cursor style. Solution: Send a sequence to the terminal and check the result. (IWAMOTO Kouichi, closes #2126) Merged with current code.
* patch 8.2.0916: mapping with partly modifyOtherKeys code does not workv8.2.0916Bram Moolenaar2020-06-061-2/+2
| | | | | | Problem: Mapping with partly modifyOtherKeys code does not work. Solution: If there is no mapping with a separate modifier include the modifier in the key and then try mapping again. (closes #6200)
* patch 8.2.0906: when setting 'termguicolors' SpellBad is no longer redv8.2.0906Bram Moolenaar2020-06-051-0/+5
| | | | | | | | Problem: When setting 'termguicolors' SpellBad is no longer red. Solution: Only use the RGB guisp color for cterm when using the "underline" or "undercurl" attributes to avoid the background color to be cleared. Also make t_8u empty when the termresponse indicates a real xterm. (closes #6207)
* patch 8.2.0863: cannot set a separate color for underline/undercurlv8.2.0863Bram Moolenaar2020-05-311-2/+19
| | | | | Problem: Cannot set a separate color for underline/undercurl. Solution: Add the t_AU and t_8u termcap codes. (Timur Celik, closes #6011)
* patch 8.2.0855: GUI tests fail because the test doesn't use a modifierv8.2.0855Bram Moolenaar2020-05-301-2/+3
| | | | | Problem: GUI tests fail because the test doesn't use a modifier. Solution: Add "\{xxx}" to be able to encode a modifier.
* patch 8.2.0849: BeOS code is not maintained and probably unusedv8.2.0849Bram Moolenaar2020-05-301-29/+2
| | | | | Problem: BeOS code is not maintained and probably unused. Solution: Remove the BeOS code. (Emir Sari, closes #5817)
* patch 8.2.0848: MS-Windows: the Windows terminal code has some flawsv8.2.0848Bram Moolenaar2020-05-301-1/+10
| | | | | | | Problem: MS-Windows: the Windows terminal code has some flaws. Solution: Do not redraw the right edge of the screen. Remove the background color trick. Flush the screen output buffer often. (Nobuhiro Takasaki, #5546)
* patch 8.2.0816: terminal test fails when compiled with Athenav8.2.0816Bram Moolenaar2020-05-241-5/+5
| | | | | | Problem: Terminal test fails when compiled with Athena. Solution: Do give an error when the GUI is not running. (hint by Dominique Pelle, closes #5928, closes #6132)
* patch 8.2.0804: libvterm code lags behind the upstream versionv8.2.0804Bram Moolenaar2020-05-211-9/+5
| | | | | | Problem: Libvterm code lags behind the upstream version. Solution: Include revision 727, but add the index instead of switching between RGB and indexed.
* patch 8.2.0779: tmode_T not used everywherev8.2.0779Bram Moolenaar2020-05-171-1/+1
| | | | | Problem: Tmode_T not used everywhere. Solution: Also use tmode_T for settmode().
* patch 8.2.0774: t_TI and t_TE are output when using 'visualbell'v8.2.0774Bram Moolenaar2020-05-171-1/+6
| | | | | | | | Problem: t_TI and t_TE are output when using 'visualbell'. (Dominique Pelle) Solution: Do not change the terminal mode for a short sleep. Do not output t_TI and t_TE when switching to/from TMODE_SLEEP. Make tmode an enum.
* patch 8.2.0773: switching to raw mode every time ":" is usedv8.2.0773Bram Moolenaar2020-05-161-5/+5
| | | | | | Problem: Switching to raw mode every time ":" is used. Solution: When executing a shell set cur_tmode to TMODE_UNKNOWN, so that the next time TMODE_RAW is used it is set, but not every time.
* patch 8.2.0767: modifyOtherKeys active when using a shell command in autocmdv8.2.0767Bram Moolenaar2020-05-161-0/+6
| | | | | Problem: ModifyOtherKeys active when using a shell command in autocmd. Solution: Output T_CTE when going to cooked mode. (closes 5617)
* patch 8.2.0646: t_Co uses the value of $COLORS in the GUIv8.2.0646Bram Moolenaar2020-04-261-6/+12
| | | | | Problem: t_Co uses the value of $COLORS in the GUI. (Masato Nishihata) Solution: Ignore $COLORS for the GUI. (closes #5992)
* patch 8.2.0588: Putty does not use "sgr" 'ttymouse' by defaultv8.2.0588Bram Moolenaar2020-04-171-3/+12
| | | | | | Problem: Putty does not use "sgr" 'ttymouse' by default. Solution: Make "sgr" the default for Putty. (Christian Brabandt, closes #5942)
* patch 8.2.0554: the GUI doesn't set t_Cov8.2.0554Bram Moolenaar2020-04-121-1/+1
| | | | | Problem: The GUI doesn't set t_Co. Solution: In the GUI set t_Co to 256 * 256 * 256. (closes #5903)
* patch 8.2.0320: no Haiku supportv8.2.0320Bram Moolenaar2020-02-261-0/+5
| | | | | Problem: No Haiku support. Solution: Add support for Haiku. (Emir Sari, closes #5605)
* patch 8.2.0302: setting 'term' may cause error in TermChanged autocommandv8.2.0302Bram Moolenaar2020-02-221-5/+8
| | | | | | Problem: Setting 'term' may cause error in TermChanged autocommand. Solution: Use aucmd_prepbuf() to switch to the buffer where the autocommand is to be executed. (closes #5682)
* patch 8.2.0260: several lines of code are duplicatedv8.2.0260Bram Moolenaar2020-02-151-0/+31
| | | | | | Problem: Several lines of code are duplicated. Solution: Move duplicated code to a function. (Yegappan Lakshmanan, closes #5330)
* patch 8.2.0231: silent system command may clear the screenv8.2.0231Bram Moolenaar2020-02-081-2/+2
| | | | | Problem: Silent system command may clear the screen. Solution: Do not clear the screen in t_te.
* patch 8.2.0156: various typos in source files and testsv8.2.0156Bram Moolenaar2020-01-261-1/+1
| | | | | Problem: Various typos in source files and tests. Solution: Fix the typos. (Emir Sari, closes #5532)
* patch 8.2.0148: mapping related function in wrong source filev8.2.0148Bram Moolenaar2020-01-241-75/+0
| | | | | | Problem: Mapping related function in wrong source file. Solution: Move the function. Add a few more test cases. (Yegappan Lakshmanan, closes #5528)
* patch 8.2.0056: execution stack is incomplete and inefficientv8.2.0056Bram Moolenaar2019-12-291-1/+1
| | | | | | Problem: Execution stack is incomplete and inefficient. Solution: Introduce a proper execution stack and use it instead of sourcing_name/sourcing_lnum. Create a string only when used.
* patch 8.1.2406: leaking memory in test_paste and test_registersv8.1.2406Bram Moolenaar2019-12-071-0/+2
| | | | | Problem: Leaking memory in test_paste and test_registers. Solution: Free the old title. Don't copy expr_line.
* patch 8.1.2395: using old C style commentsv8.1.2395Bram Moolenaar2019-12-051-523/+520
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2350: other text for CTRL-V in Insert mode with modifyOtherKeysv8.1.2350Bram Moolenaar2019-11-261-1/+1
| | | | | | | Problem: Other text for CTRL-V in Insert mode with modifyOtherKeys. Solution: Convert the Escape sequence back to key as if modifyOtherKeys is not set, and use CTRL-SHIFT-V to get the Escape sequence itself. (closes #5254)
* patch 8.1.2331: the option.c file is still very bigv8.1.2331Bram Moolenaar2019-11-211-0/+34
| | | | | | Problem: The option.c file is still very big. Solution: Move a few functions to where they fit better. (Yegappan Lakshmanan, closes #4895)
* patch 8.1.2313: debugging where a delay comes from is not easyv8.1.2313Bram Moolenaar2019-11-171-2/+2
| | | | | Problem: Debugging where a delay comes from is not easy. Solution: Use different values when calling ui_delay().
* patch 8.1.2209: LF in escape codes may be expanded to CR-LFv8.1.2209Bram Moolenaar2019-10-241-17/+10
| | | | | Problem: LF in escape codes may be expanded to CR-LF. Solution: Do not expand LF in escape codes to CR-LF. (closes #5107)
* patch 8.1.2194: modifyOtherKeys is not enabled by defaultv8.1.2194Bram Moolenaar2019-10-201-0/+2
| | | | | Problem: ModifyOtherKeys is not enabled by default. Solution: Add t_TI and t_TE to the builtin xterm termcap.
* patch 8.1.2174: screen not recognized as supporting "sgr" mouse codesv8.1.2174Bram Moolenaar2019-10-181-4/+12
| | | | | Problem: Screen not recognized as supporting "sgr" mouse codes. Solution: Recognize screen 4.7. (Jordan Christiansen, closes #5042)
* patch 8.1.2171: mouse support not always availablev8.1.2171Bram Moolenaar2019-10-171-36/+21
| | | | | | Problem: Mouse support not always available. Solution: Enable mouse support also in tiny version. Do not define FEAT_MOUSE_XTERM on MS-Windows (didn't really work).
* patch 8.1.2170: cannot build without the +termresponse featurev8.1.2170Bram Moolenaar2019-10-171-0/+2
| | | | | Problem: Cannot build without the +termresponse feature. Solution: Add #ifdef.
* patch 8.1.2169: terminal flags are never resetv8.1.2169Bram Moolenaar2019-10-171-0/+2
| | | | | Problem: Terminal flags are never reset. Solution: Reset the flags when setting 'term'.
* patch 8.1.2145: cannot map <C-H> when modifyOtherKeys is enabledv8.1.2145Bram Moolenaar2019-10-131-13/+32
| | | | | | Problem: Cannot map <C-H> when modifyOtherKeys is enabled. Solution: Add the <C-H> mapping twice, both with modifier and as 0x08. Use only the first one when modifyOtherKeys has been detected.