vt.c (8ede5cce4f0baff77ef63aa3cb3afc65d0317e0b) vt.c (91e74ca5e7ac4ec6c61b84d6618eb5e401f852f0)
1/*
2 * Copyright (C) 1991, 1992 Linus Torvalds
3 */
4
5/*
6 * Hopefully this will be a rather complete VT102 implementation.
7 *
8 * Beeping thanks to John T Kohl.

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

1038 */
1039#define VT100ID "\033[?1;2c"
1040#define VT102ID "\033[?6c"
1041
1042const unsigned char color_table[] = { 0, 4, 2, 6, 1, 5, 3, 7,
1043 8,12,10,14, 9,13,11,15 };
1044
1045/* the default colour table, for VGA+ colour systems */
1/*
2 * Copyright (C) 1991, 1992 Linus Torvalds
3 */
4
5/*
6 * Hopefully this will be a rather complete VT102 implementation.
7 *
8 * Beeping thanks to John T Kohl.

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

1038 */
1039#define VT100ID "\033[?1;2c"
1040#define VT102ID "\033[?6c"
1041
1042const unsigned char color_table[] = { 0, 4, 2, 6, 1, 5, 3, 7,
1043 8,12,10,14, 9,13,11,15 };
1044
1045/* the default colour table, for VGA+ colour systems */
1046int default_red[] = {0x00,0xaa,0x00,0xaa,0x00,0xaa,0x00,0xaa,
1047 0x55,0xff,0x55,0xff,0x55,0xff,0x55,0xff};
1048int default_grn[] = {0x00,0x00,0xaa,0x55,0x00,0x00,0xaa,0xaa,
1049 0x55,0x55,0xff,0xff,0x55,0x55,0xff,0xff};
1050int default_blu[] = {0x00,0x00,0x00,0x00,0xaa,0xaa,0xaa,0xaa,
1051 0x55,0x55,0x55,0x55,0xff,0xff,0xff,0xff};
1046unsigned char default_red[] = {
1047 0x00, 0xaa, 0x00, 0xaa, 0x00, 0xaa, 0x00, 0xaa,
1048 0x55, 0xff, 0x55, 0xff, 0x55, 0xff, 0x55, 0xff
1049};
1050module_param_array(default_red, byte, NULL, S_IRUGO | S_IWUSR);
1052
1051
1053module_param_array(default_red, int, NULL, S_IRUGO | S_IWUSR);
1054module_param_array(default_grn, int, NULL, S_IRUGO | S_IWUSR);
1055module_param_array(default_blu, int, NULL, S_IRUGO | S_IWUSR);
1052unsigned char default_grn[] = {
1053 0x00, 0x00, 0xaa, 0x55, 0x00, 0x00, 0xaa, 0xaa,
1054 0x55, 0x55, 0xff, 0xff, 0x55, 0x55, 0xff, 0xff
1055};
1056module_param_array(default_grn, byte, NULL, S_IRUGO | S_IWUSR);
1056
1057
1058unsigned char default_blu[] = {
1059 0x00, 0x00, 0x00, 0x00, 0xaa, 0xaa, 0xaa, 0xaa,
1060 0x55, 0x55, 0x55, 0x55, 0xff, 0xff, 0xff, 0xff
1061};
1062module_param_array(default_blu, byte, NULL, S_IRUGO | S_IWUSR);
1063
1057/*
1058 * gotoxy() must verify all boundaries, because the arguments
1059 * might also be negative. If the given position is out of
1060 * bounds, the cursor is placed at the nearest margin.
1061 */
1062static void gotoxy(struct vc_data *vc, int new_x, int new_y)
1063{
1064 int min_y, max_y;

--- 3247 unchanged lines hidden ---
1064/*
1065 * gotoxy() must verify all boundaries, because the arguments
1066 * might also be negative. If the given position is out of
1067 * bounds, the cursor is placed at the nearest margin.
1068 */
1069static void gotoxy(struct vc_data *vc, int new_x, int new_y)
1070{
1071 int min_y, max_y;

--- 3247 unchanged lines hidden ---