NordicPlayground / pc-xterm-lib

Other
2 stars 0 forks source link

Combine 'line' mode and 'unspecifiedCommandHandler' & others #21

Open michaeljones opened 3 years ago

michaeljones commented 3 years ago

We've just merged https://github.com/NordicPlayground/pc-xterm-lib/pull/20 which was done without any breaking changes but it introduces onData and onKey handlers for a new 'character' mode.

As character mode by-passes a lot of the functionality of NrfTerminalCommander, it might be reasonable to move the commands and unspecifiedCommandHandler options and maybe others to be part of the 'line' mode in the same way that onData and onKey are part of the 'character' mode.

Not necessary but it seems like it might introduce more symmetry in the API. I just wanted to record the thought while it was on my mind. Feel free to close if we don't act on it.