[kernel] terminal: control cursor
[kernel] clean up terminal interface a bit