neovim / neovim

Vim-fork focused on extensibility and usability
https://neovim.io
Other
82.72k stars 5.66k forks source link

it cannot work when i am in a linux screen control #10462

Closed leiminghany closed 5 years ago

leiminghany commented 5 years ago

Steps to reproduce using vim

ssh gitlab@localhost
Last login: Wed Jul 10 18:14:54 2019 from ::1
[gitlab@localhost ~]$ vim  # it runs ok.
[gitlab@localhost ~]$ screen  # run `screen` command into a screen
[gitlab@localhost ~]$ vim  # it runs bad.

Actual behaviour

shown when is ok:


                                                                               │[in]: ~/
                                                                               │ bin/
                                                                               │ gdk-ce/
    #########         #########         #########         #########         ##↷│ git/
    ###(_)###  [`'`'] ##\`.'/##  ':v:`  ##/\:/\##  |:+:|  ##':v:`##  \`.'/  ##↷│ golang/
    ###| |###   |::|  ##(o:o)##  (o:0)  #/(o:o)\#  (o:o)  ##(o:0)##  (o:o)  ##↷│ gotest/
    ###|_|###   |::|  ###\:/:\#   (:)   ###(:)###   (:)   ###(:)###   \:/:\ ##↷│ ruby/
    #########         ####"####         #########         #########    "    ##↷│ test/
                                                                              ↷│ yarntest/
                                   version : 1.2.0-dev   by : spacevim.org    ↷│ explore_gitlab.sh
                                                                               │ install.sh
                                                                               │ screenlog.0
   [e]  <empty buffer>                                                         │~
                                                                               │~
   My most recently used files in the current directory:                       │~
                                                                               │~
   [0]  install.sh                                                             │~
   [1]  .bashrc                                                                │~
   [2]  .bash_profile                                                          │~
   [3]  yarntest/myjest/sum.test.js                                            │~
   [4]  gdk-ce/gitlab/yarn.lock                                                │~
   [5]  gdk-ce/gitlab/spec/frontend/lib/utils/forms_spec.js                    │~
                                                                               │~
   My most recently used files:                                                │~
                                                                               │~
   [6]  ~/install.sh                                                           │~
   [7]  ~/.bashrc                                                              │~
   [8]  ~/.bash_profile                                                        │~
   [9]  ~/yarntest/myjest/sum.test.js                                          │~
   [10] ~/gdk-ce/gitlab/yarn.lock                                              │~
   [11] ~/gdk-ce/gitlab/spec/frontend/lib/utils/forms_spec.js                  │~
                                                                               │~
   [q]  <quit>                                                                 │~
~                                                                              │~
~                                                                              │~
~                                                                              │~
~                                                                              │~
~                                                                              │~
~                                                                              │~
 1  startify                                                                     2  vimfiler

shown screen is bad when in screen control

                                                                               │[in]: ~/
                                                                              │  bin/
                                                                             │  gdk-ce/
     ______                                                                    git/
     \  ___)                                                                  golang/
      \ \   ______  __  ____   __ ___  ____  _   _   _                       gotest/
       > > (  __  )/  \/ /\ \ / // __)/ ___)| | | | | |                     ruby/
      / /__ | || |( ()  <  \ v / > _)( (__  | | | |_| |                    test/
     /_____)|_||_| \__/\_\  > <  \___)\__ \  \_)| ._,_|                   yarntest/
                           / ^ \        _) )    | |                      explore_gitlab.sh
                          /_/ \_\      (__/     |_|                      install.sh
                                                                         screenlog.0
            version : 1.2.0-dev   by : spacevim.org                     ~
                                                                              │ ~
                                                                             │  ~
   [e]  <empty buffer>                                                         │~
                                                                              │ ~
   My most recently used files in the current directory:                       │~
                                                                              │ ~
   [0]  install.sh                                                             │~
   [1]  .bashrc                                                                │~
   [2]  .bash_profile                                                          │~
   [3]  yarntest/myjest/sum.test.js                                            │~
   [4]  gdk-ce/gitlab/yarn.lock                                                │~
   [5]  gdk-ce/gitlab/spec/frontend/lib/utils/forms_spec.js                    │~
                                                                              │ ~
   My most recently used files:                                                │~
                                                                              │ ~
   [6]  ~/install.sh                                                           │~
   [7]  ~/.bashrc                                                              │~
   [8]  ~/.bash_profile                                                        │~
   [9]  ~/yarntest/myjest/sum.test.js                                          │~
   [10] ~/gdk-ce/gitlab/yarn.lock                                              │~
   [11] ~/gdk-ce/gitlab/spec/frontend/lib/utils/forms_spec.js                  │~
                                                                              │ ~
   [q]  <quit>                                                                 │~
~                                                                              │~
~                                                                             │ ~
~                                                                            │  ~
 1  startify                                                                     2  vimfiler

Expected behaviour

the second printful page should be the same as the first one.

justinmk commented 5 years ago
  • $TERM:xterm

This is incorrect, the TERM for screen is screen-256color or screen.

leiminghany commented 5 years ago

sorry , this should be reported to SpaceVim/SpaceVim project. it is my mistake operation. the admin can delete this issue since I have not permit to do it .