Gary Johnson wrote:
> After updating to the latest Vim, 9.0.0984, and starting Vim in
> a terminal without a file specified, the command line font was
> extremely tiny. (I'd estimate the font size to be 4 points.) If
> a file was opened from the command line, its font in the buffer was
> also tiny. Subsequent commands typed in the command line were of
> the expected font. The font in the buffer remained tiny until ^L
> was typed.
>
> Bisecting my vimrc and my usual color scheme plugin revealed the
> command causing the tiny font to be
>
> :set bg&
>
> and bisecting the git commits showed the bad commit to be
> 733a69b29f0b0c3d2ddca463a41bdd912379bc5e, tag v9.0.0980.
>
> Steps to reproduce
>
> 1. vim -N -u NONE -i NONE --cmd 'set bg&'
> 2. Type a colon (:) and note that it is in a very tiny font.
> 3. Continue typing the ex command to edit some file, e.g.,
> ":e feature.h". Note that the file is displayed in the buffer
> in the same tiny font.
>
> Expected behavior
>
> I expect Vim to use the same 11-pt font it normally uses, as set in
> the terminal's preferences.
>
> Version of Vim
>
> 9.0.0980 and 9.0.0984
>
> Environment
>
> Operating system: Cygwin version 3.3.6-1 (latest as of 2022-12-01)
> on Windows 10 Pro version 22H2
> Terminal: mintty version 3.6.2-1 (also latest as of 2022-12-01)
> Value of $TERM: xterm-256color
This doesn't look right. Doesn't mintty have a termcap/terminfo entry
and you can set $TERM accordingly?
Since $TERM includes "xterm" Vim assumes the terminal behaves like an
xterm and will enable modifyOtherKeys level 2. This should be harmless
if the terminal advertises to be working like xterm but doesn't actually
support it.
I assume that mintty can't handle the escape sequences that do work for
xterm. To find out which one please use a log:
vim -N -u NONE -i NONE --log logfile --cmd 'set bg&'
Around where you type the edit command you should be able to find some
"raw key input:" and "raw terminal output:" lines that hopefully provide
more information.
You can also change the 'keyprotocol' option, e.g. make it empty, and
see what effect that has.
--
hundred-and-one symptoms of being an internet addict:
197. Your desk collapses under the weight of your computer peripherals.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20221202100411.B99221C06AE%40moolenaar.net.