Still everything you said in the first paragraph didn't change a thing because what I want isn't simply changing the color once when it's selected, I want it to continuously change the color of the text, not the outline, until it's been deselected.
I didn't mention flashing. Problem solving is part of programming, if you can't solve simple problems, you aren't a good programmer, and need to learn. The function I gave was just to show that SFML offers a pretty easy way to do things like this. I wasn't trying to give you the code required to solve your problem because I don't think doing things that way helps you learn anything.
If you want, you could do a
if(sin(time) > 0)
set_color_to_something();
else
set_color_to_something_else();
You could also use the sin function for smoother flashing, if you have basic understanding of trigonometry and how colors work in graphics programming.
You should seriously consider getting a book.