console

android: cant see log output

hello, i try to log some text using Log.v or Log.e but i cant see the text anywhere in the eclipse console. what am i missing? thanks! ...

How can you determine how a console application was launched?

How can I tell whether the user launched my console application by double-clicking the EXE (or a shortcut), or whether they already had a command line window open and executed my console app within that session? ...

ping timeout problem even http site exist

C:\Users\MitjaB>ping 89.212.252.73 Pinging 89.212.252.73 with 32 bytes of data: Request timed out. Request timed out. Request timed out. but i can see http:\89.212.252.73 Can someone help me why i can not ping my IP. I am using IIS 7.0 I want to ping my computer to see if is reachable or not. ...

Accessibility message in the iPhone SDK Console

Hi, I just recently saw these lines in my app console output and wondered how they showed up. I don't think that I enabled any accessibility features. Can someone explain this to me please? ******* Accessibility Status Changed: On ********** Loading AX for: com.yourcompany.appname ************ ...

How to get user input from a prompt(terminated by press ENTER) in c++?

Anyone knows this tip? ...

windows/python manipulate versioninfo during runtime

I have multiple python processes running in their console output windows. I can set their console title via win32api.SetConsoleTitle(). Thats nice, but it would be even nicer to set some versioninfo strings (like description/company name/version) during runtime as that would allow me to easier differentiate between the (generic) python p...

Print raw data when using the Curses development kit (Cdk)

My perl program needs to jump between ncurses and a raw console as it executes a system call in a loop, like this (simplified for problem emphasis): init Cdk present menu deinit Cdk run system call Unfortunately Cdk appears to initialize ncurses at the use Cdk import and not instantiation (Cdk::init()) and so I don't know how to di...

what should I do to get the new process using a new command prompt window ?

I got two console applications that the first one runs the second one: 1_first console application: #include <Tchar.h> #include <windows.h> #include <iostream> using namespace std; void main(){ PROCESS_INFORMATION obj1; memset(&obj1,0,sizeof(PROCESS_INFORMATION)); STARTUPINFOW obj2; memset(&obj2,0,sizeof(STARTUPINFOW)); obj2.cb...

C#: Hiding a console window ?

Question: I have a console program that shouldn't be seen. (It resets IIS and deletes temp files.) Right now I can manage to hide the window right after start like this: static void Main(string[] args) { var currentProcess = System.Diagnostics.Process.GetCurrentProcess(); Console.WriteLine(currentProcess.MainWindowTitle); ...

Writing to console window not via stdout

Hello, how can I write DIRECTLY into console, without bothering with stdout in c#? I'm upgrading some old program, which has it's stdout redirected into file (because the output matters), and I need somehow to write directly to console, and that the text won't appear in stdout. Is it possible (without using WinAPI)? EDIT: I'm aware of ...

Show/Hide the console window of a C# console application

I googled around for information on how to hide one’s own console window. Amazingly, the only solutions I could find were hacky solutions that involved FindWindow() to find the console window by its title. I dug a bit deeper into the Windows API and found that there is a much better and easier way, so I wanted to post it here for others ...

how to allow a process created by another process, use a part of memory of the creator process ?

I got two console processes that second one is created by first one using the API below: BOOL WINAPI CreateProcess( __in_opt LPCTSTR lpApplicationName, __inout_opt LPTSTR lpCommandLine, __in_opt LPSECURITY_ATTRIBUTES lpProcessAttributes, __in_opt LPSECURITY_ATTRIBUTES lpThreadAttributes, __in BOOL bInherit...

Start application via batch hiding console

I've made an easy batch to start an application (it opens a pdf in pdf reader): @ECHO off start ../folder/index.pdf When I launch my batch, the console is shown for a couple of seconds and then is closed when the reader is launched, Is it possible to hide the console when I launch the batch? So on launching the batch only the reader ...

How to display utf-8 in windows console

I'm using Python 2.6 on Windows 7 I borrowed some code from here: http://stackoverflow.com/questions/5419/python-unicode-and-the-windows-console My goal is to be able to display uft-8 strings in the windows console. Apparantly in python 2.6, the sys.setdefaultencoding() is no longer supported However, I wrote reload(sys) ...

Redirection of a GUI console application

Hello, I have a Delphi 7 (not 2007) application (lets call it App1.exe) that the IDE thinks is a GUI application but in the DPR, a compiler directive that makes it in to a console application. Example: {$IFDE MAKE_CONSOLE} {$APPTYPE CONSOLE} {$ENDIF MAKE_CONSOLE} During the build process, MAKE_CONSOLE might be defined. The problem...

How to write a unix console?

I must embedd the shell of an interpreter language (most likely it will be python) inside my application. So i need a console widget in my GUI toolkit. I want to write this from ground up myself. I know that i must start the process with pipes redirecting the standard input/output/error to my console widget. I have to set the environme...

Flush the console screen with special unicode class workaround for windows console

I"m trying to make a simple text progress bar in windows console and also display utf8 characters. The problem isn't that the unicode characters won't display, they will. It's that in order to make the unicode characters display I used a class to tell sys.stdout what to do. This has interfered with the normal flush() function. How can ...

Does a console application in Java have access to UI threads?

I've written an applet to allow scanning. This applet uses the TWAIN standard. This standard is used to communicate with scanners. I know TWAIN requires access to UI threads in Windows. The code I wrote worked well when it was used in an applet. The problem starts when I try to use the same code in an console application. I suspect this ...

How to force a process to run on the console on Windows 2003 server?

I have a funky situation where a certain batch-type application works correctly when run on the console (via RDP or when physically logged on to the box), but doesn't work correctly when run via RDP on a non-console session or, for that matter, when executed by the Windows Task Scheduler. I know how to determine programmatically if my p...

Powershell Hotkey to Erase Current Line?

I would like to execute a hotkey that would erase the current line in the powershell session. Is such a thing possible? ...