console

How to open multiple consoles in multiple tabs in eclipse?

I am using Eclipse Version: Helios Release for a java application. I need to run multiple instances of same application and want easy visibility of multiple consoles. can it be done? If yes, how? Thanks in advance. ...

Next question about russian encoding, mssql and python.

Next question about russian encoding, mssql and python. I have this simple code: import pymssql import codecs conn=pymssql.connect(host='localhost:1433', user='sa', password='password', database='TvPgms') cur = conn.cursor() cur.execute('SELECT TOP 5 CAST( Name AS nvarchar(400) ), CONVERT(nvarchar(400), idProgram) FROM dbo.Programs') ...

How can I cin and cout some unicode text?

I ask a code snippet which cin a unicode text, concatenates another unicode one to the first unicode text and the cout the result. P.S. This code will help me to solve another bigger problem with unicode. But before the key thing is to accomplish what I ask. ADDED: BTW I can't write in the comman line any unicode symbol when I run the ...

How can I convert an image to an ASCII representation of the image?

My idea is to grab each pixel, analyze the 255,255,255 value and give each pixel a chance to be in only 1 of 10 division I will have laid out. This won't bring a full color representation, but my point is to make a ASCII that at least resemble the shapes of the objects in the pictures. Outline it so to speak. Would this work? ...

How can I change console font?

I have a problem with output Unicode in Windows XP console. (Microsoft Windows XP [Version 5.1.2600]) First code is that(from http://blogs.msdn.com/b/michkap/archive/2008/03/18/8306597.aspx) #include #include #include int main(void) { _setmode(_fileno(stdout), _O_U16TEXT); wprintf(L"\x043a\x043e\x0448\x043a\x0430 \x65e5\x67...

Python2.7 Active Console to Prevent Deadlock?

I noticed an interesting behavior for my system on Windows XP To debug my system, I used cmd console to start the server xProcess = subprocess.Popen(args='Python.exe ClntMgrSvrFact.py', creationflags=CreationFlags|win32con.CREATE_NEW_CONSOLE) For each client(MSExcel) connected via TCP/IP, server factory will spawn a new process using...

Set focus on console in Windows?

Is it possible to set focus on a console app in Windows? SetFocus looks promising, but it needs an HWND and I don't know if console apps even have one. ...

Sending string from console application to MFC

Hi, Im invoking console application from my MFC application through ShellExecuteEx(). After the exe get loading,i want to receive one test string form console apllication to MFC,if i cannot receive the string then i will close both MFC and Console application. For this,i want to send any string or valu from console application to MFC. I...

Is is possible to programmatically clear the console history?

When working with a console application, a history of everything that has been entered at a Console.ReadLine() is stored. When at a console prompt to enter something, pressing the up/down cursor will scroll through this history (and the whole history can be viewed by pressing F7). Using C#, is there are way to either disable this behavi...

Reserving a part of console using assembly language in X86_32 Linux

I'm developing a text editor like VI with assembly and need to take control of console, exactly like Vi, for example changing the position of cursor and inserting and deleting of strings. I googled a lot but didn't find any good suggestion, the code is not my problem, I want to get the idea of how to do it, then i could code it myself I'...

Execute console applications without creating a new console window flickering on the screen (C++, Windows)

I'm writing a windows application and I needs to run some console applications from it and get their output. I tried two different approaches: 1) Using _popen(command, "rt") 2) Creating a child process with redirected output (CreateProcess(), CreatePipe()) They both work but during the execution of some command a new console window is ...

Qt Creator: Run in Terminal

I want to get full console functionality running the program in Qt Creator, the same problem as described here: http://stackoverflow.com/questions/1356328/console-input-with-qt-creator When I check "Run in Terminal" in configuration properties, empty terminal window is opened, without my program output. Tools - Options - General - Termi...

Rails Console: Why does it stop working after backgrounding it?

Hey guys. I'm able to send Rails consoles to the background with CTRL+Z . However, when I bring back the console with "fg", the console's no longer responsive. It doesn't respond to normal commands, or even "quit" or CTRL+C. I have to background it again with CTRL+Z , and then kill it with "kill %1". Here's an example: [nickh@chameleo...

Is there a Linux console command line MVC framework?

Is there a framework for developing Linux console application, where controllers are console commands and views are their stdout output? ...

Preventing console errors

Whats the best approach for preventing errors when console.log calls have been left in JavaScript and it is executed on Browsers without a console or with console deactivated. Is there a way it can be automatically overridden to become a javascript alert for example? ...

Odd reload! behavior in console when creating Resque jobs

I am trying to figure out an odd issue I am seeing where a reload! in console appears to solve an issue. I have an AccountObserver class that should run an after_create method whenever a new Account instance is created. The after_create method creates a Resque job. When I first load console, create a new Account instance results in ...

Color console in ANSI C?

Is it possible to color the console output in just plain ANSI C? Without an external library? Can this be done in Windows, Linux, or Mac OS X? ...

What are the list of items that entering jQuery $.support into FireBug console return?

Hi, I was watching the Lullabot jQuery video and in it one of the teachers advises to use $.support command to check all of the available features that the current browser supports. So when I enter $.support into console I get this link Object { leadingWhitespace=true, more...} and when I click it FireBug opens up the DOM tab a...

Improvement/s to my Java generic console input method?

Using Java Generics, I tried to implement a generic console input method. public static <T> T readFromInput(String message, Class<?> c) throws Exception{ System.out.println(message); Scanner scanner = new Scanner(System.in); try { if(c == Integer.class) return (T) Integer.valueOf(scann...

Embed a Console Window inside a WPF Window

Is it possible to embed a console window inside a WPF window? As a little background, at first I tried to implement a console window from scratch in WPF, which was successful except for one huge problem -- its extremely slow. See the question here: http://stackoverflow.com/questions/3219819/vt100-terminal-emulation-in-windows-wpf-or-sil...