private void displaySearchLine ( String line , String searchWord ) throws IOException { int start = line . indexOf ( searchWord ) ; connection . write ( line . substring ( 0 , start ) ) ; connection . write ( ANSI . INVERT_BACKGROUND ) ; connection . write ( searchWord ) ; connection . write ( ANSI . RESET ) ; connection . write ( line . substring ( start + searchWord . length ( ) , line . length ( ) ) ) ; }
highlight the specific word thats found in the search