tty

package
v0.0.0-...-376b590 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Getty

func Getty(args []string)

weirdness here - all getty really has to do for us is spawn a process with a certain tty as std{in,out,err} - seems to accomplish as much as mingetty. this is probably because serial consoles aren't a thing anymore. granted, this might be completely the wrong thing to do, but it seems to work

func Tty

func Tty(args []string)

tty just displays the name of the current tty. the best way to do this on Linux is to open up proc/self/fd/0, which is a symlink to the tty (or pty) that the program is attached to.

Types

This section is empty.

Jump to

Keyboard shortcuts

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