documentation about terminal mode and register