TrecApps / AnaGame

0 stars 1 forks source link

Patching Up TCommandPrompt and TShell #10

Open TrecApps opened 4 years ago

TrecApps commented 4 years ago

The TPromptControl (Anaface) and TShell (TrecLib) objects work together in order to present a terminal in an Anagame environment. However, I've only tested the echo command against the Windows Command Prompt

Multiple issues that could be fixed and tips on where to look for fixing them:

  1. Characters in output signifying color (and possibly italics) are not checked for (look in the TPromptControl::onDraw method where the output is retrieved.
  2. Basic file browsing commands ("cd", "pwd", "ls") are blocked ("ls" becasue Command Prompt deals with "dir" instead). Look in TShell::SubmitCommand(TString&) method.
  3. No history support (look into TPromptControl for intercepting up/down arrow keys and TShell for documenting history
  4. More complex commands should be tested

Right now, there is no dedicated branch for this issue, but the TImage branch should work.