In his well known code to send commands to the cmd line, the code starts like this:
public static int Command(params object[] args) {
if (AcAp.DocumentManager.IsApplicationContext)
return 0;
int stat = 0;
int cnt = 0;
Bricscad's .net api does not have the IsApplicationContext property for DocumentManager.
From what I read, this is not trivial.
Are there other ideas on how to check if the command line is ready for input?