aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorStefan Monnier2010-04-12 22:19:17 -0400
committerStefan Monnier2010-04-12 22:19:17 -0400
commit84164a0dc12bacef378a267e7f2b18dd371be16f (patch)
treed85210358273b9f59cdc54b26c5a70d7a2e89b16 /src/term.c
parent2b0a91e78f83fb446cc38efb99399e83ad2cded3 (diff)
downloademacs-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.c30
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\
3600If that is not the actual type of terminal you have,\n\ 3599If that is not the actual type of terminal you have,\n\
3601use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ 3600use 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"
3603to 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\
3609If that is not the actual type of terminal you have,\n\
3610use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
3611`setenv TERM ...') to specify the correct type. It may be necessary\n\
3612to 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\
3883It lacks the ability to position the cursor.\n\ 3875It lacks the ability to position the cursor.\n\
3884If that is not the actual type of terminal you have,\n\ 3876If that is not the actual type of terminal you have,\n\
3885use the Bourne shell command `TERM=... export TERM' (C-shell:\n\ 3877use 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"
3887to 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.",
3890It lacks the ability to position the cursor.\n\
3891If that is not the actual type of terminal you have,\n\
3892use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
3893`setenv TERM ...') to specify the correct type. It may be necessary\n\
3894to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.",
3895# endif /* TERMINFO */ 3883# endif /* TERMINFO */
3896 terminal_type); 3884 terminal_type);
3897 } 3885 }