terminal controller, x-index directive