Comments (6)
I absolutely agree changing the current Ctrl+Q
to Esc or any other program that does not interact with any other program, especially VS2022
or VSCode
, where Ctrl+Q
is intercepted by any of the aforementioned, instead of the developed application, if we are using an integrated terminal. I know it is possible to change the shortcut for these applications but it would be better to change the Terminal.Gui
shortcut.
from terminal.gui.
Escape is also not exactly a hard standard, and is in fact used by some software as what it is - the escape key1, not a "quit application" key.
Even in Unixy systems, it's all over the place.
Three of the most commonly used utilities, emacs (ctrl-x, ctrl-c, or esc-x depending on distro defaults), vi (esc if in any other mode and then :q
), and nano (ctrl-x), all have different means of exiting. In fact, vi is a big case for esc NOT meaning quit.
As such, I think it's fine we default to ctrl+Q, as it's unlikely to be otherwise bound beyond the scope of the application using TG.
Footnotes
-
such as for entering characters the terminal would normally disallow, ignore, or which have special meaning, like
!
β©
from terminal.gui.
OCGV has used esc for 4 years with tons of Mac and Linux users. None have complained.
I think the default quit key should be esc on all platforms. With CM it is trivial for users to change this if they don't like it.
from terminal.gui.
It would be nice if everyone would just adopt one.
My main opinion on it is basically it ain't broke, so don't fix it.
But it's also unimportant for exactly this reason, so it's not worth more back and forth if you want to change it regardless π€·ββοΈ :
it is trivial for users to change this if they don't like it.
Just wanted to point out an alternative viewpoint based on what TG is and the environments it is most likely to exist in, basically. If it weren't configurable, then it would register on the ol' care-o-meter a lot more and warrant polling or some sort of actual statistical research. But it is, so it doesn't move the needle as far as I'm concerned.
Definitely warrants a high-visibility bullet point in migration docs though, for any change to that.
from terminal.gui.
Yeah I think we're all aligned on this, more or less.
I did run into am interesting one a few days ago that made me think about it again.
But the fact that it is trivially configurable both in code and configuration files really just solves the problem entirely, so it's cool whatever it ends up being, within reason . π
Still needs to be loudly documented of course.
I'd even suggest that, in samples and "getting started" type documentation, we repeat what the default quit key is, perhaps in a short bulleted list of important concepts for the given doc/sample, plus a simple link to the config docs, so it's dead simple for a consumer, and any potential "how do I exitβ½" issues posted can be closed with a well-deserved "RTFM" linked to any one of those. Plus that would boost their ranking in search engines. π
from terminal.gui.
Besides, it's already one of the oldest jokes in terminal-land that there are users out there who have been stuck inside vi for years, because they can't figure out how to exit. That'd be a fun little easter egg kind of reference to subtly make somewhere in docs or code comments. π
from terminal.gui.
Related Issues (20)
- Fail gracefully for impossible hosts HOT 4
- Rename `StateChangedEventArgs<T>` to `CancelEventArgs<T>` HOT 63
- A more reliable means of avoiding errors caused by stdin or stdout redirection
- (Internal) Better regexes for TODO-list items
- Clicking the StatusBar causes the event to be executed more than once. HOT 1
- `Dim.Auto (Content)` is broken if subviews use `Pos.Center` etc... HOT 3
- `StatusBar` should clip, not overwrite, when last item doesn't fit HOT 1
- `TextField` prevents default `Button` from working in some cases HOT 7
- Some more prep for revamped sourcegens and CI HOT 2
- Enabling trim mode breaks program at runtime (v2 only) HOT 16
- v1 - Example.cs does not work HOT 5
- `Button` with `ShadowStyle.Opaque` is broken HOT 5
- `DateField` unit tests fail on `macos.latest` HOT 4
- The exclusion of `.orig` files in `.gitignore` is no longer working
- Color ToString returns "Red" instead of "# HOT 4
- Release v1.17.1 HOT 1
- Localization not working on self-contained single-file. HOT 19
- Post-V2: Rewrite `TextFormatter`
- Feedback: Example HOT 3
- Apps should never reference `ConsoleDriver`
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 terminal.gui.