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

Feature request for undo/redo/retry... #31

Open
ifdog opened this issue Aug 12, 2020 · 3 comments
Open

Feature request for undo/redo/retry... #31

ifdog opened this issue Aug 12, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@ifdog
Copy link

ifdog commented Aug 12, 2020

Hi, shall we have the feature of "redo/undo/retry/alter_action/alter_memory" that exists in official web interface and
also API lib?

@p3r7
Copy link
Member

p3r7 commented Aug 12, 2020

Hi there.

I had the idea of implementing it for quite a while but I'm stuck w/ one aspect. Anyway, thanks for explicitly logging the issue.

API-wise, I guess it's pretty straightforward to do. The problem is terminal display-wise.

Initially I thought about using the curses library to remove the undone / altered action. I've started playing around with on another side-project. But one big limitation is that this library is not compatible with Windows...

A saner approach would be to use directly lower-level escape sequences to be able to redisplay at a previous position in the terminal. What I don't know is if those escape sequences are cross-platform or *nix-only...

So I need to do some more research regarding this (rather esoteric) subject.

@p3r7 p3r7 added the enhancement New feature or request label Aug 12, 2020
@ifdog
Copy link
Author

ifdog commented Aug 12, 2020

Hi, some time ago I come across this one.not sure if it will help.
https://github.com/peterbrittain/asciimatics

@p3r7
Copy link
Member

p3r7 commented Aug 12, 2020

Looks like a promising solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants