Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REPL #8

Open
loganzartman opened this issue Oct 11, 2019 · 0 comments
Open

REPL #8

loganzartman opened this issue Oct 11, 2019 · 0 comments
Labels
status: planning Feature in planning

Comments

@loganzartman
Copy link
Owner

Given more backend support like cursor save/restore and relative cursor motion, we could create a rich REPL utility for the non-alternate screen.
Some ideas:

  • REPL helper which can print() a prompt, an input line, and extra text below
  • a LineBuffer, which is an auto-resizing Nx1 buffer
    • implements blit_to() to support copying (with wrapping) to another Buffer
    • implements render to backend without cursor movement, allowing automatic wrapping
  • REPL accepts LineBuffer for prompt and input line (maybe these are both a single LineBuffer) and an "extra" or "hint" buffer
  • hint buffer can be displayed below the input line, either transiently or permanently (creating more space before the next prompt/input line rather than being erased)
  • rendering of hint buffer would require using relative cursor motion--can we extend this to all buffer rendering or do we need a separate renderer for REPL?
@loganzartman loganzartman added enhancement New feature or request status: planning Feature in planning and removed enhancement New feature or request labels Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: planning Feature in planning
Projects
None yet
Development

No branches or pull requests

1 participant