added a brightness terminal control