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

Python Using Databases in Python Gettin' CRUD-y With It Add An Entry

Sasuke Uchiha
PLUS
Sasuke Uchiha
Courses Plus Student 298 Points

Ctrl+D is not working as EOF

It's not related to any editor. I even tried this on CMD and Git Bash. When I am pressing Ctrl+D, it's simply showing '^D' instead of passing EOF. I found an alternative, I need to press Ctrl+Z and press enter. But I need to do it as Kenneth did in the video. Any suggestions?

Here's a screenshot of the same.

Based on your screenshot it looks like you’re not on a windows machine. I don’t know that this will work, but if you’re using a Mac, maybe try Cmd + D.

4 Answers

Mine is doing the same thing and I am on a Windows using vscode

Hi Mel,

Any chance you could send a screen shot of your terminal/command prompt?

Sure https://imgur.com/a/GVldJ7d Thanks for taking a look, I would love to know what's up with it :)

Hank Tao
Hank Tao
7,540 Points

Went around the problem as per https://github.com/micropython/micropython/issues/3356 ctrl+d appears as \x04. The custom function finishes when \x04 appears on its own in a new line.

I also has the same situation when using my cmd on windows and only CTRL+Z is worked for me. When I press CTRL-Z, it will shows ^Z . I need to press "enter" to let it works.