Questions tagged [interactive]

Interactive software accepts and responds to input from humans, in contrast to noninteractive software, which operate without human contact.

1873 questions
62
votes
6 answers

git rebase interactive: squash merge commits together

I wanted to have a simple solution to squash two merge commits together during an interactive rebase. My repository looks like: X --- Y --------- M1 -------- M2 (my-feature) / / / / / / a ---…
Mildred
  • 3,887
  • 4
  • 36
  • 44
60
votes
3 answers

Writing a "real" interactive terminal program like vim, htop, ... in C/C++ without ncurses

No, I don't want to use ncurses, because I want to learn how the terminal works and have fun programming it on my own. :) It doesn't have to be portable, it has to work on linux xterm-based terminal emulators only. What I want to do is…
leemes
  • 44,967
  • 21
  • 135
  • 183
60
votes
9 answers

Equivalent of Python's dir in Javascript

when I write Python code from the interpreter I can type dir() to have a list of names defined in the current scope. How can achieve to have the same information, programmatically, when I develop Javascript code from a browser using an interactive…
Paolo
  • 20,112
  • 21
  • 72
  • 113
58
votes
4 answers

Interactive input/output using Python

I have a program that interacts with the user (acts like a shell), and I want to run it using the Python subprocess module interactively. That means, I want the possibility to write to standard input and immediately get the output from standard…
Talor Abramovich
  • 801
  • 1
  • 6
  • 9
52
votes
2 answers

I can't write multiline codes in Coffeescript Interactive Mode(REPL)

When I typed multiline in coffeescript interactive mode, an error occrured. For example, I want to try the following code: kids = brother: name: "Max" age: 11 sister: name: "Ida" age: 9 This Error was displayed: coffee> kids =…
utwang
  • 1,474
  • 11
  • 16
44
votes
4 answers

installing `lightdm` in Dockerfile raises interactive keyboard layout menu

I have the following Dockerfile: # Pull from CentOS RPM Build Image FROM ubuntu # Update the image RUN apt-get update -y RUN apt-get install lightdm -y The problem I have is when I'm building this container with docker build -t dumbcontainer ., at…
lurscher
  • 25,930
  • 29
  • 122
  • 185
43
votes
9 answers

Are there good Java libraries that facilitate building command-line applications?

I need to write a simple command-line application in Java. It would be nice to use a library that takes care of parsing commands and takes care of things like flags and optional/mandatory parameters... UPDATE Something that has built-in TAB…
carrier
  • 32,209
  • 23
  • 76
  • 99
40
votes
5 answers

interactive lua: command line arguments

I wish to do lua prog.lua arg1 arg2 from the command line Inside prog.lua, I want to say, for instance print (arg1, arg2, '\n') Lua doesn't seem to have argv[1] etc and the methods I've seen for dealing with command line arguments seem to be…
mr calendar
  • 945
  • 5
  • 11
  • 21
39
votes
6 answers

How to finish sys.stdin.readlines() input?

This might be a silly question, but as I can't find an answer, I have to ask it. In interactive python I want to process a message which i get with: >>> message = sys.stdin.readlines() Everything works fine, but... how to stop it from getting an…
Gandi
  • 3,522
  • 2
  • 21
  • 31
38
votes
4 answers

Including JavaScript in SVG

I am trying to create an interactive SVG code with JavaScript, by embedding the JavaScript in the SVG. I don't know if this is the right way to do this:
mortalc
  • 525
  • 1
  • 5
  • 9
37
votes
2 answers

How do you cleanly exit interactive Lua?

I've tried to the word "quit" on a single line but this seems to simply change the command line pointer from a ">" to a ">>". What's the best way to end a session in interactive Lua please?
James Bedford
  • 28,702
  • 8
  • 57
  • 64
36
votes
5 answers

Interactive console using Pydev in Eclipse?

I'm debugging my Python code in Eclipse using the Pydev plugin. I'm able to open a Pydev console and it gives me two options: "Console for currently active editor" and "Python console". However none of them is useful to inspect current variable…
ricafeal
  • 14,169
  • 4
  • 19
  • 10
36
votes
6 answers

Does an updated 'vimtutor' exist?

vim comes with a nice built-in interactive tutorial. You can access this tutorial by just running: $ vimtutor It is very easy to use because it creates working cases for basic commands. Is there a more advanced tutorial? Has any one thought to…
Glennular
  • 17,827
  • 9
  • 58
  • 77
34
votes
8 answers

Interactive shell using PHP

Is it possible to create an interactive shell, using PHP alone? I mean something like you have with databases, Python, etc. If it is, how?
34
votes
2 answers

kubectl YAML config file equivalent of "kubectl run ... -i --tty ..."

I've been using "kubectl run" with assorted flags to run Jobs interactively, but have recently outgrown what I can do with those flags, and have graduated to using YAML config files to describe my jobs. However, I can't find an equivalent to the…
garethw
  • 483
  • 1
  • 4
  • 6