{"id":19958654,"url":"https://github.com/wick3dr0se/term","last_synced_at":"2026-06-28T16:53:04.088Z","repository":{"id":168088078,"uuid":"643709830","full_name":"wick3dr0se/term","owner":"wick3dr0se","description":"A small library of helpful terminal procedures","archived":false,"fork":false,"pushed_at":"2023-08-20T01:05:33.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-24T20:39:07.961Z","etag":null,"topics":["library","module","nim","nim-lang","nimble"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/wick3dr0se.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":"2023-05-22T01:50:48.000Z","updated_at":"2025-11-04T08:04:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"df803b7f-92b7-4018-990a-459a638541fe","html_url":"https://github.com/wick3dr0se/term","commit_stats":null,"previous_names":["wick3dr0se/nim-term","wick3dr0se/term"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/wick3dr0se/term","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wick3dr0se%2Fterm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wick3dr0se%2Fterm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wick3dr0se%2Fterm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wick3dr0se%2Fterm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wick3dr0se","download_url":"https://codeload.github.com/wick3dr0se/term/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wick3dr0se%2Fterm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34896652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["library","module","nim","nim-lang","nimble"],"created_at":"2024-11-13T01:44:00.350Z","updated_at":"2026-06-28T16:53:04.047Z","avatar_url":"https://github.com/wick3dr0se.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eTerm :books:\u003c/h1\u003e\n\u003cp\u003eThis library provides functionality for interacting with the terminal, manipulating terminal modes, screen buffers, cursor behavior, generating colors and more. \u003ccode\u003eterm\u003c/code\u003e among many things, can assist in building a TUI without a dependency to curses, abstract the difficulty of working with the terminal and ANSI escape sequences\u003c/p\u003e\n \n\u003cp\u003eThe convienently (clearly not creatively) named \u003ccode\u003eterm\u003c/code\u003e library mainly utilizies the termios library, raw ANSI escape sequences and other standard Nim libraries\u003c/p\u003e\n\u003ca href='#'\u003e\u003cimg src=\"https://img.shields.io/badge/Made%20with-Nim-\u0026?style=flat-square\u0026labelColor=232329\u0026color=FFE953\u0026logo=nim\"/\u003e\u003c/a\u003e\n\u003ca href='#'\u003e\u003cimg src=\"https://img.shields.io/badge/Maintained%3F-Yes-green.svg?style=flat-square\u0026labelColor=232329\u0026color=5277C3\"\u003e\u003c/img\u003e\u003c/a\u003e\n\u003cbr/\u003e\n\n\u003ca href='#'\u003e\u003cimg src=\"https://img.shields.io/github/size/wick3dr0se/term/src/term.nim?branch=main\u0026color=%231DBF73\u0026label=Size\u0026logo=files\u0026logoColor=%231DBF73\u0026style=flat-square\u0026labelColor=232329\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://discord.gg/W4mQqNnfSq\"\u003e\n\u003cimg src=\"https://discordapp.com/api/guilds/913584348937207839/widget.png?style=shield\"/\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n# Installation\nInstall `term` from `nimble`\n```bash\nnimble install https://github.com/wick3dr0se/term\n```\n\n# Usage\nImport `term`\n```python\nimport term\n```\n\n## A basic few implementations\n\nSet the terminal to raw, canonical, noecho or cooked (default) mode\n```python\nsetMode(noecho) # disable echoing to the terminal\n\nsetMode(cooked) # *reset* the terminal\n```\n\nScroll the terminal screen\n```python\nscrollUp(10) # scroll up 10 lines\n\nscrollDown() # scroll down 1 (implicit) line\n```\n\nSwitch to the alternative screen buffer\n```python\naltBuffer()\n\nmainBuffer() # switch back to the main buffer\n```\n\nOutput a random colored string\n```python\nechoRandColor(\"test\") # will print in true color if possible\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwick3dr0se%2Fterm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwick3dr0se%2Fterm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwick3dr0se%2Fterm/lists"}