diff --git a/.DS_Store b/.DS_Store index 41f4662..118664e 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/EnhancedTerminal.app/Contents/MacOS/EnhancedTerminal b/EnhancedTerminal.app/Contents/MacOS/EnhancedTerminal index 2642a18..2c804a5 100755 Binary files a/EnhancedTerminal.app/Contents/MacOS/EnhancedTerminal and b/EnhancedTerminal.app/Contents/MacOS/EnhancedTerminal differ diff --git a/TerminalSession.swift b/TerminalSession.swift index 2afb024..48f1b8f 100644 --- a/TerminalSession.swift +++ b/TerminalSession.swift @@ -199,6 +199,10 @@ class TerminalSession: NSObject, NSTextViewDelegate, NSMenuDelegate { func showPrompt() { appendText("$ ") promptPosition = textView.string.count + + // Move cursor to end and make text view first responder + textView.setSelectedRange(NSRange(location: textView.string.count, length: 0)) + textView.window?.makeFirstResponder(textView) } func appendText(_ text: String) {