Page 1 of 1

Tilde character doesn't work in terminal

Posted: Wed Feb 17, 2016 5:20 pm
by sasha
Hi *,

in build 1390, I can't print a tilde character ('~') to the terminal using German keyboard settings. Instead, only a 'n' character is printed after pressing opt-n which usually produces a tilde. In other input boxes like 'Go to folder', the tilde works fine.

-Sasha

Re: Tilde character doesn't work in terminal

Posted: Fri Feb 19, 2016 9:37 pm
by don
Good day.

Not sure if I have anything useful to suggest, but tilde is also used to go to home folder and there is an option in settings.
Could those be related? Could you pls try disabling the option in Preferences -> Panels -> Common?

Cheers.

Re: Tilde character doesn't work in terminal

Posted: Sat Feb 20, 2016 1:55 pm
by mike
Hi Sasha,

That's a problem in Files' terminal input subsystem.
It currently does not process any of such key-changing logic.
Will fix it.

Mike.

Re: Tilde character doesn't work in terminal

Posted: Sun Feb 21, 2016 9:47 am
by sasha
Mike,

thanks for the info. BTW, on my MBP keyboard, fn+arrow keys produce the tilde character. Would be nice to have them mapped to their original functions.

-Sasha

Re: Tilde character doesn't work in terminal

Posted: Tue Feb 23, 2016 12:44 pm
by mike
Sasha,

I've added an option-modified keystrokes processing in latest build, can you check it?

Mike.

Re: Tilde character doesn't work in terminal

Posted: Mon Feb 29, 2016 9:57 pm
by sasha
The tilde character works very nicely now, thanks. Two quick observations:

1) Now, navigating to beginning and end of the current command line works using fn+left/right arrow. Counter-intuitively, fn+up/down arrow still create a tilde character. They could, like in the OSX built-in terminal, scroll the command window vertically.

2) For me, it would be very useful to navigate the cursor word-by-word like ALT+left/right arrow works in most text editors. Awkwardly, in OSX built-in terminal, this is implemented using ESC+f and ESC+b... Any thoughts on adding that to Files terminal intuitively?

Re: Tilde character doesn't work in terminal

Posted: Wed Mar 09, 2016 6:22 am
by mike
Hi sasha,

I need to do some R&D to say anything specific to these ones...
as for 1) - built-in terminal emulator has to somehow know if current task can process these keys (like MC) or not (like Bash?) and behave accordingly.
as for 2) - I'm not sure if this feature is provided by Bash itself, or it's emulated by Terminal in some hacky way..

Mike.