comparison src/term.c @ 20223:1e30a8b4ff3f

(encode_terminal_code): Use new macros defined in coding.h. (write_glyphs): Likewise.
author Kenichi Handa <handa@m17n.org>
date Sat, 08 Nov 1997 03:05:44 +0000
parents 8f58b5d12021
children 9ab8e061c0bf
comparison
equal deleted inserted replaced
20222:9823d1d05083 20223:1e30a8b4ff3f
826 /* We have a string in Vglyph_table. */ 826 /* We have a string in Vglyph_table. */
827 len = GLYPH_LENGTH (tbase, g); 827 len = GLYPH_LENGTH (tbase, g);
828 buf = GLYPH_STRING (tbase, g); 828 buf = GLYPH_STRING (tbase, g);
829 } 829 }
830 830
831 if (CODING_MAY_REQUIRE_NO_CONVERSION (&terminal_coding)) 831 if (! CODING_REQUIRE_ENCODING (&terminal_coding))
832 /* We had better avoid sending Emacs' internal code to 832 /* We had better avoid sending Emacs' internal code to
833 terminal. */ 833 terminal. */
834 produced = encode_coding (&safe_terminal_coding, buf, dst, 834 produced = encode_coding (&safe_terminal_coding, buf, dst,
835 len, dst_end - dst, &processed); 835 len, dst_end - dst, &processed);
836 else 836 else
901 } 901 }
902 len -= consumed; 902 len -= consumed;
903 string += consumed; 903 string += consumed;
904 } 904 }
905 /* We may have to output some codes to terminate the writing. */ 905 /* We may have to output some codes to terminate the writing. */
906 if (!CODING_MAY_REQUIRE_NO_CONVERSION (&terminal_coding)) 906 if (CODING_REQUIRE_FLUSHING (&terminal_coding))
907 { 907 {
908 terminal_coding.last_block = 1; 908 terminal_coding.last_block = 1;
909 produced = encode_coding (&terminal_coding, (char *)0, conversion_buffer, 909 produced = encode_coding (&terminal_coding, (char *)0, conversion_buffer,
910 0, conversion_buffer_size, 910 0, conversion_buffer_size,
911 &consumed); 911 &consumed);