Removed intermediate `RCPLTerminal` datatype
Removed intermediate `RCPLCommand` type
Merged `handleToken` and `terminalDriver` into a single function