Documentation ¶
Overview ¶
Package internal defines common types and functions used by both tunnel clients and servers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnterRawTerminalMode ¶
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.
func Forward ¶
Forward forwards data read from net.Conn to a TunnelForwardClientStream or a TunnelForwardServerStream.
func RestoreTerminalSettings ¶
RestoreTerminalSettings uses stty to restore the terminal to the original settings, taking the saved settings returned by EnterRawTerminalMode.
func SetWindowSize ¶
SetWindowSize sets the terminal's window size.