github.com/chenbh/concourse/v6@v6.4.2/fly/pty/resize_notifier.go (about)

     1  //+build !windows
     2  
     3  package pty
     4  
     5  import (
     6  	"os"
     7  	"os/signal"
     8  	"syscall"
     9  )
    10  
    11  func ResizeNotifier() <-chan os.Signal {
    12  	resized := make(chan os.Signal, 10)
    13  	signal.Notify(resized, syscall.SIGWINCH)
    14  	return resized
    15  }