charva.awt
Class ShutdownHook

java.lang.Object
  extended bycharva.awt.ShutdownHook
All Implemented Interfaces:
java.lang.Runnable

public class ShutdownHook
extends java.lang.Object
implements java.lang.Runnable

This class is used to clean up the ncurses environment and restore the terminal settings when the application terminates, whether the program exits intentionally or because of a signal such as SIGTERM, SIGHUP etc.


Method Summary
 void run()
          Implement the Runnable interface; shuts down the ncurses environment and restores the previous terminal settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

run

public void run()
Implement the Runnable interface; shuts down the ncurses environment and restores the previous terminal settings.

Specified by:
run in interface java.lang.Runnable