RTEMS CPU Kit with SuperCore
Functions
shell_getprompt.c File Reference
#include <stdio.h>
#include <time.h>
#include <rtems.h>
#include <rtems/error.h>
#include <rtems/libio.h>
#include <rtems/libio_.h>
#include <rtems/system.h>
#include <rtems/shell.h>
#include "internal.h"
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <pwd.h>
Include dependency graph for shell_getprompt.c:

Functions

void rtems_shell_get_prompt (rtems_shell_env_t *shell_env, char *prompt, size_t size)
 This method dynamically builds the command line prompt string and places it in prompt. More...
 

Function Documentation

◆ rtems_shell_get_prompt()

void rtems_shell_get_prompt ( rtems_shell_env_t shell_env,
char *  prompt,
size_t  size 
)

This method dynamically builds the command line prompt string and places it in prompt.

Parameters
[in]shell_envis the shell execution environment
[in]promptis a pointer to a string buffer area
[in]sizeis length of the prompt buffer area
Returns
This method fills in the memory pointed to by prompt.
Note
An application specific implementation can be provided by the user.