How can I obtain the nerdctl pull output with raw terminal sequences included?
              
              #2634
            
            
              
                Unanswered
              
          
                  
                    
                      shivabohemian
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I aim to retrieve the output logs of the
nerdctl pull 'image:tag'command to transmit them to the client's terminal using WebSocket. To accomplish this, I have started a pty (for example, using https://github.com/creack/pty) to execute the pull command and capture its output.What perplexes me is that the output obtained with pty lacks control sequences for cursor movement and screen clearing. I observe these control sequences, such as
[1A�[2K], in theoutput.txtfile generated by the commandnerdctl pull nginx >output.txt 2>output.txt. However, I am unable to capture them using pty. Why is this happening? Could you provide guidance on what steps I should take? Thanks!Beta Was this translation helpful? Give feedback.
All reactions