Code Monkey home page Code Monkey logo

Comments (8)

cking avatar cking commented on May 28, 2024 1

According to https://superuser.com/a/214261 ctrl+z doesnt undo in CLI.

The EOF char is much more correct IMO. My 2 cents

from ishell.

abiosoft avatar abiosoft commented on May 28, 2024

@haggerty-william what is the expected behaviour ?

For me, ctrl-z suspends the process. And fg brings it back to where I was.

from ishell.

abiosoft avatar abiosoft commented on May 28, 2024

Also, what platform are you on ?

from ishell.

haggerty-william avatar haggerty-william commented on May 28, 2024

windows 10

from ishell.

abiosoft avatar abiosoft commented on May 28, 2024

Oh, good to hear that. I've been looking for testers on Windows.
What is the expected behaviour for ctrl-z on Windows ?

from ishell.

haggerty-william avatar haggerty-william commented on May 28, 2024

it is the 'undo' command on windows.
In my experience windows console like apps can react several different, I personally believe that some behaviors are better then others so I will document my opinion here too :)

undo last keystroke || power-shell does this. and its wonderful!!
input "^Z" || this is what windows cmd does. personally hate this behavior, and I dont understand why it does this.
clear line || forget where I saw this, slightly better then what windows cmd does

from ishell.

haggerty-william avatar haggerty-william commented on May 28, 2024

I would like to point out that no one here ever claimed that cmd interpreted ctrl+z as a undo.

Also note that the Powershell CLI(made by Microsoft) takes (shift+ctrl+z) as the EOF signal.

Opinion:
I think having a longer shortcut for the EOF signal like the ps CLI is better because it is used significantly less then a undo functionality.
I also don't think my opinion is that important because I never used the EOF signal to do anything before. Honestly, I cant even think of a situation where I could use a EOF signal in cmd or any cli to do something.

from ishell.

abiosoft avatar abiosoft commented on May 28, 2024

Since there is no certainty that the behaviour is not expected, I will be closing this.

from ishell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.