Mercurial > hg > xemacs-beta
comparison src/console-tty.c @ 5814:a216b3c2b09e
Add TLS support. See xemacs-patches message with ID
<CAHCOHQk6FNm2xf=XiGEpPq43+7WOzNZ=SuD9V79o3wb9WVCTrQ@mail.gmail.com>.
author | Jerry James <james@xemacs.org> |
---|---|
date | Tue, 07 Oct 2014 21:16:10 -0600 |
parents | 56144c8593a8 |
children |
comparison
equal
deleted
inserted
replaced
5813:36dddf9d90d1 | 5814:a216b3c2b09e |
---|---|
135 signal_error (Qio_error, "Unable to open tty", tty); | 135 signal_error (Qio_error, "Unable to open tty", tty); |
136 tty_con->is_stdio = 0; | 136 tty_con->is_stdio = 0; |
137 } | 137 } |
138 | 138 |
139 /* set_descriptor_non_blocking (tty_con->infd); */ | 139 /* set_descriptor_non_blocking (tty_con->infd); */ |
140 tty_con->instream = make_filedesc_input_stream (tty_con->infd, 0, -1, 0); | 140 tty_con->instream = make_filedesc_input_stream (tty_con->infd, 0, -1, 0, |
141 NULL); | |
141 Lstream_set_buffering (XLSTREAM (tty_con->instream), LSTREAM_UNBUFFERED, 0); | 142 Lstream_set_buffering (XLSTREAM (tty_con->instream), LSTREAM_UNBUFFERED, 0); |
142 tty_con->instream = | 143 tty_con->instream = |
143 make_coding_input_stream (XLSTREAM (tty_con->instream), | 144 make_coding_input_stream (XLSTREAM (tty_con->instream), |
144 get_coding_system_for_text_file (Qkeyboard, 0), | 145 get_coding_system_for_text_file (Qkeyboard, 0), |
145 CODING_DECODE, | 146 CODING_DECODE, |
146 LSTREAM_FL_READ_ONE_BYTE_AT_A_TIME); | 147 LSTREAM_FL_READ_ONE_BYTE_AT_A_TIME); |
147 Lstream_set_buffering (XLSTREAM (tty_con->instream), LSTREAM_UNBUFFERED, 0); | 148 Lstream_set_buffering (XLSTREAM (tty_con->instream), LSTREAM_UNBUFFERED, 0); |
148 tty_con->outstream = make_filedesc_output_stream (tty_con->outfd, 0, -1, 0); | 149 tty_con->outstream = make_filedesc_output_stream (tty_con->outfd, 0, -1, 0, |
150 NULL); | |
149 tty_con->outstream = | 151 tty_con->outstream = |
150 make_coding_output_stream (XLSTREAM (tty_con->outstream), | 152 make_coding_output_stream (XLSTREAM (tty_con->outstream), |
151 get_coding_system_for_text_file (Qterminal, 0), | 153 get_coding_system_for_text_file (Qterminal, 0), |
152 CODING_ENCODE, 0); | 154 CODING_ENCODE, 0); |
153 tty_con->terminal_type = terminal_type; | 155 tty_con->terminal_type = terminal_type; |