11 (*shell)->
view = view;
13 (*shell)->bufferLineIndex = 0;
16 (*shell)->historyIndex = 0;
18 (*shell)->updateFn = updateFn;
19 (*shell)->currentLine = NULL;
20 (*shell)->userInput = NULL;
26 for(uint32_t i = 0; i < ARC_Vector_Size(shell->
history); i++){
51 uint32_t maxHistory = ARC_Vector_Size(shell->
history);
52 if(index >= maxHistory){
void ARC_ConsoleBuffer_Render(ARC_ConsoleBuffer *buffer, ARC_ConsoleView *view)
renders a buffer to a ARC_ConsoleView
void ARC_ConsoleBuffer_Create(ARC_ConsoleBuffer **buffer)
creates ARC_ConsoleBuffer type
void ARC_ConsoleBuffer_Destroy(ARC_ConsoleBuffer *buffer)
destroys ARC_ConsoleBuffer type
void ARC_ConsoleShell_Render(ARC_ConsoleShell *shell)
renders the ARC_ConsoleShell type
void ARC_ConsoleShell_Destroy(ARC_ConsoleShell *shell)
destroys ARC_ConsoleShell type
ARC_String * ARC_ConsoleShell_GetHistoryAt(ARC_ConsoleShell *shell, uint32_t index)
gets history from ARC_ConsoleShell
void ARC_ConsoleShell_Create(ARC_ConsoleShell **shell, ARC_ConsoleView *view, ARC_ConsoleShell_UpdateFn updateFn)
creates ARC_ConsoleShell type
void ARC_ConsoleShell_AddHistory(ARC_ConsoleShell *shell, ARC_String *string)
adds history ARC_String to ARC_ConsoleShell
void ARC_ConsoleShell_Update(ARC_ConsoleShell *shell)
updates the ARC_ConsoleShell type
void(* ARC_ConsoleShell_UpdateFn)(ARC_ConsoleShell *shell)
void ARC_String_Destroy(ARC_String *string)
destroys ARC_String type
ARC_ConsoleBuffer * buffer
ARC_ConsoleShell_UpdateFn updateFn
substring position within a string
void * ARC_Vector_Get(ARC_Vector *vector, uint32_t index)
gets an item from an ARC_Vector at a position index
void ARC_Vector_Add(ARC_Vector *vector, void *data)
adds an item to an ARC_Vector
void ARC_Vector_Destroy(ARC_Vector *vector)
destroys an ARC_Vector
void ARC_Vector_Create(ARC_Vector **vector, ARC_Vector_CompareDataFn *compareDataFn, ARC_Vector_DestroyDataFn *destroyDataFn)
creates an ARC_Vector which is an "expandable" array