Mercurial > vim
comparison src/term.c @ 620:9e359e5759f6 v7.0177
updated for version 7.0177
author | vimboss |
---|---|
date | Wed, 28 Dec 2005 22:39:57 +0000 |
parents | a5fcf36ef512 |
children | 732c7ae5743e |
comparison
equal
deleted
inserted
replaced
619:66263e241ce3 | 620:9e359e5759f6 |
---|---|
3254 * Request version string (for xterm) when needed. | 3254 * Request version string (for xterm) when needed. |
3255 * Only do this after switching to raw mode, otherwise the result will be | 3255 * Only do this after switching to raw mode, otherwise the result will be |
3256 * echoed. | 3256 * echoed. |
3257 * Only do this after termcap mode has been started, otherwise the codes for | 3257 * Only do this after termcap mode has been started, otherwise the codes for |
3258 * the cursor keys may be wrong. | 3258 * the cursor keys may be wrong. |
3259 * Only do this when 'esckeys' is on, otherwise the response causes trouble in | |
3260 * Insert mode. | |
3259 * On Unix only do it when both output and input are a tty (avoid writing | 3261 * On Unix only do it when both output and input are a tty (avoid writing |
3260 * request to terminal while reading from a file). | 3262 * request to terminal while reading from a file). |
3261 * The result is caught in check_termcode(). | 3263 * The result is caught in check_termcode(). |
3262 */ | 3264 */ |
3263 static void | 3265 static void |
3264 may_req_termresponse() | 3266 may_req_termresponse() |
3265 { | 3267 { |
3266 if (crv_status == CRV_GET | 3268 if (crv_status == CRV_GET |
3267 && cur_tmode == TMODE_RAW | 3269 && cur_tmode == TMODE_RAW |
3268 && termcap_active | 3270 && termcap_active |
3271 && p_ek | |
3269 #ifdef UNIX | 3272 #ifdef UNIX |
3270 && isatty(1) | 3273 && isatty(1) |
3271 && isatty(read_cmd_fd) | 3274 && isatty(read_cmd_fd) |
3272 #endif | 3275 #endif |
3273 && *T_CRV != NUL) | 3276 && *T_CRV != NUL) |