user.c (126844) | user.c (156123) |
---|---|
1/* | 1/* |
2 * $FreeBSD: head/usr.sbin/sysinstall/user.c 126844 2004-03-11 11:58:16Z bde $ | 2 * $FreeBSD: head/usr.sbin/sysinstall/user.c 156123 2006-02-28 21:49:33Z jhb $ |
3 * 4 * Copyright (c) 1996 5 * J�rg Wunsch. All rights reserved. 6 * 7 * The basic structure has been taken from tcpip.c, which is: 8 * 9 * Copyright (c) 1995 10 * Gary J Palmer. All rights reserved. --- 86 unchanged lines hidden (view full) --- 97#define LAYOUT_OKBUTTON 3 98 { 18, 15, 0, 0, 99 "OK", "Select this if you are happy with these settings", 100 &okbutton, BUTTONOBJ, NULL }, 101#define LAYOUT_CANCELBUTTON 4 102 { 18, 35, 0, 0, 103 "CANCEL", "Select this if you wish to cancel this screen", 104 &cancelbutton, BUTTONOBJ, NULL }, | 3 * 4 * Copyright (c) 1996 5 * J�rg Wunsch. All rights reserved. 6 * 7 * The basic structure has been taken from tcpip.c, which is: 8 * 9 * Copyright (c) 1995 10 * Gary J Palmer. All rights reserved. --- 86 unchanged lines hidden (view full) --- 97#define LAYOUT_OKBUTTON 3 98 { 18, 15, 0, 0, 99 "OK", "Select this if you are happy with these settings", 100 &okbutton, BUTTONOBJ, NULL }, 101#define LAYOUT_CANCELBUTTON 4 102 { 18, 35, 0, 0, 103 "CANCEL", "Select this if you wish to cancel this screen", 104 &cancelbutton, BUTTONOBJ, NULL }, |
105 { 0 }, | 105 LAYOUT_END, |
106}; 107 108/* The user configuration menu. */ 109static Layout userLayout[] = { 110#define LAYOUT_UNAME 0 111 { 3, 6, UT_NAMESIZE, UT_NAMESIZE + 1, 112 "Login ID:", "The login name of the new user (mandatory)", 113 uname, STRINGOBJ, NULL }, --- 28 unchanged lines hidden (view full) --- 142#define LAYOUT_U_OKBUTTON 8 143 { 18, 15, 0, 0, 144 "OK", "Select this if you are happy with these settings", 145 &okbutton, BUTTONOBJ, NULL }, 146#define LAYOUT_U_CANCELBUTTON 9 147 { 18, 35, 0, 0, 148 "CANCEL", "Select this if you wish to cancel this screen", 149 &cancelbutton, BUTTONOBJ, NULL }, | 106}; 107 108/* The user configuration menu. */ 109static Layout userLayout[] = { 110#define LAYOUT_UNAME 0 111 { 3, 6, UT_NAMESIZE, UT_NAMESIZE + 1, 112 "Login ID:", "The login name of the new user (mandatory)", 113 uname, STRINGOBJ, NULL }, --- 28 unchanged lines hidden (view full) --- 142#define LAYOUT_U_OKBUTTON 8 143 { 18, 15, 0, 0, 144 "OK", "Select this if you are happy with these settings", 145 &okbutton, BUTTONOBJ, NULL }, 146#define LAYOUT_U_CANCELBUTTON 9 147 { 18, 35, 0, 0, 148 "CANCEL", "Select this if you wish to cancel this screen", 149 &cancelbutton, BUTTONOBJ, NULL }, |
150 { 0 }, | 150 LAYOUT_END, |
151}; 152 153/* whine */ 154static void 155feepout(char *msg) 156{ 157 beep(); 158 dialog_notify(msg); --- 584 unchanged lines hidden --- | 151}; 152 153/* whine */ 154static void 155feepout(char *msg) 156{ 157 beep(); 158 dialog_notify(msg); --- 584 unchanged lines hidden --- |