home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / fj / sys / sun / 1124 < prev    next >
Encoding:
Text File  |  1992-11-20  |  2.8 KB  |  88 lines

  1. Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!glocom!utnet-news!news.u-tokyo.ac.jp!enterprise!keisu3!nag
  2. From: nag@mtl.t.u-tokyo.ac.jp (Kenji Nagahashi)
  3. Newsgroups: fj.sys.sun
  4. Subject: Re: Blinking LED(Re: OpenWindows on SPARC station ELC)
  5. Message-ID: <NAG.92Nov21030554@packard.mtl.t.u-tokyo.ac.jp>
  6. Date: 20 Nov 92 18:05:54 GMT
  7. References: <h3AUI.wakai@shpcsl.sharp.co.jp> <1dkfmsINN4r8@fxisms.fxis.fujixerox.co.jp>
  8.     <2766@huis.hiroshima-u.ac.jp>
  9. Sender: news@keisu-s.t.u-tokyo.ac.jp
  10. Reply-To: nag@mtl.t.u-tokyo.ac.jp
  11. Distribution: fj
  12. Organization: University of Tokyo, Tokyo, Japan.
  13. Lines: 71
  14. In-Reply-To: hide@se.hiroshima-u.ac.jp's message of 20 Nov 92 11:35:56 GMT
  15. Nntp-Posting-Host: packard.mtl.t.u-tokyo.ac.jp
  16.  
  17. $BD966!wElBg$G$9(B
  18.  
  19. >>>>> In article <2766@huis.hiroshima-u.ac.jp>,
  20. >>>>> hide@se.hiroshima-u.ac.jp (Hidenori Miyamoto) says:
  21.  
  22. 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
  23. hide> NumLock$B$N(BLED$B$,$D$$$?$^$^$K$J$C$F!"%-!<%\!<(B$B%I$+$i2?$bF~NO$G$-(B
  24. hide> $B$J$/$J$C$F$7$^$&$3$H$,$"$j$^$9!#(B
  25. hide> $B$$$^$N$H(B$B$3$mBP=hK!$bL5$/!"%j%V!<%H$9$k$7$+$"$j$^$;$s!#(B
  26.  
  27. hide> $BBP=hK!$r$4B8CN$N(B$BJ}$,$*$i$l$J$$$G$7$g$&$+!#(B
  28.  
  29. $B$^$k$C$-$jBP>INEK!$G$9$,!D(B
  30.  
  31. $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
  32. $B%`$r:n$j$^$7$?(B$B!#%j%V!<%H$h$j$O$^$7$G$9(B (^^)
  33.  
  34. -------------- kbdreset.c ---------------------
  35. #include <stdio.h>
  36. #include <fcntl.h>
  37. #include <sundev/kbd.h>
  38. #include <sundev/kbio.h>
  39.  
  40. main()
  41. {
  42.         int fd;
  43.         int direct;
  44.         int res;
  45.  
  46.         fd = open("/dev/kbd", O_RDONLY);
  47.         if(fd == -1){
  48.           perror("open"); return;
  49.         }
  50.  
  51.         direct = KBD_CMD_RESET;
  52.         res = ioctl(fd, KIOCCMD, &direct);
  53.         if (res < 0) perror("ioctl");
  54. }
  55. -----------------------------------------------
  56. $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
  57. $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
  58. ------------- consreset.c --------------------
  59. #include <sys/types.h>
  60. #include <stdio.h>
  61. #include <fcntl.h>
  62. #include <sys/termio.h>
  63.  
  64. main()
  65. {
  66.         
  67.         int fd;
  68.         int direct;
  69.         int res;
  70.  
  71.         fd = open("/dev/console", O_RDONLY);
  72.         if(fd == -1){
  73.           perror("open"); return;
  74.         }
  75.  
  76.         res = ioctl(fd, TIOCCONS, 0);
  77.         if (res < 0) perror("ioctl");
  78. }
  79. ------------------------------------------------
  80. $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
  81. $B$F$k$N$+$bCN$l$^$;$s$,!D(B
  82.  
  83. kbdrest $B$O2?2s$+$d$i$J$$$H2sI|$7$J$$$3$H$b$"$j$^$9!#$^$?2?2s$b;H$&$H%Q(B
  84. $B%K(B$B%C%/$9$k$3$H$b$"$j$^$9(B (^^;)
  85. --
  86. $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
  87. $B""(B E-mail: nag@mtl.t.u-tokyo.ac.jp
  88.