home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / console / svgatext.3 / svgatext / SVGATextMode-1.3 / contrib / scripts / STM_reset < prev    next >
Encoding:
Text File  |  1995-06-01  |  1.1 KB  |  31 lines

  1. #!/bin/bash
  2. #
  3. # This scripts is called from the "resetprog" line in TextConfig,
  4. # when SVGATextMode has finished switching modes.
  5. #
  6. # This example only restarts selection, since that's all I need.
  7. # Adapt this script so it suits YOUR system setup. 
  8. #
  9. echo "Screen resized to $1x$2. Restarting GPM..."
  10. /usr/bin/gpm -k         # kill gpm
  11. /usr/bin/gpm -t ms      # for MicroSoft Mice
  12.  
  13. #
  14. # The following should work, too, but a kernel bug prevents it from working (according to Mr Rubini).
  15. # A kernel patch is included in this directory which SHOULD solve this.
  16. #
  17. # kill -WINCH `cat /var/run/gpmpid`     # gets pid from current gpm daemon, and send resize signal to it
  18. #
  19. #
  20. # Some programs need not be restarted, but just need a "SIGWINCH" signal sent to them.
  21. # Emacs and gpm seem to be examples of this (according to Alessandro Rubini)
  22. #
  23. # killall -WINCH -v emacs       # this sends window change signal to all processes called "emacs"
  24. #
  25. # for those still using selection: this restarts it
  26. #
  27. # /bin/killall -v selection
  28. # (/usr/bin/selection -t ms &)   # for MicroSoft mouse. Other mice need other option!
  29.  
  30.