pty icon indicating copy to clipboard operation
pty copied to clipboard

README examples fix

Open Anthony6075 opened this issue 3 years ago • 0 comments

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.

Anthony6075 avatar Jun 04 '22 10:06 Anthony6075