ESL-24 Add tab complete to windows

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16010 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Jeff Lenk
2009-12-21 17:39:05 +00:00
parent 5c86f214b9
commit c8c4a1afe5
2 changed files with 439 additions and 25 deletions

View File

@@ -1123,7 +1123,10 @@ static int console_bufferInput (char* addchars, int len, char *cmd, int key)
cmd[--iCmdBuffer] = 0;
}
iCmdCursor = (int)strlen(cmd);
printf("%s%s", prompt, cmd);
printf("%s", prompt);
GetConsoleScreenBufferInfo(hOut, &info);
orgPosition = info.dwCursorPosition;
printf("%s", cmd);
return 0;
}