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

fix: Output window remains blank #33

Closed
wants to merge 1 commit into from
Closed

Conversation

macukadam
Copy link

Hey David,

I had this problem with a blank screen (#32 (comment)).

I don't know exactly what causes it, but I've debugged my way around and found that setting pty to true solves the issue at jobstart. Although, the output ends with carriage returns like this:

Some text^M
Some other text^M
Bla bla bla^M
bla bla bla bla^M

So I've added this piece of code to remove it:

if opts.pty then
   -- Remove carriage returns from each line
    for i, line in ipairs(data) do
       data[i] = line:gsub('\r', '')
    end
end

@macukadam macukadam changed the title fix: Output window remains blank #32 fix: Output window remains blank Nov 19, 2023
@macukadam macukadam closed this Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant