Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
googler: underline autocorrected keyword(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmwangx committed Dec 17, 2016
1 parent bfcd5e1 commit 752af33
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion googler
Expand Up @@ -1794,8 +1794,14 @@ class GooglerCmd(object):
self.fetch()
colors = self.colors
if self._autocorrected_to:
if colors:
# Underline the keywords
print('hi')
autocorrected_to = '\x1b[4m' + self._autocorrected_to + '\x1b[24m'
else:
autocorrected_to = self._autocorrected_to
autocorrect_info = ('Showing results for %s; enter "exact" for an exact search.' %
self._autocorrected_to)
autocorrected_to)
printerr('')
if colors:
printerr(colors.prompt + autocorrect_info + colors.reset)
Expand Down

0 comments on commit 752af33

Please sign in to comment.