Simple terminal implementation for X
