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
2 answers

AngularJs scope variables in console

I know that we can access scope variables using batarang (chrome extension), and angular.element(document.querySelector('selector')).scope() I was able to access scope, controllers, in angular.io, angularjs.org But I came across an angularJs website…
Vamsi
  • 9,510
  • 6
  • 38
  • 46
6
votes
4 answers

How to underline text using printf in C

I note the question Colorful text using printf in C gives a good example of setting coloured text on the standard console output in Windows. Is there something similar that allows output to be underlined? Or possibly even bolded or italicised? EDIT:…
Toby
  • 9,696
  • 16
  • 68
  • 132
6
votes
1 answer

Delete last executed command in Linux terminal

I want to do a clear but only of the last command I executed. Here is a example so you can understand it better: root@debian:~# id uid=0(root) gid=0(root) groups=0(root) root@debian:~# uname -a Linux debian…
Ryan Fold
  • 181
  • 1
  • 3
  • 14
6
votes
7 answers

why does this happen (see image)?

Why does the following have the effect it does - it prints a terminal full of random characters and then exits leaving a command prompt that produces garbage when you type in it. (I tried it because I thought it would produce a seg fault). #include…
Jonathon Ross
6
votes
2 answers

Not enough storage is available for `Console.ReadLine`.`

I am using a dual service/console model to test a service of mine. The code in the spotlight is: static void Main(string[] args) { // Seems important to use the same service instance, regardless of debug or runtime. var service = new…
ProfK
  • 49,207
  • 121
  • 399
  • 775
6
votes
1 answer

Determine if the system can instantiate QApplication (GUI support)

My program can run on a server with no GUI, or on a desktop. When it runs on a system that can display GUIs I want to instantiate QApplication, and when it is on a server I want QCoreApplication. If I instanciate QApplication on a server, it either…
deck
  • 343
  • 2
  • 11
6
votes
1 answer

Console output appears in the wrong order

I'm using win 8.1 64bit Eclipse Luna 4.4.0 and compiling with gcc 4.6.4 and the problem is e.g. in this simple program, my printf and scanf statements are appearing on the console in the wrong order. #include #include int…
6
votes
2 answers

System.console() gives a NullPointerException in NetBeans

I have the following problem: method readLine() or nextLine(), nextInt(), etc. throw an exception: NullPointerException. I use the NetBeans IDE (if it matters). public static void Reading() { String qq; qq = System.console().readLine(); …
Maxim Gotovchits
  • 729
  • 3
  • 11
  • 22
6
votes
1 answer

Run python file in child package from console

This is my project structure: /project | /package | | __init__.py | | module1.py | | module2.py | main.py In main.py, I import module1.py. In module1.py, I import module2.py: module1.py from package import module2 #do…
Tuan Chau
  • 1,243
  • 1
  • 16
  • 30
6
votes
5 answers

Turn off TV using cec-client on RPI

I have RPi B+ running Raspbian connected to my LG TV via HDMI. I succefully compiled and installed cec-client and I can easly turn on TV using command echo "on 0" | cec-client -s, however when I try to turn tv off using command echo "standby 0" |…
user3570799
  • 81
  • 1
  • 4
6
votes
0 answers

Django console not displaying prints on console

I am having issues displaying my print statements on the console following a ./manage.py runserver command. Is there any way that I can un-surpress this information? I have tried changing the verbosity level, but there seems to be no change.
user3105189
6
votes
3 answers

.NET Console TextWriter that Understands Indent/Unindent/IndentLevel

Does anybody have or know of a TextWriter for the Console that understand how to indent/unindent and has the ability to set the indent level.
AMissico
  • 21,470
  • 7
  • 78
  • 106
6
votes
2 answers

How can I clear a line in console after using \r and printing some text?

For my current project, there are some pieces of code that are slow and which I can't make faster. To get some feedback how much was done / has to be done, I've created a progress snippet which you can see below. When you look at the last…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
6
votes
1 answer

How to show console output on webpage?

When I go to websites like Codecademy or JSBin, I notice that they allow you to see console output. How does that work? Just to clarify, let's say a user types this in a textbox console.log('hello'); How can I make the output on the actual web…
idude
  • 4,654
  • 8
  • 35
  • 49
6
votes
3 answers

Redirecting console to a string in a .NET program

How can I redirect whatever is written to the console to be written into a string?
Gjorgji
  • 22,458
  • 10
  • 31
  • 39