{"id":17942625,"url":"https://github.com/petercamilleri/pause_output","last_synced_at":"2025-04-03T13:27:43.375Z","repository":{"id":56887591,"uuid":"161807735","full_name":"PeterCamilleri/pause_output","owner":"PeterCamilleri","description":"A simple facility to pause output on the console terminal.","archived":false,"fork":false,"pushed_at":"2021-05-19T15:43:01.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T07:39:27.215Z","etag":null,"topics":["console","more","ruby","rubygem"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/PeterCamilleri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-14T15:54:13.000Z","updated_at":"2023-03-05T04:20:47.000Z","dependencies_parsed_at":"2022-08-21T00:20:30.286Z","dependency_job_id":null,"html_url":"https://github.com/PeterCamilleri/pause_output","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterCamilleri%2Fpause_output","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterCamilleri%2Fpause_output/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterCamilleri%2Fpause_output/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterCamilleri%2Fpause_output/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterCamilleri","download_url":"https://codeload.github.com/PeterCamilleri/pause_output/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247008824,"owners_count":20868428,"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":["console","more","ruby","rubygem"],"created_at":"2024-10-29T03:06:31.771Z","updated_at":"2025-04-03T13:27:43.356Z","avatar_url":"https://github.com/PeterCamilleri.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PauseOutput\n\nThe pause_output gem provides a facility like the classic more (or less) utility\nwithin Ruby programs. This little bit of code started out as a feature of the\nmysh (my shell) program but was spun off as it was felt that this capability\nhad use on a larger scale.\n\nAlso included is a simple demo program called pom (Pause Output More) This\nsimple demo accepts a list of files and displays them, pausing as needed.\nIt is as easy to use as this:\n\n    pom README.md\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'pause_output'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install pause_output\n\n## Usage\n\nThe pause_output gem works through the more command. This simple command\naccepts optional hash arguments and a block. For example:\n\n```ruby\nmore do\n  100.times do |i|\n    puts \"#{'%5d' % i}, #{'%6d' % (i*i)}, #{'%8d' % (i*i*i)}\"\n  end\nend\n```\n\n#### Options\n\nThe following options are available for use in the optional options hash\nparameter of the global Object#more method:\n\nOption      | Values  | Default       | Description\n------------|---------|---------------|----------------\n:page_pause | boolean | true          | Is page pause enabled?\n:page_height| integer | console height| The height of the page.\n:page_width | integer | console width | The width of the page.\n:page_msg   | string  | \"Press space (line), n (no pause), q(uit) or other (page):\" | The paused prompt message.\n:one_line   | string  | \" \"           | The key to progress by one line.\n:skip_all   | string  | \"q\"           | The key to skip the rest of the output.\n:no_pause   | string  | \"n\"           | The key to display the rest with no pauses.\n\nThe default value is used if the option is absent from the hash. Unsupported\noption values are ignored and have no effect.\n\nNotes:\n\n* Setting page_pause to false can allow a block of code to run without pausing\nat page breaks, if that is desired. Since, Ruby has no boolean type, this can\nbe any object. The values false, \"false\", \"off\", or \"no\" will disable pauses.\n* If the :page_height and :page_width values are not valid, the default values\nwill be used instead.\n* Nesting of \"more\" blocks is allowed. However, only the options of the outermost\nblock are active. The options passed into \"inner\" blocks are ignored.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\nOR...\n\n* Make a suggestion by raising an\n [issue](https://github.com/PeterCamilleri/pause_output/issues)\n. All ideas and comments are welcome.\n\n## License\n\nThe gem is available as open source under the terms of the\n[MIT License](./LICENSE.txt).\n\n## Code of Conduct\n\nEveryone interacting in the pause_output project’s codebases, issue trackers,\nchat rooms and mailing lists is expected to follow the\n[code of conduct](./CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetercamilleri%2Fpause_output","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetercamilleri%2Fpause_output","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetercamilleri%2Fpause_output/lists"}