Deleted Added
full compact
opttbl.c (60786) opttbl.c (63128)
1/*
2 * Copyright (C) 1984-2000 Mark Nudelman
3 *
4 * You may distribute under the terms of either the GNU General Public
5 * License or the Less License, as specified in the README file.
6 *
7 * For more information about less, or for information on how to
8 * contact the author, see the README file.

--- 30 unchanged lines hidden (view full) ---

39public int ctldisp; /* Send control chars to screen untranslated */
40public int force_open; /* Open the file even if not regular file */
41public int swindow; /* Size of scrolling window */
42public int jump_sline; /* Screen line of "jump target" */
43public int chopline; /* Truncate displayed lines at screen width */
44public int no_init; /* Disable sending ti/te termcap strings */
45public int twiddle; /* Show tildes after EOF */
46public int show_attn; /* Hilite first unread line */
1/*
2 * Copyright (C) 1984-2000 Mark Nudelman
3 *
4 * You may distribute under the terms of either the GNU General Public
5 * License or the Less License, as specified in the README file.
6 *
7 * For more information about less, or for information on how to
8 * contact the author, see the README file.

--- 30 unchanged lines hidden (view full) ---

39public int ctldisp; /* Send control chars to screen untranslated */
40public int force_open; /* Open the file even if not regular file */
41public int swindow; /* Size of scrolling window */
42public int jump_sline; /* Screen line of "jump target" */
43public int chopline; /* Truncate displayed lines at screen width */
44public int no_init; /* Disable sending ti/te termcap strings */
45public int twiddle; /* Show tildes after EOF */
46public int show_attn; /* Hilite first unread line */
47public int shift_count; /* Number of positions to shift horizontally */
48public int status_col; /* Display a status column */
47#if HILITE_SEARCH
48public int hilite_search; /* Highlight matched search patterns? */
49#endif
50
51/*
52 * Long option names.
53 */
54static struct optname a_optname = { "search-skip-screen", NULL };

--- 8 unchanged lines hidden (view full) ---

63static struct optname f_optname = { "force", NULL };
64static struct optname F__optname = { "quit-if-one-screen", NULL };
65#if HILITE_SEARCH
66static struct optname g_optname = { "hilite-search", NULL };
67#endif
68static struct optname h_optname = { "max-back-scroll", NULL };
69static struct optname i_optname = { "ignore-case", NULL };
70static struct optname j_optname = { "jump-target", NULL };
49#if HILITE_SEARCH
50public int hilite_search; /* Highlight matched search patterns? */
51#endif
52
53/*
54 * Long option names.
55 */
56static struct optname a_optname = { "search-skip-screen", NULL };

--- 8 unchanged lines hidden (view full) ---

65static struct optname f_optname = { "force", NULL };
66static struct optname F__optname = { "quit-if-one-screen", NULL };
67#if HILITE_SEARCH
68static struct optname g_optname = { "hilite-search", NULL };
69#endif
70static struct optname h_optname = { "max-back-scroll", NULL };
71static struct optname i_optname = { "ignore-case", NULL };
72static struct optname j_optname = { "jump-target", NULL };
73static struct optname J__optname = { "status-column", NULL };
71#if USERFILE
72static struct optname k_optname = { "lesskey-file", NULL };
73#endif
74static struct optname m_optname = { "long-prompt", NULL };
75static struct optname n_optname = { "line-numbers", NULL };
76#if LOGFILE
77static struct optname o_optname = { "log-file", NULL };
78static struct optname O__optname = { "LOG-FILE", NULL };

--- 14 unchanged lines hidden (view full) ---

