Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The cursor sometimes disappears in VSCode terminal window #84880

Closed
dougliu1111 opened this issue Nov 15, 2019 · 5 comments
Closed

The cursor sometimes disappears in VSCode terminal window #84880

dougliu1111 opened this issue Nov 15, 2019 · 5 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@dougliu1111
Copy link

  • VSCode Version: 1.40.1
  • OS Version: MacOS 10.14.6

Steps to Reproduce:

  1. Open VSCode
  2. Click "terminal" on tool bar
  3. Click "new terminal"
  4. Enter vim edit the file content. The cursor sometimes disappears in the terminal window.
    4.1 The cursor initially displayed but it disappear after move the cursor upward or downward.
  5. The same issue also appears in basic Unix command such as cat
    5.1 Clear the screen in terminal window
    5.2 Enter cat > test
    5.3 Press "Enter" button, and the cursor has disappeared.
    5.4 Randomly type content and press "Enter" button, the cursor appears occasionally.

There is no plugin set for my VIM. The vimrc is empty.
VIM version:

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 19 2019 19:08:44)
Included patches: 1-503, 505-680, 682-1283, 1365
Compiled by root@apple.com
Normal version without GUI.  Features included (+) or not (-):
+acl             +file_in_path    -mouse_sgr       +tag_old_static
-arabic          +find_in_path    -mouse_sysmouse  -tag_any_white
+autocmd         +float           -mouse_urxvt     -tcl
-balloon_eval    +folding         +mouse_xterm     -termguicolors
-browse          -footer          +multi_byte      -terminal
+builtin_terms   +fork()          +multi_lang      +terminfo
+byte_offset     -gettext         -mzscheme        +termresponse
+channel         -hangul_input    +netbeans_intg   +textobjects
+cindent         +iconv           +num64           +timers
-clientserver    +insert_expand   +packages        +title
-clipboard       +job             +path_extra      -toolbar
+cmdline_compl   +jumplist        -perl            +user_commands
+cmdline_hist    -keymap          +persistent_undo +vertsplit
+cmdline_info    +lambda          +postscript      +virtualedit
+comments        -langmap         +printer         +visual
-conceal         +libcall         -profile         +visualextra
+cryptv          +linebreak       +python/dyn      +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con      -lua             -rightleft       +windows
+diff            +menu            +ruby/dyn        +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
-emacs_tags      -mouseshape      +startuptime     -xpm
+eval            -mouse_dec       +statusline      -xsmp
+ex_extra        -mouse_gpm       -sun_workshop    -xterm_clipboard
+extra_search    -mouse_jsbterm   +syntax          -xterm_save
-farsi           -mouse_netterm   +tag_binary
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X_UNIX  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -L/usr/local/lib -o vim        -lm -lncurses  -liconv -framework Cocoa

Does this issue occur when all extensions are disabled?: Yes

@Tyriar
Copy link
Member

Tyriar commented Nov 17, 2019

Can you share your settings.json file? Does setting this help?

  "workbench.colorCustomizations": {
    "terminalCursor.foreground": "#ff0000",
    "terminalCursor.background": "#0000ff"
  },

@Tyriar Tyriar added the info-needed Issue requires more information from poster label Nov 17, 2019
@dougliu1111
Copy link
Author

Here is my settings.json file. I have tried add the content to setting.json and the problem is not resolved.

{
    "search.quickOpen.includeHistory": false,
    "workbench.startupEditor": "newUntitledFile",
    "editor.detectIndentation": false,
    "editor.insertSpaces": true,
    "editor.multiCursorModifier": "ctrlCmd",
    "editor.fontSize": 14,
    "editor.formatOnPaste": true,
    "editor.tabSize": 4,
    "files.trimTrailingWhitespace": true,
    "workbench.colorTheme": "One Dark Pro",
    "workbench.editor.enablePreview": false,
    "window.zoomLevel": 0,
    "editor.wordWrapColumn": 80,
    "editor.wordWrap": "on",
    "editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",
    "explorer.confirmDelete": false,
    "git.autofetch": true,
    "git.ignoreMissingGitWarning": true,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "java.configuration.checkProjectSettingsExclusions": false,
    "java.home": "/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home",
    "files.associations": {
        "*.cls": "apex",
        "*.java": "java"
    },
    "terminal.integrated.rendererType": "dom",
}

@ycs77
Copy link

ycs77 commented Nov 18, 2019

I have the same problem

  • VSCode Version: 1.40.1
  • OS Version: Windows 10

This is my setting code:

{
  "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
  "terminal.integrated.shellArgs.windows": [
    "--login",
    "-i"
  ],
  "terminal.integrated.rendererType": "dom"
}

But I found that if I don't set terminal.integrated.rendererType, will be normal status:

{
  "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
  "terminal.integrated.shellArgs.windows": [
    "--login",
    "-i"
  ]
}

@vscodebot vscodebot bot removed the new release label Nov 18, 2019
@dougliu1111
Copy link
Author

Thank you. The problem resolved after delete this line from setting.json.
"terminal.integrated.rendererType": "dom"

@dougliu1111
Copy link
Author

Problem resolved.

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants