🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

8 total messages Started by Kazunari "ISSEY" Nakamura Mon, 14 Dec 1992 09:41
X server patch for Sun type 5 keyboard
#247
Author: Kazunari "ISSEY" Nakamura
Date: Mon, 14 Dec 1992 09:41
7 lines
888 bytes
Sun$@$N(JType5$@%-!<%\!<(J$@%I$,IU$$$?(JSparcStation$@$G(JX11R5$@$N(JMIT$@%5!<%P!<$rF0$+$9%Q%C(J
$@%A$H$$$&$N$O$I$3$+$KN.$l$J$+$C$?$G$7$g$&$+!)(J

$@$=$s$J$b$N$O$^$@L5$$!*$H$+(Jxxx.xxx$@$N(JNG$@$r8+$m!*$H$+$$$&>pJs$G$b7k9=$G$9(J
$@$N$G8f0lJs2<$5$$!#(J
--
$@$J$+$`$i!w(J$@#N#K#K!'(JIFML#30 EtQlair#220756 TokyoTowers#10 $@#1#9:P(J#12 QML:Admin
Re: X server patch for Sun type 5 keyboard
#249
Author: Kenji Rikitake
Date: Tue, 15 Dec 1992 03:43
12 lines
1138 bytes
In article <KAZU.92Dec14184146@ribbon.csrd.nkk.co.JP> kazu@csrd.nkk.co.JP (Kazunari "ISSEY" Nakamura) writes:
]   Sun$@$N(JType5$@%-!<%\!<%I$,IU$$$?(JSparcStation$@$G(JX11R5$@$N(JMIT$@%5!<%P!<$rF0$+$9%Q%C(J
]   $@%A$H$$$&$N$O$I$3$+$KN.$l$J$+$C$?$G$7$g$&$+!)(J

$@;d$N(J SS2 $@$O(J Type 5 $@$r(J Type 4 $@$HG'<1$7$F$7$^$C$F$$$k$N$GL5;vF0$$$F$$$^(J
$@$9$M$(!#%-!<%^%C%W$OE,Ev$K(J xmodmap $@$GJQ$($F$$$^$9(J$@!#(J

// Kenji

--
Kenji Rikitake, cyberspace samurai
<kenji@rcac.astem.or.jp> <kenji@rd.macrofield.or.jp> <...!uunet!reseau!kenji>
Re: X server patch for Sun type 5 keyboard
#258
Author: Takahiro Yamamoto2
Date: Wed, 16 Dec 1992 01:17
23 lines
1956 bytes
$@#N#T#T$N;3K\N49-$H?=$7$^$9!#(J

In article <KENJI.92Dec15124319@daemun.rcac.astem.or.jp> kenji@rcac.astem.or.jp (Kenji Rikitake) writes:
 ]]In article <KAZU.92Dec14184146@ribbon.csrd.nkk.co.JP> kazu@csrd.nkk.co.JP (Kazunari "ISSEY" Nakamura) writes:
 ]]]   Sun$@$N(JType5$@%-!<%\!<(J$@%I$,IU$$$?(JSparcStation$@$G(JX11R5$@$N(JMIT$@%5!<%P!<$rF0$+$9%Q%C(J
 ]]]   $@%A$H$$$&$N$O$I$3$+$KN.$l$J$+$C$?$G$7$g$&(J$@$+!)(J
 ]]$@;d$N(J SS2 $@$O(J Type 5 $@$r(J Type 4 $@$HG'<1$7$F$7$^$C$F$$$k$N$GL5;vF0$$$F$$$^(J
 ]]$@$9$M$(!#%-!<%^%C%W$O(J$@E,Ev$K(J xmodmap $@$GJQ$($F$$$^$9!#(J
 ]]// Kenji

$@;d$N$H$3$m$G$O!"(JType5 $@$N(J UNIX $@7?$H(J US $@7?(J $@$OBg>fIW$J$s$G$9(J$@$,!"(J
JLE$@7?$N%-!<%\!<%I$@$H!"(J!$@$H$+(J ^$@$H$+(J &$@$H$+$N5-9fF~NO$N(J
$@$H$-!"%-!<%\!<%I$K0u:~$7$F$"$k5-9f$H$OJL$NJ8(J$@;z$,F~NO(J
$@$5$l$F$7$^$$$^$9!#(J
Type4$@$N%-!<%\!<%I$N$H$-$O(JJLE$@%-!<%\!<%I$G$bBg>fIW$G$7$?$,!"(J
Type5$@$G$O$&$^$/(J$@$$$+$J$/$J$C$F$7$^$$$^$7$?!#(J
$@$I$J$?$+!"BP=hK!$r$4B8CN$J$$$G$7$g$&$+!)(J

--
---     Takahiro YAMAMOTO                               ---
---        NTT Software Laboratories                    ---
---           TEL (03)3740-6058  FAX (03)3740-5524      ---
---              <takahiro@nttspe.NTT.JP>    (^_^)      ---
Re: X server patch for Sun type 5 keyboard
#261
Author: Hisashi MINAMINO
Date: Wed, 16 Dec 1992 10:44
25 lines
1764 bytes
>>>>> On 16 Dec 92 10:17:17 JST,
 takahiro@nttspe.ntt.jp (Takahiro Yamamoto2) said:


takahiro> $B;d$N$H$3$m$G$O!"(JType5 $B$N(J UNIX $B7?$H(J US $B7?(J $B$OBg>fIW$J(J
takahiro> $B$s$G$9$,!"(JJLE$B7?$N%-!<%\!<%I$@$H!"(J!$B$H$+(J ^$B$H$+(J &$B$H$+$N(J
takahiro> $B5-9fF~NO$N$H$-!"%-!<%\!<%I$K(J$B0u:~$7$F$"$k5-9f$H$OJL$N(J
takahiro> $BJ8;z$,F~NO$5$l$F$7$^$$$^$9!#(JType4$B$N%-!<%\!<%I$N$H$-(J
takahiro> $B$O(JJLE$B%-!<%\!<%I$G$bBg>fIW$G$7$?$,!"(JType5$B$G$O$&$^$/$$(J
takahiro> $B$+$J$/$J$C$F$7$^$$$^$7$?!#$I$J$?$+!"BP=hK!(J$B$r$4B8CN$J(J
takahiro> $B$$$G$7$g$&$+!)(J

$BA[A|$G$9$,!"(JAS3050M $B$N(J JLE KB (type14 $B$H$+$$$&$i$7$$(J..) $B$r$A$c(J
$B$s(J$B$HG'<1$7$F$/$l$k$h$&$K(J Xserver $B$K%Q%C%A$rEv$F$?;~$K$O(J

	man kb
	/sys/sundev/kb*
	/sys/sun*/OBJ/keytables.c

$B$r;29M$K%F!<%V%k$r(J fake $B$7$^$7$?!#(J

# AS3050M == Sun3/50M
--
  Hisashi MINAMINO <hry@efreet.osakac.ac.jp>, Asano lab (Comp Geometry),
  Dept of Applied Electronic Eng., Osaka Electro-Communication University
Re: X server patch for Sun type 5 keyboard
#264
Author: Kazunobu KASHIWABUCHI
Date: Thu, 17 Dec 1992 01:31
10 lines
1083 bytes
$BGp^<(B@NTT$B$G$9(B

In article <KAZU.92Dec14184146@ribbon.csrd.nkk.co.JP> kazu@csrd.nkk.co.JP (Kazunari "ISSEY" Nakamura) writes:
 > Sun$B$N(BType5$B%-!<%\!<%I$,IU$$$?(BSparcStation$B$G(BX11R5$B$N(BMIT$B%5!<%P(B$B!<$rF0$+$9%Q%C(B
 > $B%A$H$$$&$N$O$I$3$+$KN.$l$J$+$C$?$G$7$g$&$+!)(B

$B$&$A$N(B Unix/$B1Q8l%-!<%\!<%I$G$O!"2?$NLd(B$BBj$b$J$/(B Xsun$B$,F0$$$F$$$^$9!#(B
$B8D?ME*$J9%$_$G>/$7%-!<%^%C%W$rJQ99$7$F$^$9$,!#(B
---
$BGp^<OB?.(B/$BEAAw%7%9%F%`(B$B8&5f=j(B
Re: X server patch for Sun type 5 keyboard
#268
Author: Hidetsugu Nakashio
Date: Fri, 18 Dec 1992 07:01
17 lines
1148 bytes
$@Cf1v!wAOL4$G$9!#(J

>>Sun$@$N(JType5$@%-!<%\!<%I$,IU$$$?(JSparcStation$@$G(JX11R5$@$N(JMIT$@%5!<(J$@%P!<$rF0$+$9%Q%C(J
>>$@%A$H$$$&$N$O$I$3$+$KN.$l$J$+$C$?$G$7$g$&$+!)(J

sunkbd.tar.Z $@$H$$$&%Q%C%A$,$"$j$^$9!#(J
export.lcs.mit.edu. $@$N%_%i!<%5%$%H$J$i(J contrib/sunkbd.tar.Z $@$K$"$k$H;W(J
$@$$$^$9!#(J
$@$3$N%Q%C%A$O!"F|K\8l(J$@%-!<%\!<%I$K8B$i$:%h!<%m%C%Q$"$?$j$N%-!<%\!<%I$K$b(J
$@BP1~$7$F$$$k$h$&$G$9!#$3$l$r!"$"$F$k$H%F%s%-!<$b;H(J$@$($k$h$&$K$J$k$N$G4r(J
$@$7$$?M$,$$$k$+$bCN$l$^$;$s!#(J
-
naka@soum.co.jp
--
--
naka@soum.co.jp
Re: X server patch for Sun type 5 keyboard
#270
Author: Ryouji Hasegawa
Date: Sat, 19 Dec 1992 06:37
214 lines
7224 bytes
$@$3$s$K$A$O!#D9C+@n!w1~MQ%7%9%F%`It!%Cf1{EE;R$G$9!#(J
fj.sys.sun $@$K$b%/%m%9%]%9%H$7$^$9!#(JFollowup-To: fj.windows.x $@$G$9(J

>  In article <KAZU.92Dec14184146@ribbon.csrd.nkk.co.JP> kazu@csrd.nkk.co.JP (Kazunari "ISSEY" Nakamura) writes:
>> Sun$@$N(JType5$@%-!<%\!<%I$,IU$$$?(JSparcStation$@$G(JX11R5$@$N(JMIT$@%5!<%P!<$rF0$+$9%Q%C(J
>> $@%A$H$$$&$N$O$I$3$+$KN.$l$J$+$C$?$G$7$g$&$+!)(J
> $@;d$N(J SS2 $@$O(J Type 5 $@$r(J Type 4 $@$HG'<1$7$F$7$^$C$F$$$k$N$GL5;vF0$$$F$$$^(J
> $@$9$M$(!#%-!<%^%C%W$OE,Ev$K(J xmodmap $@$GJQ$($F$$$^$9!#(J

$@;d$b!"(JType4 $@$K(JJLE$@$N$H$=$&$G$J$$$N$,$"$C$F!":.:_$7$F;HMQ$7$F$$$?$N$G(J
constype $@$N$h$&$K(J kbdtype $@$H$$$&%3%^%s%I$r:n$C$F(J
.xinitrc $@$NCf$G(J xmodmap $@$G@Z$jBX$($F$^$7$?!#(J

In article <BzBvKu.E8A@ntt-twins.ntt.jp>, takahiro@nttspe.ntt.jp (Takahiro Yamamoto2) writes:
> $@;d$N$H$3$m$G$O!"(JType5 $@$N(J UNIX $@7?$H(J US $@7?(J $@$OBg>fIW$J$s$G$9$,!"(J
> JLE$@7?$N%-!<%\!<%I$@$H!"(J!$@$H$+(J ^$@$H$+(J &$@$H$+$N5-9fF~NO$N(J
> $@$H$-!"%-!<%\!<%I$K0u:~$7$F$"$k5-9f$H$OJL$NJ8;z$,F~NO(J
> $@$5$l$F$7$^$$$^$9!#(J
> Type4$@$N%-!<%\!<%I$N$H$-$O(JJLE$@%-!<%\!<%I$G$bBg>fIW$G$7$?$,!"(J
> Type5$@$G$O$&$^$/$$$+$J$/$J$C$F$7$^$$$^$7$?!#(J
> $@$I$J$?$+!"BP=hK!$r$4B8CN$J$$$G$7$g$&$+!)(J

Type5 $@$N%-!<%\!<%I$b(J <sundev/kbd.h> $@$G$$$&=j$N(J KB_SUN4 $@$rJV$7$^$9!#(J
$@$=$l$G!"(JType4 $@$N(JJLE $@H=Dj$N$h$&$K(J KIOCLAYOUT $@$r8+$F(J (Type4 $@$N>l9g$3$l$O(J
$@%-!<%\!<%IFb$N%G%#%C%W%9%$%C%A$NCM$J$N$G$9$,(J)
0x21 $@0J>e$J$i(J Type5 $@$G$"$k$H$$$&$h$&$J;v$,(J comp.sys.sun.admin $@$K(J
$@=q$$$F$"$j$^$7$?!#(J

$@$3$A$i$K$O(J Type5 $@$,#1$D$7$+L5$$$N$G%F%9%H$G$-$J$$$N$G$9$,!"(J
$@$*$=$i$/(J KIOCLAYOUT $@$,(J UNIX $@7?(J,US$@7?(J,JLE$@7?(J $@$G0[$J$k$HM=A[$5$l$^$9!#(J
$@0J2<$K!"(Jkbdtype.c $@$N%=!<%9$r$D$1$^$9$N$G;n$7$F$_$F$O$$$+$+$G$7$g$&!)(J

cc kbdtype.c -o kbdtype $@$G%3%s%Q%$%k$7$F(J kbdtype -v $@$G>\:YI=<($7$^$9!#(J
------  $@$3$3$+$i(J --------  $@$3$3$+$i(J  -------  $@$3$3$+$i(J  ------------
/*
	kbdtype : print keyboard type
*/
static char _VER_[] = "@(#)kbdtype Ver 1.02   by R.Hasegawa  92-12-17";

#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stream.h>
#include <sys/stropts.h>
#include <sundev/kbio.h>
#include <sundev/kbd.h>

#ifndef	KIOCLAYOUT
#define	KIOCLAYOUT	_IOR(k, 20, int)
struct  kiockeymap {
	int	kio_tablemask;  /* Translation table (one of: 0, CAPSMASK,
				  SHIFTMASK, CTRLMASK, UPMASK, ALTGRAPHMASK) */
	u_char  kio_station;    /* Physical keyboard key station (0-127) */
	u_short kio_entry;      /* Translation table station's entry */
	char    kio_string[10]; /* Value for STRING entries (null terminated) */
};
#endif

#define	ON	1
#define	OFF	0

#define	DIP_SW_4J	0x20	/* TYPE4 J */
#define	DIP_SW_5	0x21	/* TYPE5 */

#ifndef KB_SUN4
#define KB_SUN4		0x04	/* Type 4 Sun keyboard */
#endif

/* Keyboard ID code = KB_SUN4, But KIOCLAYOUT >= 0x21 */
#ifndef KB_SUN4_T5
#define KB_SUN4_T5	0x05	/* Type 5 Sun keyboard */
#endif

/* Keyboard ID code = KB_SUN4, But KIOCLAYOUT = 0x20 */
#ifndef KB_SUN4J
#define KB_SUN4J	104	/* SunOS Type4 Japanese keyboard */
#endif

usage()
{
	fprintf(stderr,"Usage: kbdtype [-v]\n");
	fprintf(stderr,"\tKeyboard type\tverbose mode (-v)\t\tReturn val\n");
	fprintf(stderr,"\t-------------\t-------------------------\t----------\n");
	fprintf(stderr,"\tMS103\t\tMicro Switch 103SD32-2\t\t0\n");
	fprintf(stderr,"\tVT100\t\tVT100 compatibl\t\t\t1\n");
	fprintf(stderr,"\t2\t\tSun-2 Keyboard\t\t\t2\n");
	fprintf(stderr,"\t3\t\tType 3 Keyboard\t\t\t3\n");
	fprintf(stderr,"\t4\t\tType 4 Keyboard\t\t\t4\n");
	fprintf(stderr,"\t4J\t\tType 4 Japanese Keyboard\t104\n");
	fprintf(stderr,"\t5\t\tType 5 Keyboard\t\t\t5\n");
	fprintf(stderr,"\tASCII\t\tASCII Terminal\t\t\t15\n");
	fprintf(stderr,"\tUNKNOWN\t\tUnknown Type\t\t\tother\n");
	exit(-1);
}

main(argc,argv)
	int	argc;
	char	*argv[];
{
	int	kbd_fd;
	int	get_key_type, key_type;
	int	dip_sw;
	int	verb = OFF;
	struct kiockeymap key;

	if( argc < 2 ){
		verb = OFF;
	}else{
		if( argv[1][0]=='-' && argv[1][1]=='v' )
			verb = ON;
		else
			usage();
	}

	if( ( kbd_fd = open("/dev/kbd",O_RDONLY) ) == NULL ){
		fprintf(stderr,"Can not open /dev/kbd\n");
		exit(1);
	}

	ioctl(kbd_fd, KIOCTYPE, &get_key_type);
	key_type = get_key_type;

	if( ioctl(kbd_fd, KIOCLAYOUT, &dip_sw) < 0 ){
	    /* SunOS 4.0.X */
		if (key_type == KB_SUN3) {
			struct kiockey key;

			key.kio_tablemask = 0;
			key.kio_station = 118;
			if (ioctl(kbd_fd, KIOCGETKEY, &key)) {
				perror( "ioctl KIOCGETKEY" );
				exit(-1);
			}
			if (key.kio_entry != 0xa2) {
				key_type = KB_SUN4;
			}
		}
	}else{
	    /* SunOS 4.1.X */
		if (key_type == KB_SUN4){
			if( dip_sw == DIP_SW_4J ){
				key_type = KB_SUN4J;
			}else
			if( dip_sw >= DIP_SW_5 ){
				key_type = KB_SUN4_T5;
			}
		}
	}

	if( verb == ON ){
		switch(key_type){
			case KB_KLUNK:
				printf("Micro Switch 103SD32-2\n");
				break;
			case KB_VT100:
				printf("VT100 compatible\n");
				break;
			case KB_SUN2:
				printf("Sun-2 Keyboard\n");
				break;
			case KB_SUN3:
				printf("Type 3 Keyboard\n");
				break;
			case KB_SUN4:
				printf("Type 4 Keyboard   ");
				printf("Layout = %xH\n",dip_sw);
				break;
			case KB_SUN4J:
				printf("Type 4 Japanese Keyboard\n");
				printf("Layout = %xH\n",dip_sw);
				break;
			case KB_SUN4_T5:
				printf("Type 5 Keyboard   ");
				printf("key_type = %d   ",get_key_type);
				printf("Layout = %xH\n",dip_sw);	
				break;
			case KB_ASCII:
				printf("ASCII Terminal\n");
				break;
			default:
				printf("Unknown Type\n");
				break;
		}
	}else{
		switch(key_type){
			case KB_KLUNK:
				printf("MS103\n");	break;
			case KB_VT100:
				printf("VT100\n");	break;
			case KB_SUN2:
				printf("2\n");		break;
			case KB_SUN3:
				printf("3\n");		break;
			case KB_SUN4:
				printf("4\n");		break;
			case KB_SUN4J:
				printf("4J\n");		break;
			case KB_SUN4_T5:
				printf("5\n");		break;
			case KB_ASCII:
				printf("ASCII\n");	break;
			default:
				printf("UNKNOWN\n");	break;
		}
	}

	close(kbd_fd);
	exit(key_type);
}
------  $@$3$3$^$G(J --------  $@$3$3$^$G(J  -------  $@$3$3$^$G(J  ------------
--
-----------------------------------------------------------------------
$@Cf1{EE;R3t<02q<R(J $@1~MQ%7%9%F%`;v6HIt(J	$@D9C+@n5};J(J (hasegawa@cec.co.jp)
-----------------------------------------------------------------------
Re: X server patch for Sun type 5 keyboard
#233
Author: Katsuya Makioka
Date: Tue, 22 Dec 1992 01:46
13 lines
1295 bytes
$@$^$-$*$+$H?=$7$^$9(J

Yamamoto>   JLE$@7?$N%-!<%\!<%I$@$H!"(J!$@$H$+(J ^$@$H$+(J &$@$H$+$N5-9fF~NO$N(J
Yamamoto>   $@$H$-!"%-!<%\!<%I$K0u:~$7$F$"$k5-9f$H$OJL$NJ8;z$,F~NO(J
Yamamoto>   $@$5$l$F$7$^$$$^$9!#(J

TYPE4 $@%-!<%\!<%I$GF1MM$N8=>]$,5/$3$C$?;~$O!"%G%$%i!<;XDj$rL5;k(J
$@$7$F!"%-!<%\!<%I:8B-IU$1:,$N%G%$%C%W%9%$%C%A#3$r#O#F#F$K$7$F!"(J
$@EE8;$rF~$lD>$;$P$J$*$C$?$N$G$9$,!"(JTYPE5 $@$G$O;29M$K$J$k$+$I$&$+!)(J

--
                                        E-mail : makioka@den.fujifilm.co.jp  
                                                                  K.Makioka
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads