Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi to all, I've centos 7.5 in VM, and i am using C::B, now i want to know position of cursur in terminal. how to do that. i googled and find below soution but i am not getting its point. code is:-
hi to all, I've centos 7.5 in VM, and i am using C::B, now i want to know position of cursur in terminal. how to do that. i googled and find below soution but i am not getting its point. code is:-
sorry for late, when i ran that program and it always shows "^[[Y;1R" where Y is row and x coordinate is 1 always. How to get rid of this.
Sorry, but this sounds very much like homework. You have a task that has no real purpose, and you downloaded code that does what you want...and it now seems like you want us to rewrite/explain it all to you.
What have YOU figured out/thought about in regards to the code?? And chances are that code is returning exactly what it should...want a different number? Put the cursor somewhere else. And you do realize that the MOUSE cursor is far different than the TERMINAL cursor, right???
sorry for late, when i ran that program and it always shows "^[[Y;1R" where Y is row and x coordinate is 1 always. How to get rid of this.
This is the terminal's answer to the escape sequence "\x1B[6n\n". Do you not want to see this output? If so, perhaps there is a way to put the terminal in a mode that suppresses output on the screen.
EDIT: There is. Good old stty, how could I forget it. These days everything is graphical, but in the golden days, we had serial terminals when talking to UNIX (which was still better than punched cards, if you ask me):
Code:
stty -echo; ./yourprogram; stty echo
You do your own googling to find a suitable escape sequence or other programmatic way.
Last edited by berndbausch; 03-15-2020 at 07:20 PM.
Reason: added stty and cool comment about the old times
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.