Browse Source

terminal.c, miscvars.c, variable 'moremode' instead of 'nomoremode', new default

the `more' pager is now disabled by default
pre-master-46
h_vogt 10 years ago
committed by rlar
parent
commit
db0849d076
  1. 2
      src/frontend/miscvars.c
  2. 8
      src/frontend/terminal.c

2
src/frontend/miscvars.c

@ -77,6 +77,7 @@ char *ft_setkwords[] = {
"maxwins", "maxwins",
"modelcard", "modelcard",
"modelline", "modelline",
"moremode",
"nfreqs", "nfreqs",
"noasciiplotvalue", "noasciiplotvalue",
"noaskquit", "noaskquit",
@ -87,7 +88,6 @@ char *ft_setkwords[] = {
"noglob", "noglob",
"nogrid", "nogrid",
"nomod", "nomod",
"nomoremode",
"nonomatch", "nonomatch",
"nopadding", "nopadding",
"nopage", "nopage",

8
src/frontend/terminal.c

@ -42,7 +42,7 @@ Author: 1986 Wayne A. Christopher, U. C. Berkeley CAD Group
#include "terminal.h" #include "terminal.h"
bool out_moremode = TRUE;
bool out_moremode = FALSE;
bool out_isatty = TRUE; bool out_isatty = TRUE;
#ifndef TCL_MODULE #ifndef TCL_MODULE
@ -73,10 +73,10 @@ out_init(void)
noprint = nopause = FALSE; noprint = nopause = FALSE;
if (cp_getvar("nomoremode", CP_BOOL, NULL))
out_moremode = FALSE;
else
if (cp_getvar("moremode", CP_BOOL, NULL))
out_moremode = TRUE; out_moremode = TRUE;
else
out_moremode = FALSE;
if (!out_moremode || !cp_interactive) if (!out_moremode || !cp_interactive)
out_isatty = FALSE; out_isatty = FALSE;

Loading…
Cancel
Save