prompt is a command-line or graphical interface which presents the user with a line editor or modal dialog and suspends execution until input is returned
Questions tagged [prompt]
2321 questions
0
votes
3 answers
Need to check whether user input is a number. Code is not working as intended. Can someone tell me what's wrong?
Just need to check that data user input on prompt is a number in Javascript
var userAge = prompt("Please enter your age", "");
if (typeof userAge == 'number') {
document.write("You are " + userAge + " years old.");
} else {
…

Jevon Cochran
- 1,565
- 2
- 12
- 23
0
votes
2 answers
Ansible loop on var prompt
I would like to create several node on my bigip. For that I want to do a loop on my var prompt and register each value in my variable {{node_list}}.
This is what I've tried
- name: node creation
hosts: F5
gather_facts: no
connection:…

Mathys
- 27
- 7
0
votes
2 answers
Accept " as input from user in a .BAT File?
How do I make the code ask the user to input cd "folder one" then accept their input once they correctly input the test and go to label :2.
@echo off
:BEGIN
echo cd "folder one" = navigates user to folder 1.
set /p input=Insert Word:
if /i…

Iroamalone Atnight
- 67
- 1
- 2
- 8
0
votes
0 answers
Save all 'ssh' commands to a file
I log into a lot of servers via ssh. Typically I just use the easy bash history search to scroll through my history of 'ssh' commands and find the one I want. However, eventually my .bash_history reaches its limit and I start losing entries, despite…

user5359531
- 3,217
- 6
- 30
- 55
0
votes
1 answer
can't use anaconda prompt after trying to install keras
I tried to install keras using Anaconda prompt some time ago. It didn't work, but I got it working using another method. However, now when I open Anaconda Prompt it shows
set /p KERAS_BACKEND= 0nul…

unknown
- 853
- 1
- 10
- 23
0
votes
0 answers
Anaconda Prompt closes authomatically
I have problem opening Anaconda Prompt, as it closes automatically. The problem appeared when I have installed pymc3, I even uninstall pymc3 to see if it works again or not, but the problem was not fixed. Before that, I could have open Spyder or…
0
votes
1 answer
Pass input parameters to ruby-written shell?
I'm trying to write a shell in Ruby (using readline), implementing some custom commands. To create the correspondence between given input and methods that are defined in an external module I'm using an hash like this
hash = {
'command_1' =>…

A G
- 1
- 3
0
votes
2 answers
how can I pause my C program when a page of the console has been printed?
I'm working on a basic SIC assembler and one of the features that I'm trying to implement is that during a dump function, if the program generates more than a page of text on the console, it would prompt the user to press a key before continuing.
My…

0possum0
- 3
- 1
0
votes
1 answer
Check if have substring in variable - Command in same Line (cmd /c)
I try use this code (work very well):
setlocal enabledelayedexpansion & set "WP=(wordA) (wordB) (wordC)" & set "WN=wordBB"
IF NOT "!WP:(%WN%)=!"=="!WP!" (echo found) ELSE (echo Not found)
But this not work (for use in vbscript):
cmd /v /c "setlocal…

murilo.xd
- 69
- 6
0
votes
1 answer
running PowerShell cmd with pipeline in cmd prompt
I want to run the cmd select-string in cmd prompt to find some string recursive.
But it can't work while the cmd have the pipeline(|) character, and it will work by running the cmd in the powershell prompt.
The Chinese error info…

Victor Lee
- 2,467
- 3
- 19
- 37
0
votes
1 answer
anaconda prompt stuck - Activate.bat
Very inexperienced user here so forgive my ignorance.
Having a problem after launching Anaconda Prompt. I just get a flashing cursor. The top of the window reads 'Anaconda Prompt - C:\ProgramData\Anaconda3\Scripts\Activate.bat…

M. Castle
- 1
- 1
0
votes
2 answers
Yii 2 kartik dialog.prompt with input type textarea
I have a button that triggers a kartik dialog.prompt, where text is put in.
I need the input in the dialog to have several rows and line breaking capability (like textarea)
How to change it from a simple text input to textarea?
Here is my…

Adam Vtípil
- 80
- 1
- 6
0
votes
2 answers
show prompt while the user cancels, it gets uncaught typeError
I have declared a function called init(), it ask the users the game size, which is separated by the space. I want to show the prompt while the user doesn't click on ok and acts like cancel (explicitly click on the cancel or implicitly press the esc…

Somehow
- 41
- 7
0
votes
0 answers
Issues Calling Prompt Node.js Package multiple times within each loop of a For Loop or While Loop
I'm working on a node word guessing game and I'm trying to have code that prompts the user for input until they run out of guesses or get the word right. Right now I'm having an issue working with prompt's callback. Because of the nature of…
0
votes
1 answer
PS Query - multiple values within a single prompt
In PeopleSoft Query, I want to allow users to choose multiple values within a single prompt. I work at a higher education institution, so I'll give a real time example. In the Faculty of Science (the field is GRP), there are 8 departments -…

Elizabeth Felet
- 3
- 4