Mercurial > hg > xemacs-beta
comparison src/console-tty.c @ 5922:4b055de36bb9 cygwin
merging heads 2
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Fri, 27 Feb 2015 17:47:15 +0000 |
parents | a216b3c2b09e |
children |
comparison
equal
deleted
inserted
replaced
5921:68639fb08af8 | 5922:4b055de36bb9 |
---|---|
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; |