Deleted Added
full compact
terminal.c (1574) terminal.c (3285)
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Christos Zoulas of Cornell University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 121 unchanged lines hidden (view full) ---

130 { "19200", B19200 },
131#endif
132#ifdef EXTB
133 { "38400", EXTB },
134#endif
135#ifdef B38400
136 { "38400", B38400 },
137#endif
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Christos Zoulas of Cornell University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 121 unchanged lines hidden (view full) ---

130 { "19200", B19200 },
131#endif
132#ifdef EXTB
133 { "38400", EXTB },
134#endif
135#ifdef B38400
136 { "38400", B38400 },
137#endif
138#ifdef B57600
139 { "57600", B57600 },
140#endif
141#ifdef B115200
142 { "115200", B115200 },
143#endif
138 { NULL, 0 }
139};
140
141private struct termcapstr {
142 char *name;
143 char *long_name;
144} tstr[] = {
145

--- 683 unchanged lines hidden (view full) ---

829 term = "dumb";
830
831 memset(el->el_term.t_cap, 0, TC_BUFSIZE);
832
833 i = tgetent(el->el_term.t_cap, term);
834
835 if (i <= 0) {
836 if (i == -1)
144 { NULL, 0 }
145};
146
147private struct termcapstr {
148 char *name;
149 char *long_name;
150} tstr[] = {
151

--- 683 unchanged lines hidden (view full) ---

835 term = "dumb";
836
837 memset(el->el_term.t_cap, 0, TC_BUFSIZE);
838
839 i = tgetent(el->el_term.t_cap, term);
840
841 if (i <= 0) {
842 if (i == -1)
843#ifdef __FreeBSD__
844 (void) fprintf(el->el_errfile, "Cannot open /usr/share/misc/termcap.\n");
845#else
837 (void) fprintf(el->el_errfile, "Cannot open /etc/termcap.\n");
846 (void) fprintf(el->el_errfile, "Cannot open /etc/termcap.\n");
847#endif
838 else if (i == 0)
839 (void) fprintf(el->el_errfile,
840 "No entry for terminal type \"%s\"\n", term);
841 (void) fprintf(el->el_errfile, "using dumb terminal settings.\n");
842 Val(T_co) = 80; /* do a dumb terminal */
843 Val(T_pt) = Val(T_km) = Val(T_li) = 0;
844 Val(T_xt) = Val(T_MT);
845 for (t = tstr; t->name != NULL; t++)

--- 602 unchanged lines hidden ---
848 else if (i == 0)
849 (void) fprintf(el->el_errfile,
850 "No entry for terminal type \"%s\"\n", term);
851 (void) fprintf(el->el_errfile, "using dumb terminal settings.\n");
852 Val(T_co) = 80; /* do a dumb terminal */
853 Val(T_pt) = Val(T_km) = Val(T_li) = 0;
854 Val(T_xt) = Val(T_MT);
855 for (t = tstr; t->name != NULL; t++)

--- 602 unchanged lines hidden ---