Comments (8)
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.
@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.
Also, what platform are you on ?
from ishell.
windows 10
from ishell.
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.
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.
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.
Since there is no certainty that the behaviour is not expected, I will be closing this.
from ishell.
Related Issues (20)
- Provide input prefix completer function HOT 1
- sort is not supported for commands list for autocomplete
- support multiline for unclosed quotes
- Clear screen not working? HOT 1
- Support to deal with ctrl-z HOT 1
- Extraneous space for multiline args
- Run command automatically on startup
- No release version for the latest code
- Expose ReadlineWithDefault HOT 1
- context
- Export lifecycle
- ishell example requires package main as the first line
- QUESTION - How to print prompt back after getting async message HOT 3
- Subshell or previous context save HOT 1
- QUESTION - SSH Channel Print Content disorder
- Not friendly to non ascii characters HOT 1
- Keyboard interrupt on MultiChoice abruptly exits the shell HOT 2
- Example of multiple level subcommands HOT 1
- do not support auto logout ?
- Support for multi-lines based on opening/closing brakcets/braces
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ishell.