1 |
/* Terminal control module for terminals described by TERMCAP |
/* Terminal control module for terminals described by TERMCAP |
2 |
Copyright (C) 1985, 86, 87, 93, 94, 95, 98, 2000, 2001, 2002 |
Copyright (C) 1985, 86, 87, 93, 94, 95, 98, 2000, 2001, 2002, 2005 |
3 |
Free Software Foundation, Inc. |
Free Software Foundation, Inc. |
4 |
|
|
5 |
This file is part of GNU Emacs. |
This file is part of GNU Emacs. |
869 |
if (! STRING_MULTIBYTE (string)) |
if (! STRING_MULTIBYTE (string)) |
870 |
string = string_to_multibyte (string); |
string = string_to_multibyte (string); |
871 |
nbytes = buf - encode_terminal_buf; |
nbytes = buf - encode_terminal_buf; |
872 |
if (nbytes + SBYTES (string) < encode_terminal_bufsize) |
if (encode_terminal_bufsize < nbytes + SBYTES (string)) |
873 |
{ |
{ |
874 |
encode_terminal_bufsize = nbytes + SBYTES (string); |
encode_terminal_bufsize = nbytes + SBYTES (string); |
875 |
encode_terminal_buf = xrealloc (encode_terminal_buf, |
encode_terminal_buf = xrealloc (encode_terminal_buf, |