isocline
History

Readline input history. More...

Functions

void ic_set_history (const char *fname, long max_entries)
 Enable history. More...
 
void ic_history_remove_last (void)
 Remove the last entry in the history. More...
 
void ic_history_clear (void)
 Clear the history. More...
 
void ic_history_add (const char *entry)
 Add an entry to the history. More...
 

Detailed Description

Readline input history.

Function Documentation

◆ ic_history_add()

void ic_history_add ( const char *  entry)

Add an entry to the history.

◆ ic_history_clear()

void ic_history_clear ( void  )

Clear the history.

◆ ic_history_remove_last()

void ic_history_remove_last ( void  )

Remove the last entry in the history.

The last returned input from ic_readline() is automatically added to the history; this function removes it.

◆ ic_set_history()

void ic_set_history ( const char *  fname,
long  max_entries 
)

Enable history.

Use a NULL filename to not persist the history. Use -1 for max_entries to get the default (200).