https://man7.org/linux/man-pages/man7/pty.7.html
in the "UNIX 98 pseudoterminals" it is said that ptsname can be used (and then open), but this function accepts file descriptor. i tried to put 0 (STDIN) and 1 (STDOUT) in there, but it fails with "Inappropriate ioctl for device". im running my program from gnome-terminal
im not writing another xterm program. just want to have file descriptors for asynchronous (non-blocking) non-canonical low-level input and output.
man 4 ptsto get a fuller understanding of how ptys work and when you would useptsname. From inside a gnome-terminal you directly have access to "slave" filedescriptor and would usettyname()instead.ttynamefunction worked - it returned me/dev/pts/0for both0and1.. so is it a unified input/output "slave" that i mustopenand work on? in windows you create two "handles" withCreateFileAfeeding it withCONIN$andCONOUT$names.. oke, ill go on experimenting..crontask scheduler) then these are set up differently; there's no terminal in this case. It all depends on how the prgram is started as to where 0/1/2 point.isatty()and aborts if not; otherwise the OS does it all for you.