pty
pty copied to clipboard
README examples fix
In the README shell example, there is a line:
ptmx, err := pty.Start(c)
but maybe ptm is better than ptmx to be used as the variable name.
Because ptmx means "pseudoterminal multiplexor", which is used to create a pseudoterminal master and slave pair.(https://man7.org/linux/man-pages/man4/pts.4.html) Here, we just get a pseudoterminal master by calling pty.Start(c). So, maybe ptm is better.