Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How exit replxx using SigInt from another thread

I use replxx as modern command-line tool. I found example but in this example there is only one thread. I make separated thread for replxx, from main thread I want ask replxx to exit… How do it?

I already have founded similar topic, this is also about multithreading but about another feature, I want to exit..

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

ask replxx to exit using

consoleWorker->rx.emulate_key_press(Replxx::KEY::control( 'C' ));

There is full-code replxx multithreading example.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading