import "v.io/x/ref/examples/tunnel/internal"
Package internal defines common types and functions used by both tunnel clients and servers.
EnterRawTerminalMode uses stty to enter the terminal into raw mode; stdin is unbuffered, local echo of input characters is disabled, and special signal characters are disabled. Returns a string which may be passed to RestoreTerminalSettings to restore to the original terminal settings.
Forward forwards data read from net.Conn to a TunnelForwardClientStream or a TunnelForwardServerStream.
RestoreTerminalSettings uses stty to restore the terminal to the original settings, taking the saved settings returned by EnterRawTerminalMode.
SetWindowSize sets the terminal's window size.
Winsize defines the window size used by ioctl TIOCGWINSZ and TIOCSWINSZ.
GetWindowSize gets the terminal's window size.
Package internal imports 9 packages (graph) and is imported by 6 packages. Updated 2018-08-31. Refresh now. Tools for package owners.