Tilde character doesn't work in terminal

Questions, glitches, bugs and crashes
Locked
sasha
Posts: 168
Joined: Wed Feb 17, 2016 4:59 pm

Tilde character doesn't work in terminal

Post by sasha » Wed Feb 17, 2016 5:20 pm

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

don
Posts: 134
Joined: Sat Jul 18, 2015 11:03 am
Location: Sydney, AU

Re: Tilde character doesn't work in terminal

Post by don » Fri Feb 19, 2016 9:37 pm

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.

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Tilde character doesn't work in terminal

Post by mike » Sat Feb 20, 2016 1:55 pm

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.

sasha
Posts: 168
Joined: Wed Feb 17, 2016 4:59 pm

Re: Tilde character doesn't work in terminal

Post by sasha » Sun Feb 21, 2016 9:47 am

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

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Tilde character doesn't work in terminal

Post by mike » Tue Feb 23, 2016 12:44 pm

Sasha,

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

Mike.

sasha
Posts: 168
Joined: Wed Feb 17, 2016 4:59 pm

Re: Tilde character doesn't work in terminal

Post by sasha » Mon Feb 29, 2016 9:57 pm

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?

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Tilde character doesn't work in terminal

Post by mike » Wed Mar 09, 2016 6:22 am

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.

Locked