342
|
1 /*****************************************************************************/
|
|
2 /* textui.c - Text UI related functions for gFTP */
|
|
3 /* Copyright (C) 1998-2003 Brian Masney <masneyb@gftp.org> */
|
|
4 /* */
|
|
5 /* This program is free software; you can redistribute it and/or modify */
|
|
6 /* it under the terms of the GNU General Public License as published by */
|
|
7 /* the Free Software Foundation; either version 2 of the License, or */
|
|
8 /* (at your option) any later version. */
|
|
9 /* */
|
|
10 /* This program is distributed in the hope that it will be useful, */
|
|
11 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
|
12 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
|
13 /* GNU General Public License for more details. */
|
|
14 /* */
|
|
15 /* You should have received a copy of the GNU General Public License */
|
|
16 /* along with this program; if not, write to the Free Software */
|
|
17 /* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA */
|
|
18 /*****************************************************************************/
|
|
19
|
|
20 #include "gftp-text.h"
|
|
21 static const char cvsid[] = "$Id$";
|
|
22
|
|
23 void
|
|
24 gftpui_lookup_file_colors (gftp_file * fle, char **start_color,
|
|
25 char ** end_color)
|
|
26 {
|
|
27 if (*fle->attribs == 'd')
|
|
28 *start_color = GFTPUI_COMMON_COLOR_BLUE;
|
|
29 else if (*fle->attribs == 'l')
|
|
30 *start_color = GFTPUI_COMMON_COLOR_WHITE;
|
|
31 else if (strchr (fle->attribs, 'x') != NULL)
|
|
32 *start_color = GFTPUI_COMMON_COLOR_GREEN;
|
|
33 else
|
|
34 *start_color = GFTPUI_COMMON_COLOR_DEFAULT;
|
|
35
|
|
36 *end_color = GFTPUI_COMMON_COLOR_DEFAULT;
|
|
37 }
|
|
38
|
|
39
|
|
40 void
|
|
41 gftpui_refresh (void *uidata)
|
|
42 {
|
|
43 /* FIXME - clear the cache entry */
|
|
44 }
|
|
45
|
|
46
|
|
47 void *
|
|
48 gftpui_generic_thread (void * (*func) (void *), void *data)
|
|
49 {
|
|
50 return (NULL);
|
|
51 }
|
|
52
|
|
53
|
|
54 int
|
|
55 gftpui_check_reconnect (gftpui_callback_data * cdata)
|
|
56 {
|
|
57 return (1);
|
|
58 }
|
|
59
|