zbirenbaum / nvterm

NvChad's Official Terminal Plugin ( Unmaintained but still usable and stable), wait for v3.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"nvterm.terminal.send" does not work on windows as expected

ywwa opened this issue · comments

because \n character is hardcoded, it does not work on windows at it should.
https://github.com/NvChad/nvterm/blob/5ae78fb332e92447121d2af58a6313189a7799fb/lua/nvterm/terminal.lua#LL62C42-L62C42

at the moment. when you send command to terminal it just sends command and waits to be sent
image

function ensure_and_send should know whats operating system is currently running and send right character responsively.
if windows => \r else => \n