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

The Ctrl+Z cause some text remain on screen #346

Closed
doggy8088 opened this issue Sep 3, 2015 · 7 comments
Closed

The Ctrl+Z cause some text remain on screen #346

doggy8088 opened this issue Sep 3, 2015 · 7 comments

Comments

@doggy8088
Copy link

When I using Cmder, I met this problem long time ago. When I paste a text with Ctrl+V onto the Console, then press Ctrl+Z (undo). The first character will remain on screen. Here is the steps to reproduce this problem.

  1. Open cmder window (Command prompt)
    image
  2. Paste a text on it. For example, http://cmder.net/
    image
  3. Then press Ctrl+Z undo changes. You'll see "h" remain on window and the "h" can't be deleted unless you clear the screen by "Ctrl+L".
    image
  4. If you just paste the same text again. The screen will like the following screenshot.
    image
@uahim
Copy link

uahim commented Sep 3, 2015

hit Ctrl+Z again? :) but seriously, I can confirm this happening in pure cmd.exe, apparently it deletes portions of text rather than the entire pasted/typed string. but maybe it's a feature rather than a bug?

@doggy8088
Copy link
Author

@uahim I tried. Hit Ctrl+Z multiple times doesn't solve the problem. Also, the pure cmd.exe doesn't have a "Ctrl+Z" (undo) feature. I don't understand what do you mean about "maybe it's a feature rather than a bug" ?

@doggy8088
Copy link
Author

I recorded a short video to show this problem. Please check: https://youtu.be/sQ5ZURcAi5Q

@uahim
Copy link

uahim commented Sep 3, 2015

@doggy8088 sorry, I chose my words poorly: by "pure cmd" I meant it also happens in clink+cmd rather than clink+cmder, of course; and in clink+cmd this behavior can be reproduced, but can be worked around with simply repeating the shortcut (which indeed is a little annoying).

with the last sentence I meant maybe it is the way the authoer intended it to be or it may be depending on readline.

@doggy8088
Copy link
Author

@uahim I tried to use clink+cmd that is ok. It may not a problem from clink or readline. I'm not sure. Is it possible a Cmder problem?

@doggy8088
Copy link
Author

I find out the root cause finally. I think this problem is not related to clink. My workaround was noted here: cmderdev/cmder#623

@uahim
Copy link

uahim commented Sep 3, 2015

interesting. as I said I'm not using cmder, but I experience the same behavior. when I paste https://github.com/mridgers/clink/issues/346, I need to hit Ctrl+Z thrice: it first deletes "/346", then "ridgers/clink/issues" and the last time it deletes the rest.

this is reproducable in multiple/new cmd windows.

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

No branches or pull requests

2 participants