|
@@ -95,6 +95,13 @@ void autocomplete_run(shellmatta_instance_t *inst)
|
|
if(printedLen > 0u)
|
|
if(printedLen > 0u)
|
|
{
|
|
{
|
|
utils_writeEcho(inst, "\r\n", 2u);
|
|
utils_writeEcho(inst, "\r\n", 2u);
|
|
|
|
+#ifdef SHELLMATTA_AUTHENTICATION
|
|
|
|
+ if (NULL != inst->userPointer)
|
|
|
|
+ {
|
|
|
|
+ utils_writeEcho(inst, inst->userPointer->username, strlen(inst->userPointer->username));
|
|
|
|
+ utils_writeEcho(inst, "@", 1);
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
utils_writeEcho(inst, inst->prompt, strlen(inst->prompt));
|
|
utils_writeEcho(inst, inst->prompt, strlen(inst->prompt));
|
|
utils_writeEcho(inst, inst->buffer, inst->inputCount);
|
|
utils_writeEcho(inst, inst->buffer, inst->inputCount);
|
|
tempCursor = inst->cursor;
|
|
tempCursor = inst->cursor;
|