charva.awt

Class ShutdownHook

Implemented Interfaces:
Runnable

public class ShutdownHook
extends java.lang.Object
implements 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.

Method Details

run

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