Cursor positioning using mouse in bash possible? The Next CEO of Stack OverflowIn Ubuntu, is...
Domestic-to-international connection at Orlando (MCO)
How to write a definition with variants?
Is it professional to write unrelated content in an almost-empty email?
Won the lottery - how do I keep the money?
Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?
When you upcast Blindness/Deafness, do all targets suffer the same effect?
Which one is the true statement?
How many extra stops do monopods offer for tele photographs?
What does "Its cash flow is deeply negative" mean?
How do I align (1) and (2)?
Why, when going from special to general relativity, do we just replace partial derivatives with covariant derivatives?
How to invert MapIndexed on a ragged structure? How to construct a tree from rules?
Why isn't the Mueller report being released completely and unredacted?
What connection does MS Office have to Netscape Navigator?
How to get from Geneva Airport to Metabief, Doubs, France by public transport?
How to check if all elements of 1 list are in the *same quantity* and in any order, in the list2?
Is it okay to majorly distort historical facts while writing a fiction story?
What was the first Unix version to run on a microcomputer?
Poetry, calligrams and TikZ/PStricks challenge
Bartok - Syncopation (1): Meaning of notes in between Grand Staff
What steps are necessary to read a Modern SSD in Medieval Europe?
Axiom Schema vs Axiom
How to prove a simple equation?
Why is information "lost" when it got into a black hole?
Cursor positioning using mouse in bash possible?
The Next CEO of Stack OverflowIn Ubuntu, is there any terminal that allows for the position of the cursor to be moved with the mouse?Invisible mouse cursorMouse cursor limits using newrez scriptCan bash get out of sync with the filesystem?How to install mouse cursor?Setting paths in Fish like in Bash?Mouse cursor on grubHow to read mouse movement data using bashTrack mouse cursor movement using accelerometer readings17.10.1 Changing mouse cursorMouse cursor stops working Razer Naga
In Vim I can actually position the cursor in insert-mode using the mouse. So I assume this should (technically) also be enable-able for the bash. Is it possible? This would be quite useful at times when small changes have to be made to very long commands.
(I am using fish actually, but I guess referring to bash I reach a wider audience.)
command-line bash mouse fish
add a comment |
In Vim I can actually position the cursor in insert-mode using the mouse. So I assume this should (technically) also be enable-able for the bash. Is it possible? This would be quite useful at times when small changes have to be made to very long commands.
(I am using fish actually, but I guess referring to bash I reach a wider audience.)
command-line bash mouse fish
2
A quick solution see here: askubuntu.com/questions/359686/…
– jmunsch
Mar 13 '14 at 23:13
1
From "info readline" character-searchCtrl+]
A character is read and point is moved to the next occurrence of that character. character-search-backwardMeta+Ctrl+]
A character is read and point is moved to the previous occurrence of that character... Also considerCtrl+a
to move to the beginning of line. AndCtrl+e
to move to the end of line.Alt+Shift+f
to move forward a word andAlt+Shift+b
to move back a word.
– jmunsch
Mar 14 '14 at 0:24
In bash itself - no. There's several layers to have in mind. Mouse support can be done in certain applications (vim, emacs, nano) some of which are built using curses library, but generally shells don't have support for it (and they don't rely on curses library). Additionally, the terminal window has to support that.
– Sergiy Kolodyazhnyy
2 mins ago
add a comment |
In Vim I can actually position the cursor in insert-mode using the mouse. So I assume this should (technically) also be enable-able for the bash. Is it possible? This would be quite useful at times when small changes have to be made to very long commands.
(I am using fish actually, but I guess referring to bash I reach a wider audience.)
command-line bash mouse fish
In Vim I can actually position the cursor in insert-mode using the mouse. So I assume this should (technically) also be enable-able for the bash. Is it possible? This would be quite useful at times when small changes have to be made to very long commands.
(I am using fish actually, but I guess referring to bash I reach a wider audience.)
command-line bash mouse fish
command-line bash mouse fish
asked Mar 13 '14 at 22:41
RaffaelRaffael
1,71051634
1,71051634
2
A quick solution see here: askubuntu.com/questions/359686/…
– jmunsch
Mar 13 '14 at 23:13
1
From "info readline" character-searchCtrl+]
A character is read and point is moved to the next occurrence of that character. character-search-backwardMeta+Ctrl+]
A character is read and point is moved to the previous occurrence of that character... Also considerCtrl+a
to move to the beginning of line. AndCtrl+e
to move to the end of line.Alt+Shift+f
to move forward a word andAlt+Shift+b
to move back a word.
– jmunsch
Mar 14 '14 at 0:24
In bash itself - no. There's several layers to have in mind. Mouse support can be done in certain applications (vim, emacs, nano) some of which are built using curses library, but generally shells don't have support for it (and they don't rely on curses library). Additionally, the terminal window has to support that.
– Sergiy Kolodyazhnyy
2 mins ago
add a comment |
2
A quick solution see here: askubuntu.com/questions/359686/…
– jmunsch
Mar 13 '14 at 23:13
1
From "info readline" character-searchCtrl+]
A character is read and point is moved to the next occurrence of that character. character-search-backwardMeta+Ctrl+]
A character is read and point is moved to the previous occurrence of that character... Also considerCtrl+a
to move to the beginning of line. AndCtrl+e
to move to the end of line.Alt+Shift+f
to move forward a word andAlt+Shift+b
to move back a word.
– jmunsch
Mar 14 '14 at 0:24
In bash itself - no. There's several layers to have in mind. Mouse support can be done in certain applications (vim, emacs, nano) some of which are built using curses library, but generally shells don't have support for it (and they don't rely on curses library). Additionally, the terminal window has to support that.
– Sergiy Kolodyazhnyy
2 mins ago
2
2
A quick solution see here: askubuntu.com/questions/359686/…
– jmunsch
Mar 13 '14 at 23:13
A quick solution see here: askubuntu.com/questions/359686/…
– jmunsch
Mar 13 '14 at 23:13
1
1
From "info readline" character-search
Ctrl+]
A character is read and point is moved to the next occurrence of that character. character-search-backward Meta+Ctrl+]
A character is read and point is moved to the previous occurrence of that character... Also consider Ctrl+a
to move to the beginning of line. And Ctrl+e
to move to the end of line. Alt+Shift+f
to move forward a word and Alt+Shift+b
to move back a word.– jmunsch
Mar 14 '14 at 0:24
From "info readline" character-search
Ctrl+]
A character is read and point is moved to the next occurrence of that character. character-search-backward Meta+Ctrl+]
A character is read and point is moved to the previous occurrence of that character... Also consider Ctrl+a
to move to the beginning of line. And Ctrl+e
to move to the end of line. Alt+Shift+f
to move forward a word and Alt+Shift+b
to move back a word.– jmunsch
Mar 14 '14 at 0:24
In bash itself - no. There's several layers to have in mind. Mouse support can be done in certain applications (vim, emacs, nano) some of which are built using curses library, but generally shells don't have support for it (and they don't rely on curses library). Additionally, the terminal window has to support that.
– Sergiy Kolodyazhnyy
2 mins ago
In bash itself - no. There's several layers to have in mind. Mouse support can be done in certain applications (vim, emacs, nano) some of which are built using curses library, but generally shells don't have support for it (and they don't rely on curses library). Additionally, the terminal window has to support that.
– Sergiy Kolodyazhnyy
2 mins ago
add a comment |
1 Answer
1
active
oldest
votes
Does that work ? It should print escaped sequences on your terminal when using the mouse
echo -e "e[?1000;1006;1015h" # Enable tracking
If it works : test my script on github
Details : Read my answer in another post
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f433959%2fcursor-positioning-using-mouse-in-bash-possible%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Does that work ? It should print escaped sequences on your terminal when using the mouse
echo -e "e[?1000;1006;1015h" # Enable tracking
If it works : test my script on github
Details : Read my answer in another post
New contributor
add a comment |
Does that work ? It should print escaped sequences on your terminal when using the mouse
echo -e "e[?1000;1006;1015h" # Enable tracking
If it works : test my script on github
Details : Read my answer in another post
New contributor
add a comment |
Does that work ? It should print escaped sequences on your terminal when using the mouse
echo -e "e[?1000;1006;1015h" # Enable tracking
If it works : test my script on github
Details : Read my answer in another post
New contributor
Does that work ? It should print escaped sequences on your terminal when using the mouse
echo -e "e[?1000;1006;1015h" # Enable tracking
If it works : test my script on github
Details : Read my answer in another post
New contributor
New contributor
answered 12 mins ago
tinmarinotinmarino
1012
1012
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f433959%2fcursor-positioning-using-mouse-in-bash-possible%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
A quick solution see here: askubuntu.com/questions/359686/…
– jmunsch
Mar 13 '14 at 23:13
1
From "info readline" character-search
Ctrl+]
A character is read and point is moved to the next occurrence of that character. character-search-backwardMeta+Ctrl+]
A character is read and point is moved to the previous occurrence of that character... Also considerCtrl+a
to move to the beginning of line. AndCtrl+e
to move to the end of line.Alt+Shift+f
to move forward a word andAlt+Shift+b
to move back a word.– jmunsch
Mar 14 '14 at 0:24
In bash itself - no. There's several layers to have in mind. Mouse support can be done in certain applications (vim, emacs, nano) some of which are built using curses library, but generally shells don't have support for it (and they don't rely on curses library). Additionally, the terminal window has to support that.
– Sergiy Kolodyazhnyy
2 mins ago