diff options
| author | Stefan Monnier | 2010-04-12 22:19:17 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-04-12 22:19:17 -0400 |
| commit | 84164a0dc12bacef378a267e7f2b18dd371be16f (patch) | |
| tree | d85210358273b9f59cdc54b26c5a70d7a2e89b16 /src/term.c | |
| parent | 2b0a91e78f83fb446cc38efb99399e83ad2cded3 (diff) | |
| download | emacs-84164a0dc12bacef378a267e7f2b18dd371be16f.tar.gz emacs-84164a0dc12bacef378a267e7f2b18dd371be16f.zip | |
(init_tty): Move common text outside of #ifdef TERMINFO.
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/src/term.c b/src/term.c index 718a20d4164..df7dc9ee464 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -3593,25 +3593,18 @@ init_tty (char *name, char *terminal_type, int must_succeed) | |||
| 3593 | } | 3593 | } |
| 3594 | if (status == 0) | 3594 | if (status == 0) |
| 3595 | { | 3595 | { |
| 3596 | #ifdef TERMINFO | ||
| 3597 | maybe_fatal (must_succeed, terminal, | 3596 | maybe_fatal (must_succeed, terminal, |
| 3598 | "Terminal type %s is not defined", | 3597 | "Terminal type %s is not defined", |
| 3599 | "Terminal type %s is not defined.\n\ | 3598 | "Terminal type %s is not defined.\n\ |
| 3600 | If that is not the actual type of terminal you have,\n\ | 3599 | If that is not the actual type of terminal you have,\n\ |
| 3601 | use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ | 3600 | use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ |
| 3602 | `setenv TERM ...') to specify the correct type. It may be necessary\n\ | 3601 | `setenv TERM ...') to specify the correct type. It may be necessary\n" |
| 3603 | to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.", | 3602 | #ifdef TERMINFO |
| 3604 | terminal_type); | 3603 | "to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.", |
| 3605 | #else | 3604 | #else |
| 3606 | maybe_fatal (must_succeed, terminal, | 3605 | "to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.", |
| 3607 | "Terminal type %s is not defined", | ||
| 3608 | "Terminal type %s is not defined.\n\ | ||
| 3609 | If that is not the actual type of terminal you have,\n\ | ||
| 3610 | use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ | ||
| 3611 | `setenv TERM ...') to specify the correct type. It may be necessary\n\ | ||
| 3612 | to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.", | ||
| 3613 | terminal_type); | ||
| 3614 | #endif | 3606 | #endif |
| 3607 | terminal_type); | ||
| 3615 | } | 3608 | } |
| 3616 | 3609 | ||
| 3617 | #ifndef TERMINFO | 3610 | #ifndef TERMINFO |
| @@ -3878,20 +3871,15 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.", | |||
| 3878 | { | 3871 | { |
| 3879 | maybe_fatal (must_succeed, terminal, | 3872 | maybe_fatal (must_succeed, terminal, |
| 3880 | "Terminal type \"%s\" is not powerful enough to run Emacs", | 3873 | "Terminal type \"%s\" is not powerful enough to run Emacs", |
| 3881 | # ifdef TERMINFO | ||
| 3882 | "Terminal type \"%s\" is not powerful enough to run Emacs.\n\ | 3874 | "Terminal type \"%s\" is not powerful enough to run Emacs.\n\ |
| 3883 | It lacks the ability to position the cursor.\n\ | 3875 | It lacks the ability to position the cursor.\n\ |
| 3884 | If that is not the actual type of terminal you have,\n\ | 3876 | If that is not the actual type of terminal you have,\n\ |
| 3885 | use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ | 3877 | use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ |
| 3886 | `setenv TERM ...') to specify the correct type. It may be necessary\n\ | 3878 | `setenv TERM ...') to specify the correct type. It may be necessary\n" |
| 3887 | to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.", | 3879 | # ifdef TERMINFO |
| 3880 | "to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.", | ||
| 3888 | # else /* TERMCAP */ | 3881 | # else /* TERMCAP */ |
| 3889 | "Terminal type \"%s\" is not powerful enough to run Emacs.\n\ | 3882 | "to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.", |
| 3890 | It lacks the ability to position the cursor.\n\ | ||
| 3891 | If that is not the actual type of terminal you have,\n\ | ||
| 3892 | use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ | ||
| 3893 | `setenv TERM ...') to specify the correct type. It may be necessary\n\ | ||
| 3894 | to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.", | ||
| 3895 | # endif /* TERMINFO */ | 3883 | # endif /* TERMINFO */ |
| 3896 | terminal_type); | 3884 | terminal_type); |
| 3897 | } | 3885 | } |