Most voted "console" questions
The command console also called shell for Unix-like systems is a textual interface that interprets the existing commands in an operating system and sends them to the kernel later printing the result of the processing on the screen.
Learn more…149 questions
Sort by count of
-
231
votes5
answers6588
viewsShould error messages apologize?
It is common to find an error message that says: "Sorry, you are not allowed to access this function. Please contact the administrator for help." An "apology" is appropriate in this case? It is a…
-
29
votes1
answer12710
viewsHow to read from stdin in C?
How should I read characters, digits and strings stdin? getchar; fgetc; fgets; getc; scanf; I’m here trying to read from the console and there’s always something wrong with reading it. I have tried…
-
15
votes3
answers2478
viewsHow do C graphic libraries work?
How graphic libraries work? For example, the standard C execution mode is the application console, as from that only text can create the graphical libraries where you understand pixel instead of…
-
14
votes1
answer37459
viewsWhat is the meaning of the word "Cout" in C/C++?
Well, it is very common in programming languages to have responsible keywords for printing data output. Some are classic like echo, print, printf and write, etc.. But in the C/C++ we have the cout.…
-
12
votes3
answers5043
viewsHow to block the browser console using javascript?
I would like to know how to block the user from running scripts through the browser console.
-
12
votes1
answer1866
viewsWhat is the difference between printf() and print()?
I was doing some simple algorithms in Java and most of the time it is used System.out.println() or System.out.print(), but to make the definition of the number of decimal places I am using…
-
12
votes6
answers1348
viewsIs there an alternative to system('cls') in PHP Console?
I’m using PHP (5.7) on the console (Windows 10), but I’m not able to clear the screen. I give a system('cls') and only a little square with a question mark appears, without cleaning the screen. I’ve…
-
10
votes3
answers11142
viewsDifference between Console.Read(); and Console.Readline();
I’m starting to learn C# and I got a little confused by one thing. What’s the real difference between Console.Read(); and Console.ReadLine(); ?
-
9
votes2
answers148
viewsWhy does the Chrome console return 8 when I type 010?
You could tell me why when I type on the console 010 and press enter it returns to me 8 ? and if I type 0100 he returns me 64.
-
7
votes2
answers3921
viewsputs() and printf(), when and which to use?
Data input requests are usually preceded by text indicative of what you wish to receive and usually do not have data to be formatted. If variable data are not being presented in the request text,…
-
6
votes1
answer2170
viewsWhat does 1e+24 Chrome console mean?
I noticed that when I type in Chrome console 1000000000000000000000000 he returns me 1e+24. And when I type 1000000000000000009901591 he also returns to me 1e+24 whereas 1000000000000000000000000 is…
-
6
votes2
answers98
viewsWhy println ran before printStackTace?
I was studying Exception Treatment in Java and I came to this question that I could not find on Google. Why in this example he printed the first line of the printStackTrace, and already gave the…
-
6
votes2
answers6106
viewsDifference from Cout to printf in C++
I wonder what difference I use in C++ cout and printf, it’s all the same?
-
6
votes2
answers386
viewsRegular expression C# console application
I have a list of words, for example: São Paulo 9000-000 a 9999-9999 Barigui 8000-0000 a 8999-999 I want to take only the numbers, with the same trace and separate, in another list for example, I…
-
6
votes2
answers108
viewsLine breaking problems and correctly display real value conversion on C#
I made a simple C# code that asks you to enter name, age, weight, city and state, performs normally only that it appears some problems as instead of the weight being 60.5KG gets 605KG and wanted to…
-
5
votes5
answers3375
viewsConsole Application without showing console window
I have a Console Application in which I use to run routines of my system. I am running this console from the Task Scheduler, every time it runs it flashes on the screen. It opens, executes the…
-
5
votes2
answers606
viewsDetermine specific size for console in C
It is possible to set a specific size for the codeblock console (In C language) to open when I run the program? I need it to open at a certain size because I won’t use the whole screen. I saw…
-
5
votes1
answer1139
viewsClose console window in C
I need to create the old game. I want to know how to close the black window that appears without having to click any key, for example: When running the program appears: 1 to play 0 to leave If the…
-
5
votes2
answers501
viewsC# | Enlarge the Console Application window
How Do I Enlarge the Application Console Window in C#? I use Visual Studio 2017 Community. My program will be done in Console Application, I need to change the size of the Console window being…
-
5
votes1
answer168
viewsWhy does Std::Cout use <<?
I am very beginner in language, maybe I am being rushed, but I would like to understand why std::cout and std::cin use respectively << and >> different from its "mother language" C,…
-
4
votes3
answers932
viewsError comparing numbers and checking if they are equal
I’m doing a simple C# exercise in which I have to receive two numbers, compare them and print out which is the largest or whether they are equal. When I start the program, I can only put the first…
-
4
votes1
answer436
viewsHow to shuffle string list in c#?
I have a console application, in which there is a list: List <string> ListaFrases = new List<string>(); This list is built through user inputs in the console. How to display your…
-
4
votes1
answer334
viewsHow to disable XHR messages finished loading in production
I have a system developed in the Angular language in version 4. The system that generates build of the application in production is the webpack. This being used as the basis the following tarter:…
-
4
votes1
answer455
viewsHow did the command-line interface (CLI) come about and what was this need?
If we look back about 10 years, I don’t remember having this feature for developing applications through CLI (command line interface) on Windows operating systems. Examples used today: Ionic CLI,…
-
4
votes2
answers186
viewsHow to convert Two-dimensional array to a Single array?
I have the following definition of Two-dimensional Array: int[,] arrayBidimensional = new int[3, 3] { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }; The above variable does not have a method .ToArray()…
-
4
votes1
answer331
viewsWhat does the "$" dollar mean in the browser console or in Javascript?
On any empty page (no library at all), when typing a $ in the browser console is returned a function, as shown in the output below: ƒ $(selector, [startNode]) { [Command Line API] } If I type two $…
-
3
votes2
answers1057
viewsHow to format JSON message to read easily
I need to do JSON message DEBUG. I would like one to have available a formatting mechanism similar to the one you have in Eclipse for formatting Java and Javascript code, but via console.
-
3
votes1
answer784
viewsRun jQuery on console on a page that doesn’t have jQuery
Often, jQuery is very useful to take some statistics off the page and others cositas, just make a $('.elemento').each(callback) and you can already start to know what is happening on the page. The…
-
3
votes1
answer65
viewsReference not found for object property
I developed a simple code of particles in codepen.io and its execution generates a log with the error: Uncaught TypeError: Cannot read property 'color' of undefined What is the reason for the error?…
-
3
votes1
answer1205
viewsHow to make a batch file run a Console Application by passing parameter?
I have a Console Application that method main of Program.Cs (where the application starts) receives a input. Follows code below: static void Main(string[] args) { var input = Console.ReadLine();…
-
3
votes1
answer688
viewsHow to capture text that another console program writes on the screen
My Windows Forms program runs another console program. This second one writes messages on the screen while running. I want to know if you can prevent the execution of the other program from opening…
-
3
votes1
answer516
viewsConsole cursor coordinates in C
Taking the following code as an example: #include <stdio.h> int main(void) { printf("Hello world"); return 0; } Where "Hello World" will be written in row 1 and column 1 of the console. How do…
-
3
votes1
answer1532
viewsHow do I get the mouse position (x and y) on the console? C++
I have the following code: #include<windows.h> #include<iostream> #include <cmath> using namespace std; int main() { HWND myconsole = GetConsoleWindow(); HDC mydc =…
-
3
votes4
answers5604
viewsCall function at each time interval efficiently
I have a question, I am making a game server and I need a specific function to be rotated every 10 seconds. I know there’s a Thread.Sleep() (in combination with a while(true)), but it doesn’t seem…
-
3
votes1
answer343
viewsProgress bar in console application in Delphi?
I would like to display some kind of animation in my console application during a long process. Could be a progress bar or another animation.
-
3
votes3
answers608
viewsRead a console line in C#
CS1503 Argument 1: cannot convert from "group of methods" to "Object" using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace…
-
3
votes2
answers3378
viewsHow to print UTF-8 characters on the c++ console?
The console incorrectly displays accented characters. How to print them correctly (UTF-8)?
-
3
votes2
answers590
viewsHow do I receive a value for each double variable on the console?
I was making a very simple code and I didn’t want to type a number and then enter it and then enter another number in another line, I wanted to know if I can do it in the same.…
-
2
votes1
answer108
viewsWhat are the advantages of working directly with stdin, stdout and stderr?
Is there some advantage in terms of speed or some other aspect? Shows the connections: showConnections(all = TRUE) Individual examples: stdin() stdout() stderr()…
-
2
votes1
answer59
viewsHow to check on the console for open websockets connections?
I was analyzing how Stackoverflow checks for updates on the question list, but nothing appears on the console (Firebug), so I’m guessing they’re using websockets. Then I came up with a question: is…
-
2
votes1
answer3158
viewsHow do I make the message center and flash on the screen in C++?
How to make this message flash on screen, stay centered, and how to change the message color? #include <iostream> #include <cstdlib> #include <windows.h> using namespace std;…
-
2
votes2
answers190
viewsRails Console does not load the methods and classes of my application, why?
I have a model called Person, when I open the Rails Console and try to assign it to any variable, I get this: user.localapp (test) $ rails c Loading development environment (Rails 4.2.0) (Ruby…
-
2
votes1
answer41
viewsGet console location and size in pixels
Is there any way to get the size and location of the System.Console in pixels, don’t tiers? I’ve tried this method: 'Para o tamanho: Dim X, Y As Integer X = Console.WindowWidth * 8 Y =…
-
2
votes1
answer370
viewsHow to read text from a Word document text box via C#
I am using Interop to manipulate a word, through an application console. using Word = Microsoft.Office.Interop.Word; I can extract the byte array, save as PDF, as image etc, but a relatively simple…
-
2
votes2
answers2125
viewsCopy (cp) to current folder on LINUX
It is possible to display destination path by giving a command to copy (cp) from the linux console to the current/current folder? Ex: cp ~/Origem ~/Destino What I desire is some shortcut in bash…
-
2
votes1
answer86
viewsjava.io.Console when debugging in Eclipse
I’m trying to use the java.io.Console from within the Eclipse. However, whenever I call System.console() returns me null. In Jetty, it is possible to pass parameters on the eclipse console. For…
-
2
votes1
answer508
viewsUpdate console without using system("cls") on Windows
I am creating a text game, where will have an initial menu, follow the code I already have: #include <iostream> #include <Windows.h> using namespace std; void setTamanhoConsole(int x,…
-
2
votes1
answer410
viewsRun Rails commands on the Ubuntu terminal
I’m learning Ruby through an Alura course and I have a question. Every time I want to execute a Rails command, for example startar the server with the command rails server the following error occurs…
-
2
votes2
answers912
viewsReading user information
I started studying C#, and my first program (except for hello world hahahaha) is an area calculator. In the code below, after I enter the option (choosing which figure I want) the console simply…
-
2
votes0
answers118
viewsError with fullcalendar Javascript
I’m trying to import the fullcalendar in a project, I’m using the Gulp to automate imports. However, when I set out to import fullcalendar I come across this error on the console:…