File: using-pager-in-tfm.patch

package info (click to toggle)
emboss 6.6.0%2Bdfsg-18
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 572,632 kB
  • sloc: ansic: 460,579; java: 29,383; perl: 13,573; sh: 12,753; makefile: 3,293; csh: 706; asm: 351; xml: 239; pascal: 237; modula3: 8
file content (19 lines) | stat: -rw-r--r-- 679 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Charles Plessy
Forwarded: no
 This patch uses a specificity of Debian.
Description: Browse the documentation with default pager.
 `/usr/bin/pager', always exists in Debian and is managed through the
 alternatives system. With this patch, `tfm' will use `/usr/bin/pager' by
 default, which points on the user's favorite pager.
License: as if it were public domain.
--- a/emboss/tfm.c
+++ b/emboss/tfm.c
@@ -87,7 +87,7 @@ int main(int argc, char **argv)
 	    if(shellpager)
 		ajStrAssignC(&pager,shellpager);
 	    if(!ajStrGetLen(pager))
-		ajStrAssignC(&pager,"more");
+		ajStrAssignC(&pager,"pager");
 	}
 	ajFmtPrintS(&cmd,"%S %S",pager,path);
 	ajSysExecPathS(cmd);