mirror of
https://github.com/moby/moby.git
synced 2026-07-13 11:00:42 +00:00
`copyEscapable` is a copy/paste of io.Copy with some added handling for checking for the attach escape sequence. This removes the copy/paste and uses `io.Copy` directly. To be able to do this, it now implements an `io.Reader` which proxies to the main reader but looks for the escape sequence. Signed-off-by: Brian Goff <cpuguy83@gmail.com>