equal
deleted
inserted
replaced
136 tcgetattr(m_tty_fd, &termdata); |
136 tcgetattr(m_tty_fd, &termdata); |
137 |
137 |
138 // record the original mode so we can restore it again in the destructor. |
138 // record the original mode so we can restore it again in the destructor. |
139 ::ioctl(m_tty_fd, KDGKBMODE, &m_orig_kbmode); |
139 ::ioctl(m_tty_fd, KDGKBMODE, &m_orig_kbmode); |
140 |
140 |
141 // setting this tranlation mode is even needed in INPUT mode to prevent |
141 // setting this translation mode is even needed in INPUT mode to prevent |
142 // the shell from also interpreting codes, if the process has a tty |
142 // the shell from also interpreting codes, if the process has a tty |
143 // attached: e.g. Ctrl+C wouldn't copy, but kill the application. |
143 // attached: e.g. Ctrl+C wouldn't copy, but kill the application. |
144 ::ioctl(m_tty_fd, KDSKBMODE, K_MEDIUMRAW); |
144 ::ioctl(m_tty_fd, KDSKBMODE, K_MEDIUMRAW); |
145 |
145 |
146 // set the tty layer to pass-through |
146 // set the tty layer to pass-through |