Questions tagged [console]

A mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks

A terminal is an interactive text-mode or text-based user interface to a software application or operating system. It may be implemented as a character-mode application or embedded in a graphical user interface.

A terminal may be used as the main user interface or as a secondary interface for debugging and administrative tasks. The degree of interactivity varies widely between terminals.

A console is a particular type of terminal, usually a physical terminal or a terminal implemented directly by the kernel. The term "console" is often incorrectly used in place of "terminal".

14034 questions
6
votes
8 answers

How to prevent certain forms of input when writing methods?

I'm still a beginner to programming in high-level programming languages, so I don't know if this is an easy solution, but I'm happy to learn anyway. I've programmed a little alarm program in C# that let's the user input in how many seconds the alarm…
DutchLearner
  • 335
  • 3
  • 13
6
votes
2 answers

Rails console runs without prompt

When I run my rails console I got something like this: Loading development environment (Rails 3.2.3) /Users/sebastiannowak/.rvm/gems/jruby-1.6.7@global/gems/bundler-1.1.0/lib/bundler.rb:254 warning: shadowing outer local variable - path Switch to…
Sebastian
  • 2,618
  • 3
  • 25
  • 32
6
votes
3 answers

calling a method when closing console

Is there a way to force C# compiler, visual studio 2010, to call a method whenever the user closes the console ? I know that this can be done in windows forms by some sort of event handling or using dispose methods, but what about console, is there…
Emo
  • 546
  • 4
  • 7
  • 22
6
votes
1 answer

Move one character to the left in the console

In the console you can print "\b" to erase the character left of the cursor (backspace) like this print "the last char is going to be erased\b" # the last char is going to be erased How to just move one position to the left instead of erasing (left…
peter
  • 41,770
  • 5
  • 64
  • 108
6
votes
2 answers

adding a console to a Jframe

Im working on a game right now that uses a scanner to interact with the user. The Game was first text based so the Java console view was what i used to play. Now I have to convert the game to a Gui or Jframe so I want to be able to have the same…
Andrew
  • 391
  • 3
  • 15
5
votes
2 answers

Read Console Process Output

I'm attempting to read the full contents of a console process (after 3 seconds) with the code below: Dim NewProcess As New System.Diagnostics.Process() With NewProcess.StartInfo .FileName = EXE_PATH .RedirectStandardOutput = True …
user1293575
  • 103
  • 1
  • 2
  • 8
5
votes
4 answers

Java printf not printing

I'm trying to make a cross platform console progress indicator in Java. Therefore I use the System.out.printf method to print out a percentage: System.out.printf("\t%2.2f%%\b\b\b\b\b\b", percentage); and I place this in a for loop. The problem I…
Daan Pape
  • 1,100
  • 1
  • 13
  • 25
5
votes
2 answers

How do escape echo " for storing in a file?

I know : echo "blah blah" >file.txt works. and that echo "" >file.txt works too. but, what if I want to echo only ONE " (double quote) in a file. echo ">file.txt doesn't work, is it possible doing it in a one line command?
Joe DF
  • 5,438
  • 6
  • 41
  • 63
5
votes
1 answer

Override previous Console Output

is it possible to override the last System.out.println output, so i can for example visualize changes in a array or create a progessbar? For example if i have this class: class Main{ public static void main(String[] args){ for(int i = 0; i <…
reox
  • 5,036
  • 11
  • 53
  • 98
5
votes
1 answer

What Ruby libraries should I use for building a console-based application?

I want to build a console-based application with Ruby. I quick googled and found all of these below libraries. Please someone suggest me which one should I use. Thank you. OptionParser…
tonkla
  • 319
  • 3
  • 8
5
votes
5 answers

C/C++: is it possible to pass binary data through the console?

I would like to know if it is possible that an utility yields binary data (i.e. graphical images) and outputs them through IO console, while another application, instructed about the nature of those data and informed of the number of the incoming…
P5music
  • 3,197
  • 2
  • 32
  • 81
5
votes
4 answers

Chrome Developer Tools console - log stacking, how do I see re-logged stuff [Screenshot Inside]?

I've just started using the console in Chrome Developer Tools (pretty new to Javascript in general). I noticed that when I consecutively log the same variable twice (an object in this case), that the log stacks this and places a little number icon…
Avicinnian
  • 1,822
  • 5
  • 37
  • 55
5
votes
2 answers

Calling custom functions from firebug console

I created a document that loads a .js document that has some JQuery functions that I have created. I would like to use the firebug console to quickly test the functionality of these functions on my html document. But when I try and call these…
E.E.33
  • 2,013
  • 3
  • 22
  • 34
5
votes
4 answers

Non-deterministic progress bar on java command line

I have a console application in which I would like to put a non-deterministic progress bar on the command line while some heavy computations are done. Currently I simply print out a '.' for each iteration in a while loop similar to the…
rgimmy
  • 293
  • 7
  • 15
5
votes
3 answers

How to deal with ^C in JVM console applications?

When a JVM-ran (written in Scala actually, but I tend to believe that the solution is going to be pretty much the same for Groovy, Clojure or pure Java) console program of mine gets terminated by the user pressing Ctrl+C (or by the system shut-down…
Ivan
  • 63,011
  • 101
  • 250
  • 382