Home
last modified time | relevance | path

Searched refs:prompt (Results 1 – 25 of 329) sorted by relevance

12345678910>>...14

/openbsd/games/phantasia/
H A Dgamesupport.c274 prompt = "level"; in changestats()
319 prompt = "mana"; in changestats()
334 prompt = "gold"; in changestats()
339 prompt = "gems"; in changestats()
344 prompt = "sin"; in changestats()
349 prompt = "x"; in changestats()
354 prompt = "y"; in changestats()
373 prompt = "type"; in changestats()
467 mvprintw(23, 0, "%s = %f; %s = ", prompt, *dptr, prompt); in changestats()
474 mvprintw(23, 0, "%s = %d; %s = ", prompt, *sptr, prompt); in changestats()
[all …]
/openbsd/gnu/usr.bin/perl/utils/
H A Dlibnetcfg.PL160 my($prompt,$def) = @_;
164 chomp($prompt);
168 print $prompt,," [",$def,"]\n";
171 prompt($prompt,$def);
180 my($prompt,$def) = @_;
188 my $ans = Prompt($prompt,$def);
205 my($prompt,$def) = @_;
239 my($prompt,$def) = @_;
241 chomp($prompt);
254 my($prompt,$def) = @_;
[all …]
/openbsd/gnu/usr.bin/texinfo/info/
H A Dm-x.c36 read_function_name (char *prompt, WINDOW *window) in read_function_name() argument
58 line = info_read_completing_in_echo_area (window, prompt, array); in read_function_name()
100 char *prompt; variable
102 prompt = (char *)xmalloc (20);
111 sprintf (prompt, "%d %s ", count, keys);
113 sprintf (prompt, "%s ", keys);
116 line = read_function_name (prompt, window);
168 char prompt[80]; variable
173 sprintf (prompt, _("Set screen height to (%d): "), new_height);
175 line = info_read_in_echo_area (window, prompt);
H A Dvariables.c112 char prompt[100]; variable
123 sprintf (prompt, _("Set %s to value (%d): "),
125 line = info_read_in_echo_area (active_window, prompt);
164 sprintf (prompt, _("Set %s to value (%s): "),
168 line = info_read_completing_in_echo_area (window, prompt, array);
204 read_variable_name (char *prompt, WINDOW *window) in read_variable_name() argument
215 info_read_completing_in_echo_area (window, prompt, variables); in read_variable_name()
/openbsd/lib/libcrypto/evp/
H A Devp_key.c74 EVP_set_pw_prompt(const char *prompt) in EVP_set_pw_prompt() argument
76 if (prompt == NULL) in EVP_set_pw_prompt()
79 strlcpy(prompt_string, prompt, sizeof(prompt_string)); in EVP_set_pw_prompt()
94 EVP_read_pw_string(char *buf, int len, const char *prompt, int verify) in EVP_read_pw_string() argument
96 return EVP_read_pw_string_min(buf, 0, len, prompt, verify); in EVP_read_pw_string()
101 EVP_read_pw_string_min(char *buf, int min, int len, const char *prompt, in EVP_read_pw_string_min() argument
114 if (prompt == NULL && prompt_string[0] != '\0') in EVP_read_pw_string_min()
115 prompt = prompt_string; in EVP_read_pw_string_min()
119 if (UI_add_input_string(ui, prompt, 0, buf, min, len - 1) < 0) in EVP_read_pw_string_min()
122 if (UI_add_verify_string(ui, prompt, 0, buff, min, len - 1, in EVP_read_pw_string_min()
/openbsd/gnu/llvm/lldb/source/Core/
H A DIOHandler.cpp148 prompt_stream.PutCString(prompt); in IOHandlerConfirm()
256 SetPrompt(prompt); in IOHandlerEditline()
301 SetPrompt(prompt); in IOHandlerEditline()
359 const char *prompt = nullptr; in GetLine() local
364 if (prompt == nullptr) in GetLine()
365 prompt = GetPrompt(); in GetLine()
367 if (prompt && prompt[0]) { in GetLine()
621 if (prompt) { in PrintAsync()
627 coord.X -= strlen(prompt); in PrintAsync()
635 if (prompt) in PrintAsync()
[all …]
/openbsd/sbin/pdisk/
H A Dio.c96 get_okay(const char *prompt, int default_value) in get_okay() argument
101 printf("%s", prompt); in get_okay()
119 printf("%s", prompt); in get_okay()
126 get_command(const char *prompt, int promptBeforeGet, int *command) in get_command() argument
131 printf("%s", prompt); in get_command()
141 printf("%s", prompt); in get_command()
151 get_number_argument(const char *prompt, long *number) in get_number_argument() argument
164 printf("%s", prompt); in get_number_argument()
202 get_dpistr_argument(const char *prompt) in get_dpistr_argument() argument
214 printf("%s", prompt); in get_dpistr_argument()
/openbsd/usr.bin/tmux/
H A Dcmd-command-prompt.c55 char *prompt; member
88 char *tmp, *prompts, *prompt, *next_prompt; in cmd_command_prompt_exec() local
120 while ((prompt = strsep(&next_prompt, ",")) != NULL) { in cmd_command_prompt_exec()
124 tmp = xstrdup(prompt); in cmd_command_prompt_exec()
126 xasprintf(&tmp, "%s ", prompt); in cmd_command_prompt_exec()
127 cdata->prompts[cdata->count].prompt = tmp; in cmd_command_prompt_exec()
160 status_prompt_set(tc, target, cdata->prompts[0].prompt, in cmd_command_prompt_exec()
177 struct cmd_command_prompt_prompt *prompt; in cmd_command_prompt_callback() local
189 prompt = &cdata->prompts[cdata->current]; in cmd_command_prompt_callback()
190 status_prompt_update(c, prompt->prompt, prompt->input); in cmd_command_prompt_callback()
[all …]
/openbsd/etc/skel/
H A Ddot.cshrc18 if ($?prompt) then
25 alias prompt 'set prompt = "$mch:q"":$cwd:t {\!} "'
26 alias cd 'cd \!*; prompt'
27 alias chdir 'cd \!*; prompt'
28 alias popd 'popd \!*; prompt'
29 alias pushd 'pushd \!*; prompt'
/openbsd/usr.bin/ssh/
H A Dreadpass.c120 read_passphrase(const char *prompt, int flags) in read_passphrase() argument
179 if ((ret = ssh_askpass(askpass, prompt, askpass_hint)) == NULL) in read_passphrase()
200 char *p, prompt[1024]; in ask_permission() local
204 vsnprintf(prompt, sizeof(prompt), fmt, args); in ask_permission()
207 p = read_passphrase(prompt, in ask_permission()
240 char *prompt = NULL; in notify_start() local
247 xvasprintf(&prompt, fmt, args); in notify_start()
253 writemsg(prompt); in notify_start()
272 free(prompt); in notify_start()
280 execlp(askpass, askpass, prompt, (char *)NULL); in notify_start()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/
H A Dprompt.t21 prompt(undef);
30 is( prompt("Foo?"), '', 'no default' );
33 is( prompt("Foo?", undef), '', 'undef default' );
36 is( prompt("Foo?", 'Bar!'), 'Bar!', 'default' );
45 is( prompt("Foo?", 'Bar!'), 'From STDIN', 'from STDIN' );
/openbsd/lib/libcrypto/ui/
H A Dui_lib.c140 general_allocate_prompt(const char *prompt, int dup_prompt, in general_allocate_prompt() argument
145 if (prompt == NULL) { in general_allocate_prompt()
159 uis->out_string = prompt; in general_allocate_prompt()
161 if ((uis->out_string = strdup(prompt)) == NULL) { in general_allocate_prompt()
269 return general_allocate_string(ui, prompt, 0, UIT_PROMPT, flags, in UI_add_input_string()
279 return general_allocate_string(ui, prompt, 1, UIT_PROMPT, flags, in UI_dup_input_string()
294 UI_dup_verify_string(UI *ui, const char *prompt, int flags, in UI_dup_verify_string() argument
355 char *prompt; in UI_construct_prompt() local
365 if (asprintf(&prompt, "Enter %s:", object_desc) == -1) in UI_construct_prompt()
368 if (asprintf(&prompt, "Enter %s for %s:", object_desc, in UI_construct_prompt()
[all …]
H A Dui_util.c63 UI_UTIL_read_pw_string(char *buf, int length, const char *prompt, int verify) in UI_UTIL_read_pw_string() argument
69 prompt, verify); in UI_UTIL_read_pw_string()
76 UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt, int verify) in UI_UTIL_read_pw() argument
86 ok = UI_add_input_string(ui, prompt, 0, buf, 0, size - 1); in UI_UTIL_read_pw()
88 ok = UI_add_verify_string(ui, prompt, 0, buff, 0, in UI_UTIL_read_pw()
H A Dui.h133 int UI_add_input_string(UI *ui, const char *prompt, int flags,
135 int UI_dup_input_string(UI *ui, const char *prompt, int flags,
137 int UI_add_verify_string(UI *ui, const char *prompt, int flags,
139 int UI_dup_verify_string(UI *ui, const char *prompt, int flags,
141 int UI_add_input_boolean(UI *ui, const char *prompt, const char *action_desc,
144 int UI_dup_input_boolean(UI *ui, const char *prompt, const char *action_desc,
368 int UI_UTIL_read_pw_string(char *buf, int length, const char *prompt,
370 int UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt,
/openbsd/sbin/fsck_msdos/
H A Dmain.c103 char prompt[256]; in ask() local
115 vsnprintf(prompt, sizeof(prompt), fmt, ap); in ask()
118 printf("%s? %s\n", prompt, rdonly ? "no" : "yes"); in ask()
122 printf("%s? [Fyn] ", prompt); in ask()
/openbsd/regress/bin/ksh/edit/
H A Dedit.c44 const char *prompt = ""; in main() local
56 prompt = optarg; in main()
64 if (argc == 0 || strlen(prompt) == 0) in main()
134 (n = findprompt(out + nprompt, prompt)) > 0) { in main()
163 findprompt(const char *str, const char *prompt) in findprompt() argument
168 if ((cp = strstr(str, prompt)) == NULL) in findprompt()
170 len = strlen(prompt); in findprompt()
/openbsd/usr.sbin/tokeninit/
H A Dtokeninit.c219 static char prompt[1024]; in prompt_for_secret() local
221 snprintf(prompt, sizeof prompt, in prompt_for_secret()
225 snprintf(prompt, sizeof prompt, in prompt_for_secret()
228 return prompt; in prompt_for_secret()
/openbsd/gnu/lib/libreadline/examples/
H A Drl.c78 char *temp, *prompt; local
90 prompt = "readline$ ";
99 prompt = optarg;
143 temp = readline (prompt);
H A Dexcallback.c88 int prompt = 1; variable
164 prompt = !prompt; in change_prompt()
186 prompt ? "Hit ctrl-t to toggle prompt> " : "Pretty cool huh?> "); in get_prompt()
H A Drltest.c46 char *temp, *prompt; in main() local
50 prompt = "readline$ "; in main()
55 temp = readline (prompt); in main()
/openbsd/usr.sbin/pkg_add/OpenBSD/
H A DInteractive.pm30 sub ask_list($self, $prompt, @values)
42 $self->{state}->fhsay($fh, '#1', $prompt);
83 sub confirm($self, $prompt, $yesno = 0)
90 $prompt, $yesno ? "Y/n" : "y/N");
/openbsd/gnu/llvm/lldb/utils/lui/
H A Dcui.py258 self.prompt = ''
264 def draw(self, prompt=None): argument
265 if not prompt:
266 prompt = self.prompt
268 if (len(prompt) + len(self.content)) / w + self.starty >= h - 1:
277 self.win.addstr(y, x, prompt)
279 self.win.addstr(remain[:w - len(prompt)])
280 remain = remain[w - len(prompt):]
286 length = self.index + len(prompt)
289 def showPrompt(self, y, x, prompt=None): argument
[all …]
/openbsd/usr.bin/telnet/
H A Dmain.c88 prompt = __progname; in main()
92 rlogin = (strncmp(prompt, "rlog", 4) == 0) ? '~' : _POSIX_VDISABLE; in main()
155 prompt, errstr, optarg); in main()
185 *argp++ = prompt; in main()
/openbsd/usr.bin/bgplg/
H A Dbgplgsh.c215 char prompt[HOST_NAME_MAX+1], *line, **argp = NULL; in main() local
227 gethostname(prompt, sizeof(prompt) - 2); in main()
228 strlcat(prompt, "> ", sizeof(prompt)); in main()
230 if ((line = readline(prompt)) == NULL) { in main()
/openbsd/gnu/usr.bin/binutils/gdb/tui/
H A Dtui-windata.c109 tui_erase_data_content (char *prompt) in tui_erase_data_content() argument
113 if (prompt != (char *) NULL) in tui_erase_data_content()
118 if (strlen (prompt) >= half_width) in tui_erase_data_content()
121 x_pos = half_width - strlen (prompt); in tui_erase_data_content()
125 prompt); in tui_erase_data_content()

12345678910>>...14