{"id":14982594,"url":"https://github.com/epasveer/qansitextedit","last_synced_at":"2026-02-23T23:38:16.183Z","repository":{"id":247296831,"uuid":"825472816","full_name":"epasveer/QAnsiTextEdit","owner":"epasveer","description":"An extension to QPlainTextEdit to support ANSI color escape codes.","archived":false,"fork":false,"pushed_at":"2024-07-28T20:55:02.000Z","size":80,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-29T07:41:41.428Z","etag":null,"topics":["ansi-codes","ansi-colors","qt6","qtextedit"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/epasveer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-07T21:49:13.000Z","updated_at":"2024-07-28T20:55:04.000Z","dependencies_parsed_at":"2024-09-24T10:00:59.987Z","dependency_job_id":null,"html_url":"https://github.com/epasveer/QAnsiTextEdit","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"a2b8456125bcb5d94c1604f278a68336a8d96ab3"},"previous_names":["epasveer/qansitextedit"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epasveer%2FQAnsiTextEdit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epasveer%2FQAnsiTextEdit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epasveer%2FQAnsiTextEdit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epasveer%2FQAnsiTextEdit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epasveer","download_url":"https://codeload.github.com/epasveer/QAnsiTextEdit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219857515,"owners_count":16556061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansi-codes","ansi-colors","qt6","qtextedit"],"created_at":"2024-09-24T14:05:42.626Z","updated_at":"2025-10-29T16:30:37.227Z","avatar_url":"https://github.com/epasveer.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"QAnsiTextEdit\n=============\n\nQAnsiTextEdit is a widget to display text that uses ANSI codes to colorize\nthe text's foreground and background colors. Text underlining and bolding is\nalso supported.\n\nQAnsiTextEdit is an extention to Qt's QPlainTextEdit widget. It add these\napi's that support ANSI codes.\n```\nvoid QAnsiTextEdit::setAnsiText (const QString\u0026 text);\nvoid QAnsiTextEdit::appendAnsiText (const QString\u0026 text);\nvoid QAnsiTextEdit::insertAnsiText (const QString\u0026 text);\n```\n\nIt should be assumed to use QAnsiTextEdit in readonly mode. Also, using\nyour own ```QTextCursor``` will likely not behave well.\n\nTo use QAnsiTextEdit, copy the QAnsiTextEdit.h and QAnsiTextEdit.cpp files\nto your project.\n\nScreenShot\n==========\n\nRunning the test program will show a window with text printed using\nANSI codes.\n\n![](images/qansitextedit.png)\n\nLook at ```main.cpp``` to see how the text is sent to ```QAnsiTextEdit``` and to\nthe console.\n\nThe test program uses ```ANSI-color-codes.h``` from\n\nhttps://gist.github.com/RabaDabaDoba/145049536f815903c79944599c6f952a\n\nto easily print text with ANSI codes.\n\n\nBuilding QAnsiTextEdit demo\n===========================\n\nDownload the latest code using 'clone'.\n\n    % git clone https://github.com/epasveer/QAnsiTextEdit\n\nSetup cmake and build\n\n    % cd QAnsiTextEdit/src\n    % cd build\n    % cmake ..\n\n    % make\n\nInstall it (or not), which will usually copy it to /usr/local/bin.\nMay need root access.\n\n    % cd QAnsiTextEdit/src/build\n    % sudo make install\n\nLICENSE\n=======\n\nQAnsiTextEdit source code is licensed under the MIT License.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepasveer%2Fqansitextedit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepasveer%2Fqansitextedit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepasveer%2Fqansitextedit/lists"}