d9e3c33fd0c5d0701161aa590edddd179cb74614
[screen-lua.git] / src / mark.h
blobd9e3c33fd0c5d0701161aa590edddd179cb74614
1 /* Copyright (c) 2008
2 * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
3 * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
4 * Micah Cowan (micah@cowan.name)
5 * Sadrul Habib Chowdhury (sadrul@users.sourceforge.net)
6 * Copyright (c) 1993-2002, 2003, 2005, 2006, 2007
7 * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
8 * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
9 * Copyright (c) 1987 Oliver Laumann
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 3, or (at your option)
14 * any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program (see the file COPYING); if not, see
23 * http://www.gnu.org/licenses/, or contact Free Software Foundation, Inc.,
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
26 ****************************************************************
27 * $Id$ FAU
30 struct markdata
32 struct win *md_window;/* pointer to window we are working on */
33 struct acluser *md_user; /* The user who brought us up */
34 int cx, cy; /* cursor Position in WIN coords*/
35 int x1, y1; /* first mark in WIN coords */
36 int second; /* first mark dropped flag */
37 int left_mar, right_mar, nonl;
38 int rep_cnt; /* number of repeats */
39 int append_mode; /* shall we overwrite or append to copybuffer */
40 int write_buffer; /* shall we do a KEY_WRITE_EXCHANGE right away? */
41 int hist_offset; /* how many lines are on top of the screen */
42 char isstr[100]; /* string we are searching for */
43 int isstrl;
44 char isistr[200]; /* string of chars user has typed */
45 int isistrl;
46 int isdir; /* current search direction */
47 int isstartpos; /* position where isearch was started */
48 int isstartdir; /* direction when isearch was started */
49 struct { /* bookkeeping for fFtT;, commands */
50 int flag, target, direction;
51 } f_cmd;
56 #define W2D(y) ((y) - markdata->hist_offset)
57 #define D2W(y) ((y) + markdata->hist_offset)