shell

shell

  • Problema do ctrl+c no terminal

    Por algum motivo bizarro que não sei explicar, comecei a ter problema pra matar os programas rodando no terminal com ctrl+c.

      
    ❯ ping 10.4.6.101
    PING 10.4.6.101 (10.4.6.101) 56(84) bytes of data.
    ^C^[^C^[^C^[^C^[^C^\^\^\^\
    
    ^C^C^Cfish: Job 1, 'ping 10.4.6.101' terminated by signal SIGKILL (Forced quit)    
     
    

    Tentei de tudo: ctrl+alt+c, ctrl+alt+\, etc. Nenhum resultado adiantou e precisei sempre abrir outro terminal e mandar um kill no processo.

    Mas hoje eu achei um artigo que corrigiu o problema:

    Então bastou um simples stty sane pra resolver de vez o problema.

      
    ❯ stty sane
    ❯ ping 10.4.6.101
    PING 10.4.6.101 (10.4.6.101) 56(84) bytes of data.
    ^C
    --- 10.4.6.101 ping statistics ---
    2 packets transmitted, 0 received, 100% packet loss, time 1014ms
     
    
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.