summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2000-07-21 20:45:56 +0000
committerjkh <jkh@FreeBSD.org>2000-07-21 20:45:56 +0000
commitc0840074eadea46346bfde8f66f6e51df10235f7 (patch)
treee7195d4f3aea718036179c09d9372e3dff89fd70 /usr.sbin/sade
parentd0352e3c5f1205d0992b4fedbc66fd4b487cbbd1 (diff)
downloadFreeBSD-src-c0840074eadea46346bfde8f66f6e51df10235f7.zip
FreeBSD-src-c0840074eadea46346bfde8f66f6e51df10235f7.tar.gz
Add a terminal entry for xterm; a lot of people are using xterms
in the serial-installation of FreeBSD.
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r--usr.sbin/sade/Makefile3
-rw-r--r--usr.sbin/sade/install.c3
-rw-r--r--usr.sbin/sade/sade.h1
-rw-r--r--usr.sbin/sade/termcap.c6
4 files changed, 10 insertions, 3 deletions
diff --git a/usr.sbin/sade/Makefile b/usr.sbin/sade/Makefile
index 6620bc0..0aeb6dc 100644
--- a/usr.sbin/sade/Makefile
+++ b/usr.sbin/sade/Makefile
@@ -58,6 +58,9 @@ makedevs.c: Makefile rtermcap keymap.h
./rtermcap vt100 | \
file2c 'const char termcap_vt100[] = {' ',0};' \
>> makedevs.tmp
+ ./rtermcap xterm | \
+ file2c 'const char termcap_xterm[] = {' ',0};' \
+ >> makedevs.tmp
.if ${MACHINE} == "i386"
file2c 'u_char boot0[] = {' '};' < /boot/boot0 >> makedevs.tmp
echo "size_t boot0_size = sizeof(boot0);" >> makedevs.tmp
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index 209c210..7c43f65 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -1152,7 +1152,8 @@ create_termcap(void)
const char *caps[] = {
termcap_vt100, termcap_cons25, termcap_cons25_m, termcap_cons25r,
- termcap_cons25r_m, termcap_cons25l1, termcap_cons25l1_m, NULL,
+ termcap_cons25r_m, termcap_cons25l1, termcap_cons25l1_m,
+ termcap_xterm, NULL,
};
const char **cp;
diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h
index abb2b8e..9d78d39f 100644
--- a/usr.sbin/sade/sade.h
+++ b/usr.sbin/sade/sade.h
@@ -604,6 +604,7 @@ extern const char termcap_cons25r[];
extern const char termcap_cons25r_m[];
extern const char termcap_cons25l1[];
extern const char termcap_cons25l1_m[];
+extern const char termcap_xterm[];
extern const u_char font_iso_8x16[];
extern const u_char font_cp850_8x16[];
extern const u_char font_cp866_8x16[];
diff --git a/usr.sbin/sade/termcap.c b/usr.sbin/sade/termcap.c
index 5025dcd..9370177 100644
--- a/usr.sbin/sade/termcap.c
+++ b/usr.sbin/sade/termcap.c
@@ -31,7 +31,8 @@ prompt_term(char **termp, char **termcapp)
{ "vt100", termcap_vt100 },
{ "cons25w", termcap_cons25w },
{ "cons25", termcap_cons25 },
- { "cons25-m", termcap_cons25_m } };
+ { "cons25-m", termcap_cons25_m },
+ { "xterm", termcap_xterm } };
if (RunningAsInit) {
while (1) {
@@ -44,7 +45,8 @@ prompt_term(char **termp, char **termcapp)
printf("2 ...................... VT100 or compatible terminal.\n");
printf("3 ...................... FreeBSD system console (color).\n");
printf("4 ...................... FreeBSD system console (monochrome).\n\n");
- printf("Your choice: (1-4) ");
+ printf("5 ...................... xterm terminal emulator.\n\n");
+ printf("Your choice: (1-5) ");
fflush(stdout);
fgets(str, 80, stdin);
i = str[0] - '0';
OpenPOWER on IntegriCloud