diff options
| author | Paul Eggert | 2011-07-11 18:39:28 +0000 |
|---|---|---|
| committer | Paul Eggert | 2011-07-11 18:39:28 +0000 |
| commit | e9eb6f14fe334d0e37d2037c952e6541eeb242ad (patch) | |
| tree | 7087ce37a1e6233093f80a4fa653e91a1f96529c /src/term.c | |
| parent | e3c25c689524aa85ce37840fff344cc297cf42ec (diff) | |
| parent | 07151e498ff9174518675e14b619aca4b8307733 (diff) | |
| download | emacs-e9eb6f14fe334d0e37d2037c952e6541eeb242ad.tar.gz emacs-e9eb6f14fe334d0e37d2037c952e6541eeb242ad.zip | |
Merge from trunk.
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/term.c b/src/term.c index be23e547514..b9f10b122a7 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -3505,55 +3505,6 @@ use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ | |||
| 3505 | Down (tty) = 0; | 3505 | Down (tty) = 0; |
| 3506 | } | 3506 | } |
| 3507 | 3507 | ||
| 3508 | /* Special handling for certain terminal types known to need it */ | ||
| 3509 | |||
| 3510 | if (!strcmp (terminal_type, "supdup")) | ||
| 3511 | { | ||
| 3512 | terminal->memory_below_frame = 1; | ||
| 3513 | tty->Wcm->cm_losewrap = 1; | ||
| 3514 | } | ||
| 3515 | if (!strncmp (terminal_type, "c10", 3) | ||
| 3516 | || !strcmp (terminal_type, "perq")) | ||
| 3517 | { | ||
| 3518 | /* Supply a makeshift :wi string. | ||
| 3519 | This string is not valid in general since it works only | ||
| 3520 | for windows starting at the upper left corner; | ||
| 3521 | but that is all Emacs uses. | ||
| 3522 | |||
| 3523 | This string works only if the frame is using | ||
| 3524 | the top of the video memory, because addressing is memory-relative. | ||
| 3525 | So first check the :ti string to see if that is true. | ||
| 3526 | |||
| 3527 | It would be simpler if the :wi string could go in the termcap | ||
| 3528 | entry, but it can't because it is not fully valid. | ||
| 3529 | If it were in the termcap entry, it would confuse other programs. */ | ||
| 3530 | if (!tty->TS_set_window) | ||
| 3531 | { | ||
| 3532 | const char *m = tty->TS_termcap_modes; | ||
| 3533 | while (*m && strcmp (m, "\033v ")) | ||
| 3534 | m++; | ||
| 3535 | if (*m) | ||
| 3536 | tty->TS_set_window = "\033v%C %C %C %C "; | ||
| 3537 | } | ||
| 3538 | /* Termcap entry often fails to have :in: flag */ | ||
| 3539 | terminal->must_write_spaces = 1; | ||
| 3540 | /* :ti string typically fails to have \E^G! in it */ | ||
| 3541 | /* This limits scope of insert-char to one line. */ | ||
| 3542 | strcpy (area, tty->TS_termcap_modes); | ||
| 3543 | strcat (area, "\033\007!"); | ||
| 3544 | tty->TS_termcap_modes = area; | ||
| 3545 | area += strlen (area) + 1; | ||
| 3546 | p = AbsPosition (tty); | ||
| 3547 | /* Change all %+ parameters to %C, to handle | ||
| 3548 | values above 96 correctly for the C100. */ | ||
| 3549 | while (*p) | ||
| 3550 | { | ||
| 3551 | if (p[0] == '%' && p[1] == '+') | ||
| 3552 | p[1] = 'C'; | ||
| 3553 | p++; | ||
| 3554 | } | ||
| 3555 | } | ||
| 3556 | |||
| 3557 | tty->specified_window = FrameRows (tty); | 3508 | tty->specified_window = FrameRows (tty); |
| 3558 | 3509 | ||
| 3559 | if (Wcm_init (tty) == -1) /* can't do cursor motion */ | 3510 | if (Wcm_init (tty) == -1) /* can't do cursor motion */ |