Mercurial > vim
comparison src/os_amiga.c @ 20439:d4b2a8675b78 v8.2.0774
patch 8.2.0774: t_TI and t_TE are output when using 'visualbell'
Commit: https://github.com/vim/vim/commit/26e86445bf06ab7e7587dfdf75f33f7c70632b46
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 17 14:06:16 2020 +0200
patch 8.2.0774: t_TI and t_TE are output when using 'visualbell'
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 May 2020 14:15:07 +0200 |
parents | 3bb4dea4a164 |
children | 88070e222e82 |
comparison
equal
deleted
inserted
replaced
20438:1f756e67c0d4 | 20439:d4b2a8675b78 |
---|---|
975 * Cooked: This function returns the designate file pointer to its normal, | 975 * Cooked: This function returns the designate file pointer to its normal, |
976 * wait for a <CR> mode. This is exactly like raw() except that | 976 * wait for a <CR> mode. This is exactly like raw() except that |
977 * it sends a 0 to the console to make it back into a CON: from a RAW: | 977 * it sends a 0 to the console to make it back into a CON: from a RAW: |
978 */ | 978 */ |
979 void | 979 void |
980 mch_settmode(int tmode) | 980 mch_settmode(tmode_T tmode) |
981 { | 981 { |
982 #if defined(__AROS__) || defined(__amigaos4__) | 982 #if defined(__AROS__) || defined(__amigaos4__) |
983 if (!SetMode(raw_in, tmode == TMODE_RAW ? 1 : 0)) | 983 if (!SetMode(raw_in, tmode == TMODE_RAW ? 1 : 0)) |
984 #else | 984 #else |
985 if (dos_packet(MP(raw_in), (long)ACTION_SCREEN_MODE, | 985 if (dos_packet(MP(raw_in), (long)ACTION_SCREEN_MODE, |