{"id":16098991,"url":"https://github.com/hellerve/readline","last_synced_at":"2026-01-17T03:47:18.976Z","repository":{"id":79626350,"uuid":"58950030","full_name":"hellerve/readline","owner":"hellerve","description":"A readline port for and in zepto","archived":false,"fork":false,"pushed_at":"2016-05-23T09:20:50.000Z","size":19,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T05:12:15.289Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hellerve.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":"2016-05-16T16:52:01.000Z","updated_at":"2023-10-02T12:28:20.000Z","dependencies_parsed_at":"2023-06-11T23:00:23.065Z","dependency_job_id":null,"html_url":"https://github.com/hellerve/readline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellerve%2Freadline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellerve%2Freadline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellerve%2Freadline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellerve%2Freadline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellerve","download_url":"https://codeload.github.com/hellerve/readline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411193,"owners_count":20934650,"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":[],"created_at":"2024-10-09T18:25:20.762Z","updated_at":"2026-01-17T03:47:18.908Z","avatar_url":"https://github.com/hellerve.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# readline\n\nA readline port for and in zepto.\nSupports history and moving around; emacs-style keybindings\nare in the works and [partially supported](#emacs-bindings).\n\n## Usage\n\nThe library exposes two endpoints `readline` and `add-history`.\nThey behave as the usual readline endpoints do.\n\n```clojure\n(load \"readline/readline\")\n(define readline (import \"readline:readline\"))\n\n(define (evaluate)\n  (eval (string:parse (readline \"enter something to evaluate\u003e\"))))\n(evaluate) ; =\u003e will prompt you to enter something that should be eval'd and do so\n```\n\nYou can also easily build a minimal REPL on top of that.\n\n```clojure\n(load \"readline/readline\")\n(define readline (import \"readline:readline\"))\n(define add-history (import \"readline:add-history\"))\n\n(define (repl)\n  (let* ((str (readline \"repl\u003e\"))\n         (x (eval (string:parse str))))\n    (begin\n      (display \"=\u003e \")\n      (write x)\n      (add-history str)\n      (repl))))\n(repl)\n```\n\n## Emacs Bindings\n\nThe following key bindings are currently supported:\n\n* Ctrl+a: Moves the cursor to the beginning of the line.\n* Ctrl+b: Moves the cursor back one character (equivalent to backspace).\n* Ctrl+e: Moves the cursor to the end of the line.\n* Ctrl+f: Moves the cursor forward one character.\n* Ctrl+j: Equivalent to the enter key.\n* Ctrl+n: Moves back in history.\n* Ctrl+p: Moves forward in history.\n* Ctrl+r: [EXPERIMENTAL!] Searches in the history.\n\nPlease note that autocompletion is not yet implemented.\n\nThat's all folks!\n\n\u003chr/\u003e\n\nHave fun!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellerve%2Freadline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellerve%2Freadline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellerve%2Freadline/lists"}