// For the console example, here we are using a more C++ like approach of declaring a class to hold the data and the functions.
structExampleAppConsole
structExampleAppConsole
{
{
charInputBuf[256];
charInputBuf[256];
@ -11701,8 +11699,7 @@ struct ExampleAppConsole
ImGui::TextWrapped("This example implements a console with basic coloring, completion and history. A more elaborate implementation may want to store entries along with extra data such as timestamp, emitter, etc.");
ImGui::TextWrapped("This example implements a console with basic coloring, completion and history. A more elaborate implementation may want to store entries along with extra data such as timestamp, emitter, etc.");
ImGui::TextWrapped("Enter 'HELP' for help, press TAB to use text completion.");
ImGui::TextWrapped("Enter 'HELP' for help, press TAB to use text completion.");
// TODO: display from bottom
// TODO: display items starting from the bottom
// TODO: clip manually
if(ImGui::SmallButton("Add Dummy Text")){AddLog("%d some text",Items.size());AddLog("some more text");AddLog("display very important message here!");}ImGui::SameLine();
if(ImGui::SmallButton("Add Dummy Text")){AddLog("%d some text",Items.size());AddLog("some more text");AddLog("display very important message here!");}ImGui::SameLine();
if(ImGui::SmallButton("Add Dummy Error"))AddLog("[error] something went wrong");ImGui::SameLine();
if(ImGui::SmallButton("Add Dummy Error"))AddLog("[error] something went wrong");ImGui::SameLine();