patch-1.3.28 linux/drivers/char/vt.c
Next file: linux/drivers/net/3c507.c
Previous file: linux/drivers/char/tty_ioctl.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Mon Sep 18 07:55:41 1995
- Orig file:
v1.3.27/linux/drivers/char/vt.c
- Orig date:
Tue Aug 8 12:31:34 1995
diff -u --recursive --new-file v1.3.27/linux/drivers/char/vt.c linux/drivers/char/vt.c
@@ -71,6 +71,7 @@
extern void con_clear_unimap(struct unimapinit *ui);
extern int con_set_unimap(ushort ct, struct unipair *list);
extern int con_get_unimap(ushort ct, ushort *uct, struct unipair *list);
+extern void con_set_default_unimap(void);
extern int con_set_font(char * fontmap, int ch512);
extern int con_get_font(char * fontmap);
extern int con_set_cmap(unsigned char *cmap);
@@ -80,6 +81,7 @@
extern int video_mode_512ch;
extern unsigned long video_font_height;
+extern unsigned long default_font_height;
extern unsigned long video_scan_lines;
/*
@@ -974,6 +976,23 @@
return (i <= 0) ? i : kd_size_changed(i, 0);
} else
return -EINVAL;
+ }
+
+ case PIO_FONTRESET:
+ {
+ if (!perm)
+ return -EPERM;
+ if (vt_cons[fg_console]->vc_mode != KD_TEXT)
+ return -EINVAL;
+
+ i = con_set_font(NULL, 0); /* Set font to default */
+ if (i) return i;
+
+ i = con_adjust_height(default_font_height);
+ if ( i > 0 ) kd_size_changed(i, 0);
+ con_set_default_unimap();
+
+ return 0;
}
case GIO_FONTX:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this