system

package
v2.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func DumpcapExt(dumpcapBin string, tsharkBin string, args ...string) error

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 Dup2

func Dup2(fd int, fd2 int) error
func FileRegularOrLink(filename string) bool

func IsSigCont

func IsSigCont(sig os.Signal) bool

func IsSigTSTP

func IsSigTSTP(sig os.Signal) bool

func IsSigUSR1

func IsSigUSR1(sig os.Signal) bool

func IsSigUSR2

func IsSigUSR2(sig os.Signal) bool

func PickFile

func PickFile() (string, error)

func PickFileError

func PickFileError(e string) error

func ProcessProgress

func ProcessProgress(pid int, filename string) (int64, int64, error)

current, max

func RegisterForSignals

func RegisterForSignals(ch chan<- os.Signal)

func StopMyself

func StopMyself() error

Types

type NotImplementedError

type NotImplementedError struct{}

func (NotImplementedError) Error

func (e NotImplementedError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL