Plan 9 from Bell Labs’s /usr/web/sources/contrib/ww/abaco-duckduckgo.patch

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


diff -c abaco.orig/exec.c abaco/exec.c
abaco.orig/exec.c:43,49 - abaco/exec.c:43,49
  	{ L"Delcol",	delcol,	FALSE,	TRUE	},
  	{ L"Exit",		exit,		XXX,		XXX		},
  	{ L"Get",		get,		XXX,		XXX		},
- 	{ L"Google",	google,	XXX,		XXX		},
+ 	{ L"Quack",	google,	XXX,		XXX		},
  	{ L"New",		new,		XXX,		XXX		},
  	{ L"Newcol",	newcol,	XXX,		XXX		},
  	{ L"Next",		go,		TRUE,	XXX		},
abaco.orig/exec.c:523,529 - abaco/exec.c:523,529
  	Rune *s;
  
  	s = ucvt(arg);
- 	rs.r = runesmprint("http://www.google.com/search?hl=en&ie=UTF-8&q=%.*S", narg, s);
+ 	rs.r = runesmprint("http://duckduckgo.com/lite?q=%.*S", narg, s);
  	rs.nr = runestrlen(rs.r);
  	openpage(nil, &rs);
  	free(s);
diff -c abaco.orig/rows.c abaco/rows.c
abaco.orig/rows.c:33,39 - abaco/rows.c:33,39
  	r1.min.y = r1.max.y;
  	r1.max.y += Border;
  	draw(screen, r1, display->black, nil, ZP);
- 	textinsert(t, 0, L"Newcol Google Exit ", 19);
+ 	textinsert(t, 0, L"Newcol Quack Exit ", 18);
  	textsetselect(t, t->rs.nr, t->rs.nr);
  }
  

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.