home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20992 < prev    next >
Encoding:
Text File  |  1992-12-21  |  3.0 KB  |  83 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!unislc!erc
  3. From: erc@unislc.uucp (Ed Carp)
  4. Subject: [KERNEL PATCH] Make the cursor BIG...
  5. X-Newsreader: TIN [version 1.1 PL6]
  6. Message-ID: <1992Dec18.185409.1235@unislc.uucp>
  7. Organization: Unisys Corporation SLC
  8. Date: Fri, 18 Dec 1992 18:54:09 GMT
  9. Lines: 72
  10.  
  11. You know, I *hate* wimpy little blinking cursors.  Half the time, I have to
  12. search the screen to find out where the syupid thing is.  I tried 386BSD a
  13. while back, and one of the things that really impressed me was the BIG cursor.
  14. I mean, you could SEE the thing!  So, in a pique of fury at the wimpy cursor
  15. that linux gives us, I wrote a 9-byte .COM program to set my cursor before I
  16. use bootlin to bring up linux.  But, I thought, what if I boot from floppy?
  17. That I lose my lovely big cursor!  Not to fear, Ed is here! :)
  18.  
  19. So, what I did was work up this itsy-bitsy patch to linux to let me set
  20. my cursor to something other than Mr. Wimp.  It works great on my monochrome
  21. screen, and it should work great on any other terminal, too.  I'm not sure
  22. about VGA/SVGA, though - if it doesn't, let me know and I'll think of
  23. something.
  24.  
  25. I'd really like to see this thing make it into the next kernel - not in it's
  26. present form, of course - it'd be nice to put the define in the top Makefile.
  27.  
  28. Here it is.  Short enough to be understandable by even the most neophyte
  29. hardware hacker... :)
  30. --------------------------------- cut here -----------------------------------
  31. *** linux/kernel/chr_drv/Makefile.orig    Fri Dec 18 11:33:47 1992
  32. --- linux/kernel/chr_drv/Makefile    Fri Dec 18 11:33:36 1992
  33. ***************
  34. *** 29,35 ****
  35.       sync
  36.   
  37.   console.o: console.c
  38. !     $(CC) $(CFLAGS) -c -o console.o console.c
  39.   
  40.   keyboard.o: keyboard.c
  41.       $(CC) $(CFLAGS) $(KEYBOARD) -c -o keyboard.o keyboard.c
  42. --- 29,35 ----
  43.       sync
  44.   
  45.   console.o: console.c
  46. !     $(CC) $(CFLAGS) -DBIG_CURSOR -c -o console.o console.c
  47.   
  48.   keyboard.o: keyboard.c
  49.       $(CC) $(CFLAGS) $(KEYBOARD) -c -o keyboard.o keyboard.c
  50. *** linux/kernel/chr_drv/console.c.orig    Thu Dec  3 16:32:41 1992
  51. --- linux/kernel/chr_drv/console.c    Fri Dec 18 11:24:05 1992
  52. ***************
  53. *** 1320,1325 ****
  54. --- 1320,1335 ----
  55.       }
  56.       currcons = fg_console = 0;
  57.   
  58. +     /* Make the cursor big if requested */
  59. + #ifdef BIG_CURSOR
  60. +     outb_p(10, video_port_reg);
  61. +     outb_p(0, video_port_reg+1);
  62. +     outb_p(11, video_port_reg);
  63. +     if(video_type == VIDEO_TYPE_MDA)
  64. +         outb_p(13, video_port_reg+1);
  65. +     else
  66. +         outb_p(7, video_port_reg+1);
  67. + #endif
  68.       video_mem_start = video_mem_base;
  69.       video_mem_end = video_mem_term;
  70.       origin = video_mem_start;
  71. -- 
  72. Ed Carp, N7EKG     erc@apple.com, khijol!erc@saturn.upl.com       801/538-0177
  73.  
  74. "There is nothing to seek and nothing to find.  You're already enlightened,
  75. and all the words in the world won't give you what you already have.  The wise
  76. seeker, therefore, is concerned with one thing only: to become aware of what
  77. he already is, of the True Self within."  -- Zen maxim
  78.  
  79. -- 
  80. Ed Carp            erc@apple.com, erc@saturn.upl.com    801/538-0177
  81.  
  82. Who and what would you be if you went beyond your deepest fears?
  83.