93static struct optname w_optname = { "hilite-unread", NULL };
94static struct optname x_optname = { "tabs", NULL };
95static struct optname X__optname = { "no-init", NULL };
96static struct optname y_optname = { "max-forw-scroll", NULL };
97static struct optname z_optname = { "window", NULL };
98static struct optname quote_optname = { "quotes", NULL };
99static struct optname tilde_optname = { "tilde", NULL };
100static struct optname query_optname = { "help", NULL };
74#if USERFILE
75static struct optname k_optname = { "lesskey-file", NULL };
76#endif
77static struct optname m_optname = { "long-prompt", NULL };
78static struct optname n_optname = { "line-numbers", NULL };
79#if LOGFILE
80static struct optname o_optname = { "log-file", NULL };
81static struct optname O__optname = { "LOG-FILE", NULL };

--- 14 unchanged lines hidden (view full) ---

96static struct optname w_optname = { "hilite-unread", NULL };
97static struct optname x_optname = { "tabs", NULL };
98static struct optname X__optname = { "no-init", NULL };
99static struct optname y_optname = { "max-forw-scroll", NULL };
100static struct optname z_optname = { "window", NULL };
101static struct optname quote_optname = { "quotes", NULL };
102static struct optname tilde_optname = { "tilde", NULL };
103static struct optname query_optname = { "help", NULL };
104static struct optname pound_optname = { "shift", NULL };
101
102
103/*
104 * Table of all options and their semantics.
105 */
106static struct option option[] =
107{
108 { 'a', &a_optname,

--- 72 unchanged lines hidden (view full) ---

181 "Ignore case in searches and in patterns"
182 },
183 { 'j', &j_optname,
184 NUMBER, 1, &jump_sline, NULL,
185 "Target line: ",
186 "Position target at screen line %d",
187 NULL
188 },
105
106
107/*
108 * Table of all options and their semantics.
109 */
110static struct option option[] =
111{
112 { 'a', &a_optname,

--- 72 unchanged lines hidden (view full) ---

185 "Ignore case in searches and in patterns"
186 },
187 { 'j', &j_optname,
188 NUMBER, 1, &jump_sline, NULL,
189 "Target line: ",
190 "Position target at screen line %d",
191 NULL
192 },
193 { 'J', &J__optname,
194 BOOL|REPAINT, OPT_OFF, &status_col, NULL,
195 "Don't display a status column",
196 "Display a status column",
197 NULL
198 },
189#if USERFILE
190 { 'k', &k_optname,
191 STRING|NO_TOGGLE|NO_QUERY, 0, NULL, opt_k,
192 NULL, NULL, NULL
193 },
194#endif
195 { 'l', NULL,
196 STRING|NO_TOGGLE|NO_QUERY, 0, NULL, opt_l,

--- 112 unchanged lines hidden (view full) ---

309 "Don't show tildes after end of file",
310 "Show tildes after end of file",
311 NULL
312 },
313 { '?', &query_optname,
314 NOVAR, 0, NULL, opt_query,
315 NULL, NULL, NULL
316 },
199#if USERFILE
200 { 'k', &k_optname,
201 STRING|NO_TOGGLE|NO_QUERY, 0, NULL, opt_k,
202 NULL, NULL, NULL
203 },
204#endif
205 { 'l', NULL,
206 STRING|NO_TOGGLE|NO_QUERY, 0, NULL, opt_l,

--- 112 unchanged lines hidden (view full) ---

319 "Don't show tildes after end of file",
320 "Show tildes after end of file",
321 NULL
322 },
323 { '?', &query_optname,
324 NOVAR, 0, NULL, opt_query,
325 NULL, NULL, NULL
326 },
327 { '#', &pound_optname,
328 NUMBER, 0, &shift_count, NULL,
329 "Horizontal shift: ",
330 "Horizontal shift %d positions",
331 NULL
332 },
317 { '\0', NULL, NOVAR, 0, NULL, NULL, NULL, NULL, NULL }
318};
319
320
321/*
322 * Initialize each option to its default value.
323 */
324 public void

--- 112 unchanged lines hidden ---
333 { '\0', NULL, NOVAR, 0, NULL, NULL, NULL, NULL, NULL }
334};
335
336
337/*
338 * Initialize each option to its default value.
339 */
340 public void

--- 112 unchanged lines hidden ---