⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sun

📁 在Linux下实现聊天室功能
💻
📖 第 1 页 / 共 5 页
字号:
// $Xorg: sun,v 1.4 2001/02/09 02:05:51 xorgcvs Exp $// $XdotOrg: $////Copyright 1996, 1998  The Open Group////Permission to use, copy, modify, distribute, and sell this software and its//documentation for any purpose is hereby granted without fee, provided that//the above copyright notice appear in all copies and that both that//copyright notice and this permission notice appear in supporting//documentation.////The above copyright notice and this permission notice shall be//included in all copies or substantial portions of the Software.////THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,//EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF//MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.//IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR//OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,//ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR//OTHER DEALINGS IN THE SOFTWARE.////Except as contained in this notice, the name of The Open Group shall//not be used in advertising or otherwise to promote the sale, use or//other dealings in this Software without prior written authorization//from The Open Group.//// ---------------------------------------------------------------------------// Copyright 2004 Sun Microsystems, Inc.  All rights reserved.//// Permission is hereby granted, free of charge, to any person obtaining a// copy of this software and associated documentation files (the// "Software"), to deal in the Software without restriction, including// without limitation the rights to use, copy, modify, merge, publish,// distribute, and/or sell copies of the Software, and to permit persons// to whom the Software is furnished to do so, provided that the above// copyright notice(s) and this permission notice appear in all copies of// the Software and that both the above copyright notice(s) and this// permission notice appear in supporting documentation.// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT// OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR// HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL// INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING// FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,// NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION// WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.// // Except as contained in this notice, the name of a copyright holder// shall not be used in advertising or otherwise to promote the sale, use// or other dealings in this Software without prior written authorization// of the copyright holder.//// ---------------------------------------------------------------------------//// $XFree86: xc/programs/xkbcomp/geometry/sun,v 1.7 2003/08/09 14:30:47 pascal Exp $//xkb_geometry "type4" {    // This is an approximate layout for a (US/ASCII) Sun Type4 US    // keyboard.      description= "Sun Type4 keyboard";    width= 452;    height= 185;    shape "EDGE" { cornerRadius= 2, { [ 452, 185 ] } };    shape.cornerRadius= 1;    shape "NORM" { { [ 18,18] }, { [2,1], [16,17] } };    shape "BKSP" { { [ 37,18] }, { [2,1], [35,17] } };    shape "TABK" { { [ 27,18] }, { [2,1], [25,17] } };    shape "DELE" { { [ 37,18] }, { [2,1], [35,17] } };    shape "RTRN" { 	    approx = { [ 0, 0], [28,37] },	    { [ 0, 0], [28, 0], [28,37],	      [ 5,37], [ 5,19], [ 0,19] },	    { [ 1, 1], [26, 1], [26,36],	      [ 7,36], [ 7,18], [ 1,18] }    };    shape "CAPS" { { [ 32,18] }, { [2,1], [30,17] } };    shape "LFSH" { { [ 41,18] }, { [2,1], [39,17] } };    shape "RTSH" { { [ 33,18] }, { [2,1], [31,17] } };    shape "LCTL" { { [ 32,18] }, { [2,1], [30,17] } };    shape "MODK" { { [ 28,18] }, { [2,1], [26,17] } };    shape "SPCE" { { [170,18] }, { [2,1], [168,17] } };    shape "KP0"  { { [ 37,18] }, { [2,1], [35,17] } };    shape "KPAD" { { [ 18,37] }, { [2,1], [16,36] } };    shape "HELP" { { [ 37,18] }, { [2,1], [35,17] } };    outline "Edges" {	top= 0;	left= 0;	shape= "EDGE";    };    section.left= 17;    row.left= 1;    key.shape= "NORM";    key.gap=  1;    section "Alpha" {	top= 58;	row {	    top= 1;	    keys { <STOP>, <AGAI>,		 { <FK01>, 9 }, <FK02>, <FK03>, <FK04>,		   <FK05>, <FK06>, <FK07>, <FK08>,		   <FK09>, <FK10>, <FK11>, <FK12>,		   <BKSL>, { <DELE>, "DELE" },		 { <PAUS>, 9 }, <PRSC>, <SCLK>, <NMLK>	    };	};	row {	    top= 20;	    keys { <PROP>, <UNDO>, { <ESC>, 9 }, 		   <AE01>, <AE02>, <AE03>, <AE04>, <AE05>, 		   <AE06>, <AE07>, <AE08>, <AE09>, <AE10>, 		   <AE11>, <AE12>,		 { <BKSP>, "BKSP" },		 { <KPEQ>, 9 }, <KPDV>, <KPMU>, <KPSU> 	    };	};	row {	    top= 39;	    keys { <FRNT>, <COPY>, 		 { <TAB>, 9, shape="TABK" },		   <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 		   <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 		   <AD11>, <AD12>, { <RTRN>, "RTRN" },		 { <KP7>, 9 }, <KP8>, <KP9>, { <KPAD>, "KPAD" } 	    };	};	row {	    top= 58;	    keys { <OPEN>, <PAST>, 		 { <LCTL>, 9, shape="LCTL" },		   <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 		   <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 		   <AC11>, <TLDE>,		 { <KP4>, 33 }, <KP5>, <KP6>	    };	};	row {	    top= 77;	    keys { <FIND>, <CUT>, 		 { <LFSH>, 9 , shape="LFSH" }, 		   <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 		   <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 		 { <RTSH>, "RTSH" }, <LNFD>,		 { <KP1>, 9} , <KP2>, <KP3>, { <KPEN>, "KPAD" }	    };	};	row {	    top= 96;	    keys { { <HELP>, "HELP" }, { <CAPS>, 9 },		   <LALT>, <LMTA>, { <SPCE>, "SPCE" },		   <RMTA>, <COMP>, <ALGR>,		 { <KP0>, 9, shape="KP0" }, <KPDL>	    };	};    }; // End of "Alpha" section    shape "LEDS" { cornerRadius= 0, { [ 78 ,21 ] } };    shape "LED"  { cornerRadius= 0, { [  7,  4 ] } };    solid "LedPanel" {	shape= "LEDS";	top=  28;	left= 358;    };    indicator.onColor= "green";    indicator.offColor= "green30";    indicator.top= 43;    indicator.shape= "LED";    indicator "Caps Lock"	{ left= 364; };    indicator "Compose"		{ left= 383; };    indicator "Scroll Lock"	{ left= 402; };    indicator "Num Lock"	{ left= 421; };    text.top= 34;    text.color= "black";    text "CapsLockLabel"	{ left= 364; text="Caps\nLock"; };    text "ComposeLabel"		{ left= 380; text="Compose"; };    text "ScrollLockLabel"	{ left= 402; text="Scroll\nLock"; };    text "NumLockLabel"		{ left= 421; text="Num\nLock"; };};xkb_geometry "type4tuv" {    // This is an approximate layout for a (US/ASCII) Sun Type4 TUV    // (European) keyboard with an extra key between the Shift_L    // and the Z keys, and two keys above the Bksp key, instead    // of a large delete key.    description= "Sun Type4tuv keyboard";    width= 452;    height= 185;    shape "EDGE" { cornerRadius= 2, { [ 452, 185 ] } };    shape.cornerRadius= 1;    shape "NORM" { { [ 18,18] }, { [2,1], [16,17] } };    shape "BKSP" { { [ 37,18] }, { [2,1], [35,17] } };    shape "TABK" { { [ 27,18] }, { [2,1], [25,17] } };    shape "RTRN" {          approx = { [ 0, 0], [28,37] },          { [ 0, 0], [28, 0], [28,37],            [ 5,37], [ 5,19], [ 0,19] },          { [ 1, 1], [26, 1], [26,36],            [ 7,36], [ 7,18], [ 1,18] }    };    shape "CAPS" { { [ 32,18] }, { [2,1], [30,17] } };    shape "RTSH" { { [ 33,18] }, { [2,1], [31,17] } };    shape "LCTL" { { [ 32,18] }, { [2,1], [30,17] } };    shape "MODK" { { [ 28,18] }, { [2,1], [26,17] } };    shape "SPCE" { { [170,18] }, { [2,1], [168,17] } };    shape "KP0"  { { [ 37,18] }, { [2,1], [35,17] } };    shape "KPAD" { { [ 18,37] }, { [2,1], [16,36] } };    shape "HELP" { { [ 37,18] }, { [2,1], [35,17] } };    outline "Edges" {	top= 0;	left= 0;	shape= "EDGE";    };    section.left= 17;    row.left= 1;    key.shape= "NORM";    key.gap=  1;    section "Alpha" {	top= 58;	row {	    top= 1;	    keys { <STOP>, <AGAI>,		 { <FK01>, 9 }, <FK02>, <FK03>, <FK04>,		   <FK05>, <FK06>, <FK07>, <FK08>,		   <FK09>, <FK10>, <FK11>, <FK12>,		   <BKSL>, <BRCR>,<DELE>,		 { <PAUS>, 9 }, <PRSC>, <SCLK>, <NMLK>	    };	};	row {	    top= 20;	    keys { <PROP>, <UNDO>, { <ESC>, 9 }, 		   <AE01>, <AE02>, <AE03>, <AE04>, <AE05>, 		   <AE06>, <AE07>, <AE08>, <AE09>, <AE10>, 		   <AE11>, <AE12>,		 { <BKSP>, "BKSP" },		 { <KPEQ>, 9 }, <KPDV>, <KPMU>, <KPSU> 	    };	};	row {	    top= 39;	    keys { <FRNT>, <COPY>, 		 { <TAB>, 9, shape="TABK" },		   <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 		   <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 		   <AD11>, <AD12>, { <RTRN>, "RTRN" },		 { <KP7>, 9 }, <KP8>, <KP9>, { <KPAD>, "KPAD" } 	    };	};	row {	    top= 58;	    keys { <OPEN>, <PAST>, 		 { <LCTL>, 9, shape="LCTL" },		   <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 		   <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 		   <AC11>, <TLDE>,		 { <KP4>, 33 }, <KP5>, <KP6>	    };	};	row {	    top= 77;	    keys { <FIND>, <CUT>, 		 { <LFSH>, 9 }, <LSGT>,		   <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 		   <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 		 { <RTSH>, "RTSH" }, <LNFD>,		 { <KP1>, 9} , <KP2>, <KP3>, { <KPEN>, "KPAD" }	    };	};	row {	    top= 96;	    keys { { <HELP>, "HELP" }, { <CAPS>, 9 },		   <LALT>, <LMTA>, { <SPCE>, "SPCE" },		   <RMTA>, <COMP>, <ALGR>,		 { <KP0>, 9, shape="KP0" }, <KPDL>	    };	};    }; // End of "Alpha" section    shape "LEDS" { cornerRadius= 0, { [ 78 ,21 ] } };    shape "LED"  { cornerRadius= 0, { [  7,  4 ] } };    solid "LedPanel" {	shape= "LEDS";	top=  28;	left= 358;    };    indicator.onColor= "green";    indicator.offColor= "green30";    indicator.top= 43;    indicator.shape= "LED";    indicator "CapsLock"	{ left= 364; };    indicator "Compose"	{ left= 383; };    indicator "ScrollLock"	{ left= 402; };    indicator "NumLock"	{ left= 421; };    text.top= 34;    text.color= "black";    text "CapsLockLabel"	{ left= 364; text="Caps\nLock"; };    text "ComposeLabel"		{ left= 380; text="Compose"; };    text "ScrollLockLabel"	{ left= 402; text="Scroll\nLock"; };    text "NumLockLabel"		{ left= 421; text="Num\nLock"; };};xkb_geometry "type4_ca" {    // This is an approximate layout for a (US/ASCII) Sun Type4    // Canadian and British keyboard with an extra key between    // the Shift_L     // and the Z keys.    description= "Sun Type4_uk keyboard";    width= 452;    height= 185;    shape "EDGE" { cornerRadius= 2, { [ 452, 185 ] } };    shape.cornerRadius= 1;    shape "NORM" { { [ 18,18] }, { [2,1], [16,17] } };    shape "BKSP" { { [ 37,18] }, { [2,1], [35,17] } };    shape "TABK" { { [ 27,18] }, { [2,1], [25,17] } };    shape "DELE" { { [ 37,18] }, { [2,1], [35,17] } };    shape "RTRN" {             approx = { [ 0, 0], [28,37] },            { [ 0, 0], [28, 0], [28,37],              [ 5,37], [ 5,19], [ 0,19] },            { [ 1, 1], [26, 1], [26,36],              [ 7,36], [ 7,18], [ 1,18] }    };    shape "CAPS" { { [ 32,18] }, { [2,1], [30,17] } };    shape "RTSH" { { [ 33,18] }, { [2,1], [31,17] } };    shape "LCTL" { { [ 32,18] }, { [2,1], [30,17] } };    shape "MODK" { { [ 28,18] }, { [2,1], [26,17] } };    shape "SPCE" { { [170,18] }, { [2,1], [168,17] } };    shape "KP0"  { { [ 37,18] }, { [2,1], [35,17] } };    shape "KPAD" { { [ 18,37] }, { [2,1], [16,36] } };    shape "HELP" { { [ 37,18] }, { [2,1], [35,17] } };    outline "Edges" {        top= 0;        left= 0;        shape= "EDGE";    };    section.left= 17;    row.left= 1;    key.shape= "NORM";    key.gap=  1;    section "Alpha" {        top= 58;        row {            top= 1;            keys { <STOP>, <AGAI>,                 { <FK01>, 9 }, <FK02>, <FK03>, <FK04>,                   <FK05>, <FK06>, <FK07>, <FK08>,                   <FK09>, <FK10>, <FK11>, <FK12>,                   <BKSL>, { <DELE>, "DELE" },                 { <PAUS>, 9 }, <PRSC>, <SCLK>, <NMLK>            };        };        row {            top= 20;            keys { <PROP>, <UNDO>, { <ESC>, 9 },                    <AE01>, <AE02>, <AE03>, <AE04>, <AE05>,                   <AE06>, <AE07>, <AE08>, <AE09>, <AE10>,                    <AE11>, <AE12>,                 { <BKSP>, "BKSP" },                 { <KPEQ>, 9 }, <KPDV>, <KPMU>, <KPSU>             };        };        row {            top= 39;            keys { <FRNT>, <COPY>,                  { <TAB>, 9, shape="TABK" },                   <AD01>, <AD02>, <AD03>, <AD04>, <AD05>,                    <AD06>, <AD07>, <AD08>, <AD09>, <AD10>,                    <AD11>, <AD12>, { <RTRN>, "RTRN" },                 { <KP7>, 9 }, <KP8>, <KP9>, { <KPAD>, "KPAD" }             };        };        row {            top= 58;            keys { <OPEN>, <PAST>,                  { <LCTL>, 9, shape="LCTL" },                   <AC01>, <AC02>, <AC03>, <AC04>, <AC05>,                    <AC06>, <AC07>, <AC08>, <AC09>, <AC10>,                    <AC11>, <TLDE>,                 { <KP4>, 33 }, <KP5>, <KP6>            };        };        row {            top= 77;            keys { <FIND>, <CUT>,                  { <LFSH>, 9 }, <LSGT>,                   <AB01>, <AB02>, <AB03>, <AB04>, <AB05>,                    <AB06>, <AB07>, <AB08>, <AB09>, <AB10>,                  { <RTSH>, "RTSH" }, <LNFD>,                 { <KP1>, 9} , <KP2>, <KP3>, { <KPEN>, "KPAD" }            };        };        row {            top= 96;            keys { { <HELP>, "HELP" }, { <CAPS>, 9 },                   <LALT>, <LMTA>, { <SPCE>, "SPCE" },                   <RMTA>, <COMP>, <ALGR>,                 { <KP0>, 9, shape="KP0" }, <KPDL>            };        };    }; // End of "Alpha" section    shape "LEDS" { cornerRadius= 0, { [ 78 ,21 ] } };    shape "LED"  { cornerRadius= 0, { [  7,  4 ] } };    solid "LedPanel" {        shape= "LEDS";        top=  28;        left= 358;    };    indicator.onColor= "green";    indicator.offColor= "green30";    indicator.top= 43;    indicator.shape= "LED";    indicator "CapsLock"        { left= 364; };    indicator "Compose" { left= 383; };    indicator "ScrollLock"      { left= 402; };    indicator "NumLock" { left= 421; };    text.top= 34;    text.color= "black";    text "CapsLockLabel"        { left= 364; text="Caps\nLock"; };    text "ComposeLabel"         { left= 380; text="Compose"; };    text "ScrollLockLabel"      { left= 402; text="Scroll\nLock"; };    text "NumLockLabel"         { left= 421; text="Num\nLock"; };};xkb_geometry "type4jp" {    // This is an approximate layout for a Japanese Sun Type4    // keyboard, based on the European TUV keyboard.  It has two keys    // above the Bksp key, instead of a large delete key, but lacks    // the extra key between Shift_L and Z.    description= "Sun Japanese Type4 keyboard";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -