Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    Notwithstanding that all command in console should be ended by Return which mean new line you can operate the some terminal operation command (tput for example) to read current cursor position than move cursor (after script execution) back to remembered coordinates. Commented Feb 15, 2015 at 11:59
  • 1
    I don't understand what you're trying to do here. Are you trying to modify the script file? Or are you assuming that the script's output is a terminal? What do you want to do if the script isn't called directly from an interactive shell in a terminal? This sounds like an XY problem; there's a good chance that you should be writing a function and perhaps binding it to a key. What are you trying to achieve? Commented Feb 15, 2015 at 22:12
  • Do you want to emulate the completion library or make use of it to give custom completions? As Gilles says, this sounds like an XY problem, tell us what you trying to do, and see if we can figure out a solution. Commented Nov 20, 2016 at 6:16