voldikss / vim-floaterm

:computer: Terminal manager for (neo)vim
MIT License
2.46k stars 79 forks source link

Terminal does not support reporting screen sizes in pixels #399

Open jackielii opened 1 year ago

jackielii commented 1 year ago

Before reporting

Environment

If you are using vim(not neovim), fill in the following blanks

If you are using neovim, just run :checkhealth floaterm and post the content

below.


floaterm: health#floaterm#check
========================================================================
## common
  - INFO: Platform: macos
  - INFO: Nvim: NVIM v0.8.3
  - INFO: Plugin: 06c7398

## terminal
  - OK: Terminal emulator is available

## floating
  - OK: Floating window is available

Configurations related to vim-floaterm in vimrc(i.e. g:floaterm_xxx):

let g:floaterm_width=0.8
let g:floaterm_height=0.9
let g:floaterm_title='Terminal'

let g:lf_command_override = 'TERM=xterm-kitty lf'

Describe your question, feature request, or bug.

Using kitty 0.27.1, I have image preview setup in lf file manager, with vim-lf plug also installed.

Launch kitty image preview with kitty +kitten icat image.png shows:

Error: Terminal does not support reporting screen sizes in pixels, use a terminal such as kitty, WezTerm, Konsole,
 etc. that does.

kitty +kitten icat --print-window-size says 0x0

Obviously this doesn't need lf to reproduce.

Steps to reproduce

Using the minimal vimrc

set nocompatible
set hidden
set termguicolors
set runtimepath^=$HOME/.config/nvim/plugged/vim-floaterm
filetype plugin indent on
syntax on

Launch floaterm with: :FloatermNew!

In the terminal launched, run kitty +kitten icat someimage to see the error message

Actual behaviour

Expected behaviour

Screenshots(Optional, GIF is better)