summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-term.c
blob: fed1aed9055a5048e11a68f738a95539f128b867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * Copyright (C) 2011 Sebastien Helleu <flashcode@flashtux.org>
 *
 * This file is part of WeeChat, the extensible chat client.
 *
 * WeeChat is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * WeeChat is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with WeeChat.  If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * gui-curses-term.c: terminal functions for Curses GUI
 */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#ifdef HAVE_NCURSESW_CURSES_H
#include <ncursesw/term.h>
#else
#include <term.h>
#endif


/*
 * gui_term_set_eat_newline_glitch: set "eat_newline_glitch" variable
 *                                  With value 0, this is used to not auto
 *                                  insert newline char at end of lines
 *                                  displayed, so that long words like URLs are
 *                                  not cut when they are selected with mouse
 */

void
gui_term_set_eat_newline_glitch (int value)
{
#ifdef HAVE_EAT_NEWLINE_GLITCH
    eat_newline_glitch = value;
#else
    /* make C compiler happy */
    (void) value;
#endif
}