home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!glocom!utnet-news!news.u-tokyo.ac.jp!enterprise!keisu3!nag
- From: nag@mtl.t.u-tokyo.ac.jp (Kenji Nagahashi)
- Newsgroups: fj.sys.sun
- Subject: Re: Blinking LED(Re: OpenWindows on SPARC station ELC)
- Message-ID: <NAG.92Nov21030554@packard.mtl.t.u-tokyo.ac.jp>
- Date: 20 Nov 92 18:05:54 GMT
- References: <h3AUI.wakai@shpcsl.sharp.co.jp> <1dkfmsINN4r8@fxisms.fxis.fujixerox.co.jp>
- <2766@huis.hiroshima-u.ac.jp>
- Sender: news@keisu-s.t.u-tokyo.ac.jp
- Reply-To: nag@mtl.t.u-tokyo.ac.jp
- Distribution: fj
- Organization: University of Tokyo, Tokyo, Japan.
- Lines: 71
- In-Reply-To: hide@se.hiroshima-u.ac.jp's message of 20 Nov 92 11:35:56 GMT
- Nntp-Posting-Host: packard.mtl.t.u-tokyo.ac.jp
-
- $BD966!wElBg$G$9(B
-
- >>>>> In article <2766@huis.hiroshima-u.ac.jp>,
- >>>>> hide@se.hiroshima-u.ac.jp (Hidenori Miyamoto) says:
-
- hide> $B$&$A$N8&5f<<$G$O(BX-Window$B$r=*N;$7$?(B$B$"$H!"(B4$B$D$N(BLED$B$N$&$A1&C<$N(B
- hide> NumLock$B$N(BLED$B$,$D$$$?$^$^$K$J$C$F!"%-!<%\!<(B$B%I$+$i2?$bF~NO$G$-(B
- hide> $B$J$/$J$C$F$7$^$&$3$H$,$"$j$^$9!#(B
- hide> $B$$$^$N$H(B$B$3$mBP=hK!$bL5$/!"%j%V!<%H$9$k$7$+$"$j$^$;$s!#(B
-
- hide> $BBP=hK!$r$4B8CN$N(B$BJ}$,$*$i$l$J$$$G$7$g$&$+!#(B
-
- $B$^$k$C$-$jBP>INEK!$G$9$,!D(B
-
- $B$&$A$G$b$h$/$=(B$B$&$$$&>I>u$,=P$k$N$G(B($B$d$O$j(BELC$B$KB?$$(B)$B2r=|MQ$N#C%W%m%0%i(B
- $B%`$r:n$j$^$7$?(B$B!#%j%V!<%H$h$j$O$^$7$G$9(B (^^)
-
- -------------- kbdreset.c ---------------------
- #include <stdio.h>
- #include <fcntl.h>
- #include <sundev/kbd.h>
- #include <sundev/kbio.h>
-
- main()
- {
- int fd;
- int direct;
- int res;
-
- fd = open("/dev/kbd", O_RDONLY);
- if(fd == -1){
- perror("open"); return;
- }
-
- direct = KBD_CMD_RESET;
- res = ioctl(fd, KIOCCMD, &direct);
- if (res < 0) perror("ioctl");
- }
- -----------------------------------------------
- $B$^$?N"$+$iF~$C$??M$K%3%s%=!<%k$rC%$o$l$?!"$J$I$,860x$G(B(kterm$B$K(B-C$B$r(B$B$D$1(B
- $B$A$c$&?M$,$$$k(B)$B%3%s%=!<%k$,$*$+$7$/$J$C$?$H;W$o$l$k;~$K$O$3$l$,(B$B8z$-$^$9!'(B
- ------------- consreset.c --------------------
- #include <sys/types.h>
- #include <stdio.h>
- #include <fcntl.h>
- #include <sys/termio.h>
-
- main()
- {
-
- int fd;
- int direct;
- int res;
-
- fd = open("/dev/console", O_RDONLY);
- if(fd == -1){
- perror("open"); return;
- }
-
- res = ioctl(fd, TIOCCONS, 0);
- if (res < 0) perror("ioctl");
- }
- ------------------------------------------------
- $B$$$:$l$b%^%K%e%"%k$r8+$F!"$h$/(B$B$o$+$i$:$K=q$$$F$^$9$N$G$X$s$J$3$H$r$d$C(B
- $B$F$k$N$+$bCN$l$^$;$s$,!D(B
-
- kbdrest $B$O2?2s$+$d$i$J$$$H2sI|$7$J$$$3$H$b$"$j$^$9!#$^$?2?2s$b;H$&$H%Q(B
- $B%K(B$B%C%/$9$k$3$H$b$"$j$^$9(B (^^;)
- --
- $B""(B $BD966(B $B8-;y!'El5~Bg3XBg3X1!9)3X7O8&5f2J(B$B>pJs9)3X@l96(B $BEDCf1QI'8&5f<<(B $B#M#2(B
- $B""(B E-mail: nag@mtl.t.u-tokyo.ac.jp
-