What you write to that file goes to the fake terminal and you can read anything that is sent from the program connected to the terminal. ![]() To the creator, though, it is just another file. To the client, it looks like any other terminal device. These special files were made to feed data to programs that expect to accept data from a terminal. The feature in question is what’s known as pseudoterminal or sometimes a pty or pts. In theory, you could create over 200 ports, but the reality is you will probably want to stick with fewer. But I’m going to show you how you can use a very interesting Linux feature to turn one serial port from a microcontroller into a bunch of virtual ports. ![]() Like most things in life, it really isn’t infinite.
0 Comments
Leave a Reply. |