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
72
votes
4 answers
Don't make me manually abort a LaTeX compile when there's an error
As suggested here, latexmk is a handy way to continually compile your document whenever the source changes. But often when you're working on a document you'll end up with errors and then latex will panic and wait for user input before continuing. …

dreeves
- 26,430
- 45
- 154
- 229
69
votes
14 answers
How can the last command's wall time be put in the Bash prompt?
Is there a way to embed the last command's elapsed wall time in a Bash prompt? I'm hoping for something that would look like this:
[last: 0s][/my/dir]$ sleep 10
[last: 10s][/my/dir]$
Background
I often run long data-crunching jobs and it's useful…

Mr Fooz
- 109,094
- 6
- 73
- 101
67
votes
7 answers
How do I change the command-line prompt in Windows?
How do I change the command-line prompt into a console?
I've been looking in the console functions API, but I could not find anything for it.
user1243746
60
votes
5 answers
OpenAI ChatGPT (GPT-3.5) API error 429: "You exceeded your current quota, please check your plan and billing details"
I'm making a Python script to use OpenAI via its API. However, I'm getting this error:
openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details
My script is the following:
#!/usr/bin/env python3.8
#…

Unix
- 1,358
- 3
- 14
- 23
53
votes
6 answers
Javascript prompt() - cancel button to terminate the function
I'm calling a Javascript window.prompt() and prompting the user to submit a variable which I compare to another variable (a very basic password protection). The function works great, however, if you click "cancel" on the prompt() window, the…

Justin Ward
- 825
- 1
- 7
- 14
46
votes
8 answers
Anaconda / Python: Change Anaconda Prompt User Path
I want to change my Anaconda Prompt User file path. Currently it is as follows:
I want it to change to: C:\Users\u354590
How do I do this?
The current version of anaconda I have is:
Python 3.6.3 |Anaconda, Inc.| (default, Oct 15 2017, 03:27:45)…

PineNuts0
- 4,740
- 21
- 67
- 112
45
votes
4 answers
How can I prompt for yes/no style confirmation in a zsh script?
Using zsh, I'm trying to put a step in my ~/.zprofile where I interactively ask a yes/no style question. At first I tried this bash-style approach, but I saw errors of this form:
read: -p: no coprocess
(I'm aware that typically the zsh syntax is…

Andrew Ferrier
- 16,664
- 13
- 47
- 76
44
votes
5 answers
Command to run a .bat file
I'm trying to make my Visual Studio build script execute a .bat file that does something important.
Here is what I'm want to do right now:
cd "F:\- Big Packets -\kitterengine\Common\" Template.bat
But it doesn't work.
I have to do this to make it…

BingBang32
- 557
- 1
- 4
- 9
43
votes
6 answers
zsh: update prompt with current time when a command is started
I have a zsh prompt I rather like: it evaluates the current time in precmd and displays that on the right side of the prompt:
[Floatie:~] ^_^
cbowns% [9:28:31 on 2012-10-29]
However, this isn't exactly what I want: as you can…

cbowns
- 6,295
- 5
- 47
- 64
42
votes
4 answers
Python/python3 executes in Command Prompt, but does not run correctly
I've solved the issue and am posting to save others from my hours of pain.
Problem
On Windows 10,
Python is installed in C:\Python and added to Environment Variables, but will not properly run programs.
Typing python myscript.py in CMD does not run…

Spencer DaCoder
- 521
- 1
- 4
- 6
42
votes
4 answers
Is there any way to create prompt with two input fields?
Is there any way to create prompt in JavaScript with two input fields ?
I tried that code, but it didn't help me :
var a = prompt("A : ", "");
var b = prompt("B : ", "");
alert(a + "\n" + b);

TN888
- 7,659
- 9
- 48
- 84
41
votes
9 answers
Shell Prompt Line Wrapping Issue
I've done something to break my Bash Shell Prompt in OS X (10.5.7) Terminal.
This is the PS1 that I had configured:
PS1='\[\e[1;32m\]\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\$ '
As far as I can tell I have the color commands escaping correctly. However…

Rob
- 3,687
- 2
- 32
- 40
37
votes
4 answers
Randomly change the prompt in the Python interpreter
It's kind of boring to always see the >>> prompt in Python. What would be the best way to go about randomly changing the prompt prefix?
I imagine an interaction like:
This is a tobbaconist!>> import sys
Sorry?>> import math
Sorry?>> print…

mircealungu
- 6,831
- 7
- 34
- 44
35
votes
4 answers
How can I shorten the path of a DOS prompt?
My path on my DOS prompt is ridiculously long. How can I shorten this?
C:\RUBY\Ruby_Practice\prep-work-master\coding-test-2\practice-problems\spec>

jingyang81
- 453
- 1
- 4
- 7
32
votes
5 answers
how to show current directory in ipython prompt
Is there is way to show the current directory in IPython prompt?
Instead of this:
In [1]:
Something like this:
In<~/user/src/proj1>[1]:

motam79
- 3,542
- 5
- 34
- 60