Python Python Basics (2015) Python Data Types Strings

Nils Kriedner
Nils Kriedner
Front End Web Development Techdegree Student 22,955 Points

Many special keyboard combination don't work in my shell in workspaces (some of which I need to follow). What can I do?

An hour ago I already had one problem with the shell in workspaces, where I could not paste anything via right-click or str+v or str+shift+v:

I still could not solve this problem, but now it's getting more problems inside of the shell (and only inside of the shell):

  1. I am not able use the „\“ character. I can print in anywhere else, but in the shell in workspace there is just nothing happening when I press it…

  2. I am also not able to write a „{“ or „}“ in shell. If i do the whole line already written is deleted.

What can I do to adjust the settings so I don't have these keyboard problems in the workspace shell?

Additional Info: I am using windows 10 on a desktop pc (if that is of any importance).

2 Answers

Jennifer Nordell
Jennifer Nordell
Treehouse Staff

Hi there! I'm going to take a semi-educated guess and say that much like myself you are not using a standard US Qwerty keyboard. When you're working on your own system, your operating system is configured to understand your keyboard mappings, but this is not true of the console in workspaces. It is set to use their standard keyboard format. I'll explain two methods of getting around the special characters in a moment.

First, let's talk about the copy/paste. I also had problems with this. When I tried CTRL + V (as I do in workspaces) all I ever got back was ^V. Sound familiar? But there is a solution. Select the text you want to copy and right-click it and choose "Copy". It's the pasting that's a little odd. When you're ready to paste, move your mouse pointer up to the very top of the window frame. I mean the one above the address bar with your workspaces URL in it. Right-click that bar and choose "Paste". Your text will then be pasted into the console.

As for the special characters such as square brackets and curly brackets, you have a couple of choices here. Either you can switch your computer keyboard settings to a US English standard keyboard (temporarily at least), or you can use something called "Alt codes". This means that you will hold down the alt key while pressing the numbers on your number pad and the appropriate symbol will appear. In my case, the five most vital for me were:

  • Alt + 91 [
  • Alt + 92 \
  • Alt + 93 ]
  • Alt + 123 {
  • Alt + 125 }

You can find a whole list of alt codes here.

I hope this helps! :sparkles:

Nils Kriedner
Nils Kriedner
Front End Web Development Techdegree Student 22,955 Points

Yes…!!! Thanks a lot!

You guessed right, I'm using a European keyboard.

The copy-paste works the way you described. And the special characters also work with the number combo…

Again many things I learned :) thanks so much. Greetings from Berlin.

Nils Kriedner
Nils Kriedner
Front End Web Development Techdegree Student 22,955 Points

Just found out that I have to choose "best answer". Sorry it took so long. And thanks again! :)