Add iterate_over_lwps to gdbserver
[deliverable/binutils-gdb.git] / gdb / stub-termcap.c
1 /* A very minimal do-nothing termcap emulation stub.
2
3 Copyright (C) 2005-2015 Free Software Foundation, Inc.
4
5 Contributed by CodeSourcery, LLC.
6
7 This file is part of GDB.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>. */
21
22
23 #include "defs.h"
24
25 #include <stdlib.h>
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 /* -Wmissing-prototypes */
32 extern int tgetent (char *buffer, char *termtype);
33 extern int tgetnum (char *name);
34 extern int tgetflag (char *name);
35 extern char* tgetstr (char *name, char **area);
36 extern int tputs (char *string, int nlines, int (*outfun) (int));
37 extern char *tgoto (const char *cap, int col, int row);
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 /* Each of the files below is a minimal implementation of the standard
44 termcap function with the same name, suitable for use in a Windows
45 console window. */
46
47 int
48 tgetent (char *buffer, char *termtype)
49 {
50 return -1;
51 }
52
53 int
54 tgetnum (char *name)
55 {
56 return -1;
57 }
58
59 int
60 tgetflag (char *name)
61 {
62 return -1;
63 }
64
65 char *
66 tgetstr (char *name, char **area)
67 {
68 return NULL;
69 }
70
71 int
72 tputs (char *string, int nlines, int (*outfun) (int))
73 {
74 while (*string)
75 outfun (*string++);
76
77 return 0;
78 }
79
80 char *
81 tgoto (const char *cap, int col, int row)
82 {
83 return NULL;
84 }
This page took 0.044363 seconds and 4 git commands to generate.