Documentation
¶
Overview ¶
Package attach is the half of dv that owns a terminal.
It does not know that dv talks to a database, what a datasource is, or what any of the cells it draws mean. It sends what the terminal did and draws what comes back, which is what keeps it unaffected by anything the session on the other side chooses to do.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Version must match the server's exactly.
Version string
// WorkDir and DataSource are what this invocation asked for, passed on so
// the server can build or move the session.
WorkDir string
DataSource string
// Screen is the terminal. Nil makes a real one, which is the ordinary
// case; a test supplies a simulation screen and keeps it afterwards.
Screen tcell.Screen
// Err is where the server's warnings are printed. Nil discards them.
Err io.Writer
}
Click to show internal directories.
Click to hide internal directories.