From f7b582d17afc5a2e6e15500d9d59e6f1bb38bbef Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 12 Dec 2009 13:10:43 +0000 Subject: [PATCH] yarrg: with --find-window-only, print ocean and pirate parseably to stdout --- yarrg/convert.c | 3 +++ yarrg/convert.h | 19 ++++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/yarrg/convert.c b/yarrg/convert.c index b7925b8..28729ae 100644 --- a/yarrg/convert.c +++ b/yarrg/convert.c @@ -374,6 +374,9 @@ int main(int argc, char **argv) { default: abort(); } + if (o_mode & mf_printoceanpirate) + printf("%s %s\n",ocean,pirate); + if (o_mode & mf_screenshot) { open_screenshot_file(1); if (o_flags & ff_singlepage) take_one_screenshot(); diff --git a/yarrg/convert.h b/yarrg/convert.h index a9e6a68..8930087 100644 --- a/yarrg/convert.h +++ b/yarrg/convert.h @@ -136,16 +136,17 @@ enum flags { extern enum flags o_flags; enum mode { - mf_findwindow= 00001, - mf_screenshot= 00010, - mf_readscreenshot= 00020, - mf_analyse= 00100, - mfm_special= 07000, + mf_findwindow= 00001, + mf_screenshot= 00010, + mf_readscreenshot= 00020, + mf_analyse= 00100, + mf_printoceanpirate= 00200, + mfm_special= 07000, - mode_findwindow= 00001, - mode_screenshot= 00011, - mode_analyse= 00120, - mode_showcharset= 01000, + mode_findwindow= 00201, + mode_screenshot= 00011, + mode_analyse= 00120, + mode_showcharset= 01000, mode_all= 00111, }; -- 2.30.2