Mercurial > hg > xemacs-beta
comparison src/console-tty.c @ 400:a86b2b5e0111 r21-2-30
Import from CVS: tag r21-2-30
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:14:34 +0200 |
parents | 74fd4e045ea6 |
children | b8cc9ab3f761 |
comparison
equal
deleted
inserted
replaced
399:376370fb5946 | 400:a86b2b5e0111 |
---|---|
113 tty_con->is_stdio = 0; | 113 tty_con->is_stdio = 0; |
114 } | 114 } |
115 | 115 |
116 tty_con->instream = make_filedesc_input_stream (tty_con->infd, 0, -1, 0); | 116 tty_con->instream = make_filedesc_input_stream (tty_con->infd, 0, -1, 0); |
117 tty_con->outstream = make_filedesc_output_stream (tty_con->outfd, 0, -1, 0); | 117 tty_con->outstream = make_filedesc_output_stream (tty_con->outfd, 0, -1, 0); |
118 #ifdef MULE | 118 #ifdef FILE_CODING |
119 tty_con->instream = | 119 tty_con->instream = |
120 make_decoding_input_stream (XLSTREAM (tty_con->instream), | 120 make_decoding_input_stream (XLSTREAM (tty_con->instream), |
121 Fget_coding_system (Vkeyboard_coding_system)); | 121 Fget_coding_system (Vkeyboard_coding_system)); |
122 Lstream_set_character_mode (XLSTREAM (tty_con->instream)); | 122 Lstream_set_character_mode (XLSTREAM (tty_con->instream)); |
123 tty_con->outstream = | 123 tty_con->outstream = |
124 make_encoding_output_stream (XLSTREAM (tty_con->outstream), | 124 make_encoding_output_stream (XLSTREAM (tty_con->outstream), |
125 Fget_coding_system (Vterminal_coding_system)); | 125 Fget_coding_system (Vterminal_coding_system)); |
126 #endif /* MULE */ | 126 #endif /* FILE_CODING */ |
127 tty_con->terminal_type = terminal_type; | 127 tty_con->terminal_type = terminal_type; |
128 tty_con->controlling_process = controlling_process; | 128 tty_con->controlling_process = controlling_process; |
129 | 129 |
130 if (NILP (CONSOLE_NAME (con))) | 130 if (NILP (CONSOLE_NAME (con))) |
131 CONSOLE_NAME (con) = Ffile_name_nondirectory (tty); | 131 CONSOLE_NAME (con) = Ffile_name_nondirectory (tty); |