Questions tagged as 'console'

1
answer

How do I get the position of the mouse (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 = GetDC(myconsole); int x = 150; int y = 15...
asked by 14.04.2016 / 14:41
1
answer

Reference not found for object property

I developed a simple particle code in codepen.io and in its execution it generates a log with the error: Uncaught TypeError: Cannot read property 'color' of undefined What is the reason for the error? // inicia o canvas var canvas...
asked by 16.01.2015 / 14:22
1
answer

Running jQuery on the console on a page that does not have jQuery

JQuery is often very useful for taking some page statistics and other things , just make a $('.elemento').each(callback) and you can start to know what is happening on the page. The problem is that this relies on the page doing the...
asked by 12.10.2014 / 19:19
2
answers

How to format JSON message to read easily

I need to do JSON message DEBUG. I would like one to have a formatting mechanism similar to the one you have in Eclipse for Java and JavaScript code formatting, but via console.     
asked by 24.05.2014 / 21:58
1
answer

How do I make a batch file run an Application Console passing parameter?

I have an Application Console that the% method of Program.cs (where it starts the application) receives an input . Follow the code below: static void Main(string[] args) { var input = Console.ReadLine(); ControleEstado.IniciaCo...
asked by 28.04.2015 / 18:26
1
answer

How to capture text that another console program writes on the screen

My Windows Forms program runs another console program. This second writes messages on the screen during execution. I want to know if it has to prevent the execution of the other program from opening the console, and instead the printf of the oth...
asked by 10.07.2015 / 19:47
2
answers

How to break lines (console mode)?

As I break lines in C #, type if I for two commands Write the console will print them side by side, how do I print on the bottom line. Ps: Code below var A1 = Console.ReadLine(); var A2 = Console.ReadLine(); v...
asked by 16.02.2017 / 09:27
2
answers

How do I save and export an object in the browser console?

On the Cashier website, lottery results are displayed in the console in the form of objects. link I can give a right-click on the Object line, which contains all the contest data, and then click on "Store as global variables". A varia...
asked by 28.07.2018 / 22:02
1
answer

Update console without using system ("cls") in Windows

I'm creating a text game, where it will have a start menu, follow the code I already have: #include <iostream> #include <Windows.h> using namespace std; void setTamanhoConsole(int x, int y){ HANDLE console = GetStdHandle(STD_...
asked by 14.04.2016 / 19:38
2
answers

Copy (cp) to the current folder in LINUX [closed]

Is it possible to exempt target path by giving a command to copy (cp) in the linux console to the current / current folder? Ex: cp ~/Origem ~/Destino What I want is some shortcut in bash equivalent to the target. Ex: cp ~/Origem...
asked by 13.09.2015 / 05:43