22 January, 2008

Flash-light from console

With this script I use my monitor as flash-light in the darkness.

#!/bin/bash

#Switch monitor (CRT or LCD) to flash-light mode.

echo -e "\\033[47;30m"
clear
read
echo -e "\\033[0m"
clear

No comments: