Documentation ¶
Index ¶
- Constants
- Variables
- func CloseDescriptor(fd int)
- func DumpcapExt(dumpcapBin string, tsharkBin string, args ...string) error
- func Dup2(fd int, fd2 int) error
- func FileRegularOrLink(filename string) bool
- func IsSigCont(sig os.Signal) bool
- func IsSigTSTP(sig os.Signal) bool
- func IsSigUSR1(sig os.Signal) bool
- func IsSigUSR2(sig os.Signal) bool
- func PickFile() (string, error)
- func PickFileError(e string) error
- func ProcessProgress(pid int, filename string) (int64, int64, error)
- func RegisterForSignals(ch chan<- os.Signal)
- func StopMyself() error
- type NotImplementedError
Constants ¶
View Source
const HaveFdinfo = true
Variables ¶
View Source
var CopyToClipboard = []string{"xsel", "-i", "-b"}
View Source
var FileNotOpenError = fmt.Errorf("Could not find file among descriptors")
View Source
var NoPicker error = fmt.Errorf("No file picker available")
View Source
var NotImplemented = NotImplementedError{}
View Source
var OpenURL = []string{"xdg-open"}
View Source
var ParseError = fmt.Errorf("Could not match file position")
Functions ¶
func CloseDescriptor ¶
func CloseDescriptor(fd int)
func DumpcapExt ¶
DumpcapExt will run dumpcap first, but if it fails, run tshark. Intended as a special case to allow termshark -i <iface> to use dumpcap if possible, but if it fails (e.g. iface==randpkt), fall back to tshark. dumpcap is more efficient than tshark at just capturing, and will drop fewer packets, but tshark supports extcap interfaces.
func FileRegularOrLink ¶
func PickFileError ¶
func ProcessProgress ¶
current, max
func RegisterForSignals ¶
func StopMyself ¶
func StopMyself() error
Types ¶
type NotImplementedError ¶
type NotImplementedError struct{}
func (NotImplementedError) Error ¶
func (e NotImplementedError) Error() string
Click to show internal directories.
Click to hide internal directories.