473,396 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Console SetCursorPos ?

Hi everybody,

I want to know if there is a function in the Console to
"jump" to a specific position in a Console-Output window
and write something there.
Another question is, if I can write with different colors
in the Console (without windows-api, because I want to port
the app to linux sometimes).

I want to create a status-page for my Console-app, on which
I show the status of the threads that are running.

#############################################
Thread 1: Creating user |######### |
Thread 2: Sending result to db |## |
Thread 3: nothing | |
#############################################

If there is no easy function, i have to use Console.Clear().
Nov 15 '05 #1
2 3467
With V1.0 and V1.1 of the framework you have to call out
to the win32 API for this kind of work... but you will be
happy to know that in Whidbey both are supported. Check
out this demo on the BCL team website:
http://www.gotdotnet.com/team/clr/BC...demos/zipfiles
/ConsoleDemocs.zip

-----Original Message-----
Hi everybody,

I want to know if there is a function in the Console to
"jump" to a specific position in a Console-Output window
and write something there.
Another question is, if I can write with different colors
in the Console (without windows-api, because I want to portthe app to linux sometimes).

I want to create a status-page for my Console-app, on whichI show the status of the threads that are running.

#############################################
Thread 1: Creating user |######### |
Thread 2: Sending result to db |## |
Thread 3: nothing | |
#############################################

If there is no easy function, i have to use Console.Clear ()..

Nov 15 '05 #2
In addition, I remember I have seen an open-source project somewhere on the
Internet which provides rich console interface support for .NET versions 1.0
and 1.1. I think the original poster can relatively easily Google it.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Brad Abrams [MSFT]" <br***@discussions.microsoft.com> wrote in message
news:0d****************************@phx.gbl...
With V1.0 and V1.1 of the framework you have to call out
to the win32 API for this kind of work... but you will be
happy to know that in Whidbey both are supported. Check
out this demo on the BCL team website:
http://www.gotdotnet.com/team/clr/BC...demos/zipfiles
/ConsoleDemocs.zip


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Dave | last post by:
Hi, I have done some research, trying to Clear The Screen in java code. The first option was the obv: system.out.print("\n\n\n\n\n\n\n\n\n\n\n\n"); then i heard about this method:...
5
by: Gary Richardson | last post by:
I'm trying to use win32api.SetCursorPos() to position the cursor in a Tkinter canvas window. I.e.: from Tkinter import * import win32api root = Tk() canvas = Canvas(root, width=400,...
1
by: Oz | last post by:
This is long. Bear with me, as I will really go through all the convoluted stuff that shows there is a problem with streams (at least when used to redirect stdout). The basic idea is that my...
7
by: shawnk | last post by:
Hello Everyone How do you format format numbers right-justified using Console.WriteLine(), i.e I need to line up numbers in vertical columns and the MSDN documentation is pretty poor Here is the...
5
by: Barry Mossman | last post by:
Hi, can I detect whether my class is running within the context of a Console application, vs say a WinForm's application ? also does anyone know whether the compiler or runtime is smart enough...
5
by: Publicjoe | last post by:
I am working on a little app which uses colour in the console window. I have created a class to extend the console functionality but the ClearScreen method does not work correctly. I am enclosing a...
17
by: MumboJumbo | last post by:
Hi I have a really basic question hopefully some can help me with: Can you write a (i.e. one) C# project that works from the cmd line and gui? I seems if i write a GUI app it can't write to...
5
by: portroe | last post by:
Hi I am using console.Writeline in my simple program. I do not however see anything happening in the output window when I debug, there are also no error messages, Has anybody a tip on what...
1
by: John Wright | last post by:
I am running a console application that connects to an Access database (8 million rows) and converts it to a text file and then cleans and compacts the database. When it runs I get the following...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.