Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm having a couple problems with basic command line stuff in the terminal of Mountain Lion.

^D does not exit Python as it does in Lion, instead it splits the screen.

Meanwhile, I also haven't figured out how to continue writing after having viewed the contents of a text document - the terminal doesn't allow it.

Hello hello hello! ex12.txt (END)

So far, no matter what I push after this, I get a nasty little beeping sound

share|improve this question
1  
If ^D splits the screen you have either re-configured your control keys or Terminal.app itself. On a standard installation, split screen is Cmd-D. –  patrix Aug 27 '12 at 19:24
add comment

3 Answers

You can type exit() to exit Python.

share|improve this answer
    
Typing exit() in the Python interpreter shell is the canonical way to exit the Python interpreter shell. It works for all Python interpreter shells across all Python versions >2.6 across all operating systems. –  Ian C. Dec 12 '13 at 19:07
add comment

As control-D works for me on multiple Macs, I'll presume something is amiss with your installation, keyboard or keyboard handler. (your difficulty with the pager also lends credence to this theory)

You can use the alternate quit() to exit the interpreter until you have looked at how python was installed or think of some modifications you might have on the key mapping on your mac.

share|improve this answer
    
I just tried using the Windows commands for the same tasks and they work well. It must therefore be the edition I downloaded, I'm assuming –  Karl Aug 27 '12 at 18:22
add comment

I had the same problem and I came across this post.

I think we both thought that we did ^ Ctrl-D but we actually did ⌘ Cmd-D, which is different shortcut and splits the terminal window.

share|improve this answer
    
How does this differ from the other answers? –  Mark Dec 12 '13 at 14:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.