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 trialSasuke Uchiha
Courses Plus Student 298 PointsCtrl+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.
5 Answers
Mel Rumsey
Treehouse ModeratorMine is doing the same thing and I am on a Windows using vscode
Brandon White
Full Stack JavaScript Techdegree Graduate 35,771 PointsHi Mel,
Any chance you could send a screen shot of your terminal/command prompt?
Mel Rumsey
Treehouse ModeratorSure https://imgur.com/a/GVldJ7d Thanks for taking a look, I would love to know what's up with it :)
Hank Tao
7,540 PointsWent 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.
MengHsin Ou
5,317 PointsI 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.
G GRAY RANDY
14,318 Pointssame problem as above, on windows CTRL+D does not finished the entry.
Brandon White
Full Stack JavaScript Techdegree Graduate 35,771 PointsBrandon White
Full Stack JavaScript Techdegree Graduate 35,771 PointsBased 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.