Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Can't write the "~" caracter on the console

I have a Mac running OS X 10.8.2, and and Spanish keyboard configuration, meaning that I have the "Ñ" spanish caracter were the ~ should go, this is good because using alt+ñ the ~appears, though, on the console, both my local computers and the online Treehouse one, it just does nothing. I can't even copy the caracter from another file. Any fix for this that doesn't require changing my keyboard conf? I kinda use a lot the Ñ, as I live in an spanish speaking country.

9 Answers

There's a keymap for that ...

loadkey es

source: http://www.marcosorfila.com/site/change-keyboard-layout-in-a-linux-terminal/

Jim Hoskins
STAFF
Jim Hoskins
Treehouse Guest Teacher

Thanks James!

Please let us know if that works for you. It's not something I have experience, and whatever works for works for a local command line should also work using the treehouse command line. If something about the Treehouse command line is preventing the solution it is something I will need to look into ASAP.

that works, but its not what I need, actually its the other way around, I CAN write Ñ but not "~" on the terminal (or maybe it doesn't and I think it did). I was able to fix it with a hack I found on google on my local computer, but its an external app to the console that fixed it only for mac, still the online console doesn't write it. I need a way to be able to write the ~ on the online Treehouse console.

Jim Hoskins
STAFF
Jim Hoskins
Treehouse Guest Teacher

For the time being, to paste you should be able to right-click the Treehouse command line. (This is because ctrl/cmd+v is a key sequence that could be needed to be interpreted literally by the computer, not intercepted as a paste)

So by copying the ~ character and right clicking the window, it should be inserted. It's not ideal, and hopefully we can figure out a better way to do that, since it's an important key to use from the console.

okay, now it works, just that the tilda doesn't take up space on the console, it is "invisible", but it is as it was there

Jim Hoskins
STAFF
Jim Hoskins
Treehouse Guest Teacher

That's unusual, it should be a visible character. Are you sure it's really there? What makes you think it is there but invisible. I ask because "cd ~" and "cd" are equivalent, and could lead to that confusion.

I have the same problem with a portuguese keyboard layout. As I press the tilda key, nothing happens. I guess i'll be using the copy/paste method.

Hey there i just want to say that i have the same problem, MAC, Spanish-ISO (keyboard with ñ/Ñ) and the tilde ~and the | character do not appear when i write it, its "invisible", soy you have to put it on the console then use a space

I have the same problem with my french-canadien keyboard.