Server IP : 103.169.32.36 / Your IP : 216.73.217.13 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/source/scripts/kconfig/ |
Upload File : |
| Current File : /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/source/scripts/kconfig/nconf.h |
/*
* Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com?
* Released under the terms of the GNU GPL v2.0.
*
* Derived from menuconfig.
*
*/
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <locale.h>
#include <curses.h>
#include <menu.h>
#include <panel.h>
#include <form.h>
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
#include "ncurses.h"
#define max(a, b) ({\
typeof(a) _a = a;\
typeof(b) _b = b;\
_a > _b ? _a : _b; })
#define min(a, b) ({\
typeof(a) _a = a;\
typeof(b) _b = b;\
_a < _b ? _a : _b; })
typedef enum {
NORMAL = 1,
MAIN_HEADING,
MAIN_MENU_BOX,
MAIN_MENU_FORE,
MAIN_MENU_BACK,
MAIN_MENU_GREY,
MAIN_MENU_HEADING,
SCROLLWIN_TEXT,
SCROLLWIN_HEADING,
SCROLLWIN_BOX,
DIALOG_TEXT,
DIALOG_MENU_FORE,
DIALOG_MENU_BACK,
DIALOG_BOX,
INPUT_BOX,
INPUT_HEADING,
INPUT_TEXT,
INPUT_FIELD,
FUNCTION_TEXT,
FUNCTION_HIGHLIGHT,
ATTR_MAX
} attributes_t;
extern attributes_t attributes[];
typedef enum {
F_HELP = 1,
F_SYMBOL = 2,
F_INSTS = 3,
F_CONF = 4,
F_BACK = 5,
F_SAVE = 6,
F_LOAD = 7,
F_SEARCH = 8,
F_EXIT = 9,
} function_key;
void set_colors(void);
/* this changes the windows attributes !!! */
void print_in_middle(WINDOW *win,
int starty,
int startx,
int width,
const char *string,
chtype color);
int get_line_length(const char *line);
int get_line_no(const char *text);
const char *get_line(const char *text, int line_no);
void fill_window(WINDOW *win, const char *text);
int btn_dialog(WINDOW *main_window, const char *msg, int btn_num, ...);
int dialog_inputbox(WINDOW *main_window,
const char *title, const char *prompt,
const char *init, char **resultp, int *result_len);
void refresh_all_windows(WINDOW *main_window);
void show_scroll_win(WINDOW *main_window,
const char *title,
const char *text);
| N4m3 |
5!z3 |
L45t M0d!f!3d |
0wn3r / Gr0up |
P3Rm!55!0n5 |
0pt!0n5 |
| .. |
-- |
September 29 2025 07:01:30 |
0 / 0 |
0755 |
|
| lxdialog |
-- |
September 29 2025 07:01:30 |
0 / 0 |
0755 |
|
| | | | | |
| Makefile |
11.104 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| POTFILES.in |
0.353 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| check.sh |
0.21 KB |
November 06 2023 09:15:52 |
0 / 0 |
0755 |
|
| conf |
95.906 KB |
June 04 2024 14:55:43 |
0 / 0 |
0755 |
|
| conf.c |
15.527 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| confdata.c |
24.894 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| expr.c |
29.372 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| expr.h |
7.245 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| gconf.c |
38.813 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| gconf.glade |
25.041 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| images.c |
6.411 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| kxgettext.c |
4.098 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| list.h |
3.629 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| lkc.h |
4.856 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| lkc_proto.h |
2.435 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| mconf.c |
27.301 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| menu.c |
16.995 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| merge_config.sh |
3.754 KB |
November 06 2023 09:15:52 |
0 / 0 |
0755 |
|
| nconf.c |
37.992 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| nconf.gui.c |
14.446 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| nconf.h |
1.871 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| qconf.cc |
43.369 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| qconf.h |
7.746 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| streamline_config.pl |
14.591 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| symbol.c |
27.878 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| util.c |
3.084 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| zconf.gperf |
1.453 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| zconf.hash.c |
12.359 KB |
December 07 2023 15:38:47 |
0 / 0 |
0644 |
|
| zconf.hash.c_shipped |
12.359 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| zconf.l |
6.861 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| zconf.lex.c |
58.458 KB |
December 07 2023 15:38:47 |
0 / 0 |
0644 |
|
| zconf.lex.c_shipped |
58.458 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| zconf.tab.c |
70.232 KB |
December 07 2023 15:38:47 |
0 / 0 |
0644 |
|
| zconf.tab.c_shipped |
70.232 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| zconf.y |
15.735 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|