{"id":23090336,"url":"https://github.com/d-naveenz/console-text-format-lib","last_synced_at":"2025-04-03T17:43:45.105Z","repository":{"id":154670671,"uuid":"388896468","full_name":"D-Naveenz/Console-Text-Format-lib","owner":"D-Naveenz","description":"C library for text formats and alignments and text-based graphics.","archived":false,"fork":false,"pushed_at":"2021-08-28T09:35:03.000Z","size":120,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T06:18:50.964Z","etag":null,"topics":["c","console","text-formatting"],"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/D-Naveenz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-07-23T18:45:42.000Z","updated_at":"2021-08-28T09:35:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"59012417-4972-4d37-8d23-df761b793ab6","html_url":"https://github.com/D-Naveenz/Console-Text-Format-lib","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D-Naveenz%2FConsole-Text-Format-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D-Naveenz%2FConsole-Text-Format-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D-Naveenz%2FConsole-Text-Format-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D-Naveenz%2FConsole-Text-Format-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/D-Naveenz","download_url":"https://codeload.github.com/D-Naveenz/Console-Text-Format-lib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247051967,"owners_count":20875677,"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":["c","console","text-formatting"],"created_at":"2024-12-16T20:52:55.345Z","updated_at":"2025-04-03T17:43:45.079Z","avatar_url":"https://github.com/D-Naveenz.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Console Text Format lib (libcontf)\n#### v1.2\n\n##### _Description_\nConsole-Text-Format-lib is a C library that can handle different text formats and alignments. It also has the ability to create text-based graphics. Developers have to go through a difficult path to deal with the strings of the C language. It will be more difficult in console programs. Therefore, this library helps to reduce the size of the code for printing.\n\n\u003eWhen you want to print text in the center of the console window, you will do the following; But do you believe you can find the right center using the tab spaces?\n```C\nprintf(\"\\t\\t\\tLet's hope this is a ceter-aligned text.\");\n```\n\n##### _Available Features of the current version_\n1. Text alignment of the output _(left, center, right)_  \n   ![Text Alignments](res/text-alignment.png)\n2. Change the buffer width of the formatted text\n   ![Format Text with buffer](res/text-buffer.png)\n3. Draw borders _(left \u0026 right)_ of the formatted text.  \n   It will help to create text arts, tables, shapes, etc.  \n   ![Text with borders](res/text-border.png)\n4. Draw horizontal lines with user-defined settings _(line format, size, ends)_  \n   ![separator](res/line-separator.png)  \n   ![Draw lines](res/line-buffer.png)\n5. Ability to combine text format functions with line drawing functions.\n   ![Print a cell](res/combinations.png)\n\n##### _How to use libcontf_\n1. Add the static library and the header to your c project\n   It is better if you make a folder (ex:include) for headers in your workspace folder. \n2. Add the include path to project in your IDE or text editor.\n   \u003e_**VsCode:** c_cpp_properties.json_  \n   ```json\n   \"includePath\": [\n        \"${default}\",\n        \"${workspaceFolder}/include\"\n    ],\n    ```\n3. include the header _**(contf.h)**_ to your code.\n4. Compile the code with including the header and the library  \n   `gcc -g {C file} -I {include folder} -L {library folder} -lcontf -o {output file}`\n   \u003e_**VsCode:** tasks.json_  \n   ```json\n   \"args\": [\n        \"-g\",\n        \"${file}\",\n        \"-I\",\n        \"${workspaceFolder}\\\\include\",\n        \"-L\",\n        \"${workspaceFolder}\",\n        \"-lcontf\",\n        \"-o\",\n        \"${fileDirname}\\\\${fileBasenameNoExtension}.exe\"\n    ],\n    ```\n5. Make sure to **don't run the program in intergrated terminals.**  \n   libcontf won't initialize in intergrated terminals.  \n   \u003e_**VsCode:** launch.json_  \n   ```json\n   \"externalConsole\": true,\n    ```\n\n_Copyright (c) 2021 Naveen Dharmathunga_","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-naveenz%2Fconsole-text-format-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd-naveenz%2Fconsole-text-format-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-naveenz%2Fconsole-text-format-lib/lists"}