console

Visual Basic 2010 Console Writing Out

I am working with a console application for VB 10. How can I replace data that I have already written with: Console.Write Or how can I write on a specific point: e.g. 100 lines, 100 chars left In the same way that a program such as wget has a loading bar that does not keep getting replaced every time progress is increased. ...

best way in javascript to make console.log calls not cause problems when there's no console?

I'm using firebug and making lots of console.log, .info, .dir calls, etc. When the app runs on a machine with firebug turned off, it can cause errors. What's the best technique to avoid that? This seems to work: // global scope if (typeof(console) == 'undefined') { console = { info : function() {}, dir : function() {...

C# console font

Hi, I cannot find out which font the console app uses by default? Is it guaranteed that everyone has that font (when running this .NET app)? Want to display some unicode chars and need to be sure they are present within that font. Thanks ...

SSH console file management

Hi! Do you know how to do file transfers via ssh. It's like you open two instances of the project and you transfer file from that remote instance to your instance. I was able to do this before via Putty but I completely forgot the keys I press to get this thing to work. It is like Midnight Commander where you have a cursor and two pan...

A terminal-like WPF textbox ?

Hello, I am looking for an embeddable interactive console. I want the user to be able to type in some custom commands, and the application to write command responses in it. Would be awesome if it would understand powershell or python, ans supports command completion. I already built my own bash-like terminal, but I do not want to tot...

mongoid querying problem

I have a Three documents, here is a sample with fields not shown class College include Mongoid::Document references_many :students,:stored_as => :array, :inverse_of => :colleges end class Student include Mongoid::Document embedded_in :college, :inverse_of => :students embeds_one :mark end class Mark include Mongoid::Docum...

Sending ctrl + z to console program

I have a simple console program written in C and want to abort a text input with CTRL + Z. How is it possible? Edit: Here is some code (untested). #include <stdio.h> int main() { float var; while(1) { scanf("%lf", &var); // enter a float or press CTRL+Z if( ??? ) // if CTRL+Z was pressed { ...

Is there any console "graphics" library for .Net?

My basic goal here is writing a .NET remake of Kingdom of Kroz. For those not familiar with the game: http://www.indiefaqs.com/index.php/Kingdom_of_Kroz http://www.youtube.com/watch?v=cHwlNAFXpIw Originally it was supposed to be a quick distraction project to give me a break from all the generic enterprise WCF/WF/LINQ2SQL/etc work pro...

behaviour of escape characters

#include <stdio.h> main() { printf("az\b\b"); printf("s\ni"); } above program when compiled with gcc gives output sz i Can someone help us out to understand the output ...

Prevent form from displaying in service / console

I am using a very old OCX in a project and have set every 'ShowMessages' type property to false that I could find. Yet, every-so-often, an error occurs deep within its bowels and a message box is popped up. I know this because I run the code in a console application and see the messages pop up. So my question is whether there is a way...

critical section problem in Windows 7

Why does the code sample below cause one thread to execute way more than another but a mutex does not? #include <windows.h> #include <conio.h> #include <process.h> #include <iostream> using namespace std; typedef struct _THREAD_INFO_ { COORD coord; // a structure containing x and y coordinates INT threadNumber; // eac...

How can I easily redirect the console output in a NSTextView?

Suppose you have the code of a Cocoa app which logs its own messages through NSlogs and printfs to the Console output. My goal is to redirect all this output into a separate NSWindow in a NSView. How can I achieve this in a way that minimizes the amount of code to rewrite makes it possible to revert back maximizes the reuse of written...

Concatenate Lines in Bash

Most command-line programs just operate on one line at a time. Can I use a common command-line utility (echo, sed, awk, etc) to concatenate every set of two lines, or would I need to write a script/program from scratch to do this? $ cat myFile line 1 line 2 line 3 line 4 $ cat myFile | __somecommand__ line 1line 2 line 3line 4 ...

Is there a way to redirect output to external console from NLOG in asp.net app?

I just started using NLog in my asp.net application, and I need to see log messages in real time. When I run it in VS2010 I can look at VS output window, but when I run it on the test box I obviously don't have that option. What I need is when my asp.net app starts a console window should open and show log entries in real time. Any ide...

Console/Terminal in the Browser ?

Hi there , i am just curious about one thing. Why isn't there something like an console in the Browser ? I mean such as an -tag or something like that. This would enhance Web experience by far ( at least for developers ) :D It should be (tecnically) possible. here are some examples : http://uni.xkcd.com/ ( this is exactly what i mean...

Help flags with Console App

Hi I'm using Visual Studio C# Express 2010 to make a console application. I've implemented the 'commands' as if sections in the Prompt method calling a command method, eg if (line == "help") { Help(); } That gives you a help page on my program. If it needs cleaning up that's fine. What I'm try...

Displaying info in the eclipse console

Hi, I'm trying to compile a C++ project (Hello World) in windows 7 using Eclipse Helios. After creating the project the console shows me the next message: Internal Builder is used for build ** g++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc\hello.o ..\src\hello.cpp g++ -ohello.exe src\hello.o c:/mingw/bin/../lib/gcc/mi...

Possible to authenticate facebook from unix console?

I'm playing around with an embedded device, running a linux kernel. It has web access via a proxy. My question is, is it possible to login via the unix console? I can retrieve the login page using wget http://m.facebook.com, but I'm not sure where to go from there. Thanks in advance. ...

How can I redirect JNI console output to Eclipse Console view, when Eclipse plugin uses JNI?

Greetings, I have an Eclipse plugin (A) which has a dependency on another plugin (B). Plugin B is simply a wrapper around a jar, which contains a native dll, and performs jni functionality. Given this setup, I have the following code in A's Activator class's start method: MessageConsole jniConsole = new MessageConsole("Opereffa Output...

Best technique to print text to console

Hello, I am writing a command line tool that performs a number of tests to our servers and reports an output to screen. I am currently using log4j to print to screen and to a log file. However, I was wondering if there was a better technique to manage all the printing from one class instead of having the "print" commands scattered all...