Interactive software accepts and responds to input from humans, in contrast to noninteractive software, which operate without human contact.
Questions tagged [interactive]
1873 questions
34
votes
1 answer
How to force ffmpeg into non-interactive mode?
Sometimes you want ffmpeg to ask you whether it should overwrite a file. Sometimes it's just a script that you prefer would fail if something is amiss. I.e. don't rely on stdin to answer if you have a question.

ubershmekel
- 11,864
- 10
- 72
- 89
33
votes
5 answers
Checking for interactive shell in a Python script
I need to determine whether the shell which invoked my Python script was in interactive mode or not. If it was in interactive mode, the program should pipe output to less(1) for easy reading. If not, it should simply print its output to stdout, to…

jforberg
- 6,537
- 3
- 29
- 47
33
votes
2 answers
How to fill user input for interactive command for "RUN" command?
I'm just trying ubuntu:19.04 on docker image, I wish to install tcl in the image so I have:
RUN apt update && apt install tcl
Then it will give some interactive commands:
Please select the geographic area in which you live. Subsequent configuration…

Troskyvs
- 7,537
- 7
- 47
- 115
32
votes
1 answer
In clojure, how can I undef a var from a namespace?
In clojure I have lines like this that define default values:
(def *http-port* 8080)
I've now decided to formalize these kinds of values into a configuration unit and I would like to undefine the value *http-port* so that I can find the locations…

Pieter Breed
- 5,579
- 5
- 44
- 60
30
votes
6 answers
Get output from a Paramiko SSH exec_command continuously
I am executing a long-running python script via ssh on a remote machine using paramiko. Works like a charm, no problems so far.
Unfortunately, the stdout (respectively the stderr) are only displayed after the script has finished! However, due to the…

Lukas N.P. Egger
- 923
- 2
- 9
- 12
29
votes
1 answer
emacs interactive commands with default value
I am wondering how is that some interactive commands in emacs present default value while others don't. For instance when I am in C file and cursor stands on printf, running manual-entry will suggest showing manual page for printf by default. I…

Alexander Sandler
- 2,078
- 2
- 19
- 21
28
votes
7 answers
C# Console?
Does anyone know if there is a c# Console app, similar to the Python or Ruby console? I know the whole "Compiled versus Interpreted" difference, but with C#'s reflection power I think it could be done.
UPDATE
Well, it only took about 200 lines, but…

FlySwat
- 172,459
- 74
- 246
- 311
27
votes
2 answers
Interactive Graphviz viewer with basic node/edge filtering
I looked thru Graphviz resources page , and questions 1 and 2 and still couldn't find specific answer. My usecase is browsing dependencies among software components (e.g. installable packages), and one particular trait with it is that some common…

pfalcon
- 6,724
- 4
- 35
- 43
25
votes
5 answers
Detect empty command
Consider this PS1
PS1='\n${_:+$? }$ '
Here is the result of a few commands
$ [ 2 = 2 ]
0 $ [ 2 = 3 ]
1 $
1 $
The first line shows no status as expected, and the next two lines show the
correct exit code. However on line 3 only Enter was…

Zombo
- 1
- 62
- 391
- 407
25
votes
4 answers
Matplotlib remove patches from figure
In my case, I want to remove one of the circle when clicking reset button. However, ax.clear() would clear all circles on the current figure.
Can someone tell me how to remove only part of the patches?
import matplotlib.patches as patches
import…

Idealist
- 792
- 1
- 8
- 18
24
votes
2 answers
Interactive plotting with R raster: values on mouseover
I'd like to do a small program in R for interactive visualization and modification of some raster datasets, seen as colored images.
The user should open a file (from the terminal it's OK), plot it, select the points to edit with mouse clicks, and…

AF7
- 3,160
- 28
- 63
24
votes
2 answers
Running an interactive command from within Python
I have a script that I want to run from within Python (2.6.5) that follows the logic below:
Prompts the user for a password. It looks like ("Enter password: ") (*Note: Input does not echo to screen)
Output irrelevant information
Prompt the user for…

user1521597
- 241
- 1
- 2
- 3
22
votes
3 answers
Implement an interactive shell over ssh in Python using Paramiko?
I want to write a program (in Python 3.x on Windows 7) that executes multiple commands on a remote shell via ssh. After looking at paramikos' exec_command() function, I realized it's not suitable for my use case (because the channel gets closed…

misha
- 777
- 1
- 9
- 21
21
votes
10 answers
Fastest way to write & compile a C/C++ program in Windows
I'm usually using Visual Studio, but several things bother me when I just quickly want to test some code:
it has a rather long startup time
it always needs a project to execute/debug files
program output gets printed to the console, but the window…

Felix Dombek
- 13,664
- 17
- 79
- 131
20
votes
2 answers
Interactive Floor Plans in HTML5
I have to develop interactive floor plan navigator and viewer for apartment buildings, which will succeed its Flash-based predecessor.
I am now in the process of evaluating techniques and technologies best suited to implement this in HTML5.
I will…

theduke
- 3,027
- 4
- 29
- 28