console-rs / console-rs/console

alternate screen

Open
#63 1 comment 1 reaction 0 assignees View on GitHub

@aeosynth is already working on this.

Since May 20, 2020.

  • #65 by @aeosynth — open
Dominant language
Rust
Stars
1.2k
Forks
144
Avg merge
8h 24m
Merged PRs (30d)
4

Description

I'm writing a 'full screen' TUI, and want to use the alternate screen to not mess up the user's main screen.

https://stackoverflow.com/a/11024208/131023

You can switch to the alternate screen using this command:

$ tput smcup

And back with:

$ tput rmcup

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the issue's requested alternate-screen behavior and the linked pull request #65. Check how the console crate currently exposes terminal controls, then compare the proposed approach with the smcup and rmcup commands cited in the issue. Done means the alternate screen can be entered and exited without disturbing the user's main screen.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.