Monday, 27 May 2013

termios default for standard terminal session

termios default for standard terminal session

I would like to create a new pty session in linux, like as gnome-terminal xterm and others do. Half of my task is works, i created a pty session with openpty, fork()-ed a process, child use the slave FD, and the remaining process terminal attach to anetwork socket. Through the network i can connect to "remote terminal", but it's not working correctly. There is no echo, and character sended after enter pressed (so i cant navigate in nano, mc, etc). The termios struct setted up with cfmakeraw(struct termios) . The Question: what is the default termios settings in a default session like in gnome-terminal and others. sorry for my englis. thanks for help.

No comments:

Post a Comment