xTerm on pseudo terminal hast no output
I hope this is the right forum for my issue.
I'm writing a programm in c++ and want a interactiv way to communicate with it. The program opens a pseudo terminal(pt) in read/write mode and after that it forcs and opens a xTerm instance with the -Sccn option.
After playing around with the ps options like ICANON and ECHO I got a running example in raw mode but then I have to implement the line discipline and the erasing characters an so on on my self.
I don't want to do this :-)
What I want is to get a Xterm/pt connection to my application where only line will be transmitted and signals and erase chars are processed.
At this time. I have following situation:
Turned ICANON on.
My applications sends a couple of chars to the pt-master (ptm). Nothing will be printed on the xTerm.
If I type some chars into the xTerm window, my application receives them. (char after char ... no CR or else) The chars I typed not even printed in the xTerm window.
If nothing is to read the read() funktion returns -1.
Here are the code of the opening and configurating the pt.
More than 70 views and not one idea... kind of depressing :-(
This cant be as hard as it looks.
hmmpf .... continue searching for an answer....
are you writing using the ncurses api?
No I don't use ncurses and I wont use it because its like breaking a nut with a sledgehammer. I read, that the most people use the raw mode but I can't find an example or anything about the use of the canonical mode. This feature is like a unloved child. Hard to figure out why.
Since I'm searching for a solution I think nobody ever uses this feature. I hope somebody has any idea. But I guess nobody has....
|All times are GMT -5. The time now is 01:53 AM.|