 		/* Update selected range */
 		let range = NSRange(location: mCurrentIndex, length: 0)
 		setSelectedRange(range: range)
-
-		scrollToBottom()
+		mTextView.scrollRangeToVisible(range)
 	}
 
 	open func ack(escapeCodes codes: Array<CNEscapeCode>) {

			case .eraceFromCursorToLeft:
				mCurrentIndex = storage.deleteBackwardAllCharacters(from: mCurrentIndex)
			case .scrollUp(let line):
				mCurrentIndex = storage.scrollUp(lines: line, font: self.font, terminalInfo: mTerminalInfo)
			case .scrollDown(let line):
				mCurrentIndex = storage.scrollDown(lines: line, font: self.font, terminalInfo: mTerminalInfo)
			case .resetAll:
				storage.clear(font: self.font, terminalInfo: mTerminalInfo)
				mTerminalInfo.reset()

			mTextView.selectedRange = rng
		#endif
	}
}

