{"id":21126156,"url":"https://github.com/mitsuki31/conio_lt","last_synced_at":"2026-04-17T10:03:19.347Z","repository":{"id":151596985,"uuid":"599502431","full_name":"mitsuki31/conio_lt","owner":"mitsuki31","description":"A minor replacement of \u003cconio.h\u003e library for GCC and Clang compilers, support cross-platform.","archived":false,"fork":false,"pushed_at":"2024-12-19T10:19:35.000Z","size":358,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T05:41:53.645Z","etag":null,"topics":["c","clang","conio","cpp","gcc","unix","win32","windows"],"latest_commit_sha":null,"homepage":"https://mitsuki31.github.io/conio_lt/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitsuki31.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":"2023-02-09T09:21:15.000Z","updated_at":"2024-12-19T10:19:39.000Z","dependencies_parsed_at":"2024-12-23T01:00:46.807Z","dependency_job_id":null,"html_url":"https://github.com/mitsuki31/conio_lt","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuki31%2Fconio_lt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuki31%2Fconio_lt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuki31%2Fconio_lt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuki31%2Fconio_lt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitsuki31","download_url":"https://codeload.github.com/mitsuki31/conio_lt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243573168,"owners_count":20312879,"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","clang","conio","cpp","gcc","unix","win32","windows"],"created_at":"2024-11-20T04:39:31.431Z","updated_at":"2025-10-24T04:20:46.683Z","avatar_url":"https://github.com/mitsuki31.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# conio_lt\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cb\u003eAuthor\u003c/b\u003e\u003c/td\u003e\n    \u003ctd\u003eRyuu Mitsuki\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cb\u003eVersion\u003c/b\u003e\u003c/td\u003e\n    \u003ctd\u003e0.2.0\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cb\u003eAPIs\u003c/b\u003e\u003c/td\u003e\n    \u003ctd\u003e12\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nThe `conio_lt` library is a lightweight adaptation of the `conio.h` library designed for Unix-like systems. Originally a library for old DOS systems, `conio.h` provided essential functions for console input and output. This lite version aims to bring these functionalities to Unix-like systems and Borland C++, especially for legacy version of Borland C++.\n\n[Visit this site](https://mitsuki31.github.io/conio_lt) for more detailed information about this project, including the APIs documentation.\n\n\u003e [!IMPORTANT]  \n\u003e On Windows, this library can be used with [Git Bash](https://git-scm.com) as the shell environment, combined with [MinGW](https://sourceforge.net/projects/mingw) for the `gcc` compiler.\n\u003e Ensure that [MinGW](https://sourceforge.net/projects/mingw) is correctly installed on Windows, and the `gcc` compiler runs smoothly.\n\n\u003cp align=\"center\"\u003e\u003c!-- Center align the image --\u003e\n  \u003cimg src=\"https://www.freepnglogos.com/uploads/linux-png/difference-between-linux-and-window-operating-system-3.png\" width=\"150\" height=\"150\"/\u003e\n\u003c/p\u003e\n\n## Available APIs\n\n| API             | Description                           |\n| --------------- | ------------------------------------- |\n| `clrscr()`      | Clears the terminal screen.           |\n| `rstscr()`      | Clears and resets the terminal screen.|\n| `getch()`       | Reads a single character from the standard input. |\n| `getche()`      | Reads a single character from the standard input and echoes it. |\n| `gotoxy(cpos_t, cpos_t)` | Moves the cursor to specified coordinates on the terminal screen. |\n| `gotox(cpos_t)` | Moves the cursor position to specified X-coordinate, leaving Y-coordinate unchanged. |\n| `gotoy(cpos_t)` | Moves the cursor position to specified Y-coordinate, leaving X-coordinate unchanged. |\n| `putch(int)`    | Writes a character to the standard output (`stdout`). |\n| `ungetch(int)`  | Pushes a character back onto the input stream (`stdin`). |\n| `wherex()`      | Retrieves the current X-coordinate of the cursor on the terminal screen. |\n| `wherey()`      | Retrieves the current Y-coordinate of the cursor on the terminal screen. |\n| `wherexy(cpos_t*, cpos_t*)` | Retrieves the current X and Y coordinates of the cursor on the terminal screen. |\n\n\u003e [!NOTE]  \n\u003e This library provides a concise set of functions commonly used for console-based applications.\n\n## Installation\n\n### Clone this repository\n\n```bash\ngit clone https://github.com/mitsuki31/conio_lt.git\n```\n\nAlternatively, download the artifact from the [latest release](https://github.com/mitsuki31/conio_lt/releases/latest).\n\n### Install as an internal library\n\n\u003e [!WARNING]  \n\u003e Requires `Administrator` or `root` privileges. This installation is specific to Unix-like systems.\n\u003e For **Borland C++**, copy it to the location where **Borland C++** searches its libraries, depending on the installation directory. Alternative way is that you can install it as an external library, see \"[Install as an external library](#install-ext-lib)\".\n\n```bash\nsudo cp conio_lt/conio_lt.h /usr/include\n```\n\n#### For Termux Android\n\nSupports both non-root and rooted devices on **Termux**. The `PREFIX` environment variable typically points to `\"~/../usr\"`, with the tilde (`~`) representing the home directory on Unix-like systems.\n\n```bash\ncp conio_lt/conio_lt.h $PREFIX/include\n```\n\n\u003e [!NOTE]  \n\u003e This installation method is suitable for **Termux Android** users and enables easy integration with C projects on your device.\n\n### \u003ca id=\"install-ext-lib\"/\u003e Install as an external library\n\n```bash\ncp conio_lt/conio_lt.h \"path/to/your_project\"\n```\n\n\u003e [!NOTE]  \n\u003e Replace `\"path/to/your_project\"` with the actual path to your project directory.\n\n## Credits\n\nThis project was inspired from [@zoelabbb/conio.h](https://github.com/zoelabbb/conio.h.git), authored by himself, [@zoelabbb](https://github.com/zoelabbb).\n\n## License\n\nThis project is licensed under the terms of the GNU General Public License. Refer to the [LICENSE](./LICENSE) file or visit \u003chttps://www.gnu.org/licenses/gpl.html\u003e for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitsuki31%2Fconio_lt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitsuki31%2Fconio_lt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitsuki31%2Fconio_lt/lists"}