Managing and using PTSes

view story

http://www.unix.com – Hello. I need to simulate a few serial links (doing a simulation of an application for a robot) and found socat which, at least with minicom, is working flawlessly. I would really like to make pts static: ie same numbers between reboots, and automatic (not me opening terminals and leaving them with empty socat windows). Is there a way for this? Or maybe there is a (super easy!) way of replicating what socat does inside my own program so that I don't have to start multiple executables? I also have problems with the ports themselves, don't know if these problems stem from the fact they are v (HowTos)