Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.64k stars 578 forks source link

Neovim Qt headless process #1142

Open grygus opened 7 years ago

grygus commented 7 years ago

Versions

ConEmu build: 170402 x32/x64 OS version: Windows 10 x32/x64 Used shell version (cmd): ???

Problem description

When embeding Neo Vim Qt application with command alias nvim="Neovim\bin\nvim-qt.exe" $* -new_console:s50H

Qt window is embeded properly, but it opens another separated CMD window with nvim.exe proces.

Indeed Qt process spawn nvim.exe process but in headless mode so why it spawns separated cmd window when embedding?

Steps to reproduce

  1. Start neovim with [alias nvim="Neovim\bin\nvim-qt.exe" $* -new_console:s50H]
Maximus5 commented 7 years ago
grygus commented 7 years ago

I use cmd in WIndows 10 1703 Insider build 15062.296 it is the same for legacy on/off Neovim is latest official version from
https://github.com/neovim/neovim/wiki/Installing-Neovim

I tested all neovim builds Release (v0.2) and Development

yuzvir commented 6 years ago

I've found the quick workaround for this. You can fix PE Header in nvim.exe and change its Subsystem from 'Windows Console' (3) to 'Windows GUI' (2). It can be easily made by any hexeditor, just change the byte at position 0xDC from 0x03 to 0x02