elementary-dev-community team mailing list archive
-
elementary-dev-community team
-
Mailing list archive
-
Message #00135
Search on Terminal
I need some help with a tiny piece of Vala code for the terminal.
I have a string that can be "make", and I need a regex that looks for make.
Regex search_regex = new Regex (args);
Does anybody know what arguments I need to search for "make", taking
http://www.valadoc.org/glib-2.0/GLib.Regex.html into account.
The search_regex variable will be passed in this function:
http://valadoc.org/vte/Vte.Terminal.search_set_gregex.html. So that then I
can search for it using this one
http://valadoc.org/vte/Vte.Terminal.search_find_next.html.
Also, will I need
http://valadoc.org/vte/Vte.Terminal.search_set_wrap_around.html to be true?
--
David Gomes