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

Make escape char permanently configurable #9

Open
michael-o opened this issue May 4, 2017 · 3 comments
Open

Make escape char permanently configurable #9

michael-o opened this issue May 4, 2017 · 3 comments

Comments

@michael-o
Copy link

Currently, the escape char is ^\ which is impossible to type in with an European keyboard layout and two keys: German, French, Italian, etc. Though, one can use -e, it is extremely exhausting to provide this every time. Therefore, I propose to either move this to a compile time option: --with-escape-char=... or have an env var for that: DTACH_ESCAPE_CHAR. It would make life way easier for non-English users.

If we agree on some option, I can try to work out a patch.

@rdebath
Copy link

rdebath commented May 5, 2017

Not a bad idea IMO, but many emulators give this control character when you press Ctrl-4 so it's shouldn't be difficult to type.

@michael-o
Copy link
Author

Wow, you are right! This really works. Why does this works? One should update the docs with this. It'd be a huge help.

@rdebath
Copy link

rdebath commented May 5, 2017

The non-alphabetic control characters were mapped to the control versions of 2345678 on the VT100 all the other terminals followed because it's really easy to tell a completely new user to enter Control and a number rather than hunting up the right sort of bracket or slash.

People today, are taught the names of these characters in primary school; they still get the wrong slash though! That's Microsoft's fault.

2  ^@  \000
3  ^[  \033
4  ^\  \034
5  ^]  \035
6  ^^  \036
7  ^_  \037
8  DEL \177

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