powerline?
This commit is contained in:
@@ -35,15 +35,12 @@ M.config = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Send raw escape sequence to the terminal, bypassing neovim's terminal handling.
|
-- Send raw escape sequence to the terminal.
|
||||||
-- We spawn a shell process to write directly to the TTY, which bypasses neovim completely.
|
-- For navigation, io.write works fine. For statusline, we need a different approach
|
||||||
|
-- to avoid corruption when the content contains escape sequences.
|
||||||
local function send_to_tty(str)
|
local function send_to_tty(str)
|
||||||
-- Use printf in a subprocess - this writes directly to the terminal
|
io.write(str)
|
||||||
-- The subprocess inherits the TTY and can write to it directly
|
io.flush()
|
||||||
vim.fn.jobstart({ 'printf', '%s', str }, {
|
|
||||||
detach = true,
|
|
||||||
on_exit = function() end,
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Send OSC 51 command to ZTerm for pane navigation
|
-- Send OSC 51 command to ZTerm for pane navigation
|
||||||
|
|||||||
Reference in New Issue
Block a user