Questions tagged [windows-console]

Windows character mode applications using the functions provided by the console I/O functions. This tag should be used by questions about the console functions, structures and winevents, which support character mode applications.

614 questions
3
votes
1 answer

Console Application With Multiple Panels

I'm writing a C# TCP Server as a console application, my requirement is to display few information in separate panels in same console, like this image bellow Is this possible to achieve in C#? if it is possible sample code will be very helpful.
dimisam
  • 33
  • 4
3
votes
1 answer

I want to change Cmd Font Style

I want to Change Cmd Font with C - Coding. But I don't know how to change it. I want to change Basic font -> Terminal Font. This is my code CONSOLE_FONT_INFOEX cfi; cfi.cbSize = sizeof cfi; cfi.nFont = 0; cfi.dwFontSize.X = 0; cfi.dwFontSize.Y =…
LaserFrame
  • 33
  • 5
3
votes
1 answer

In Perl, how to clone output to stdout and a log file in real time

I want to clone the output to the console as well as to a log file simultaneously. Here is my code snippet: open STDOUT, ">>", "temp.txt" or die ""; system("echo This is a sample output.........."); But, here I only get output in the temp.txt and…
3
votes
2 answers

rename multiple files with script

I found this script on here and modified it. It works only for 1 file at a time not multiple files. How can I get this script to rename multiple files in the directory specified? @echo off setlocal enabledelayedexpansion set X=64 set Y=4 set…
Tom Wildt
  • 113
  • 2
  • 12
3
votes
4 answers

Windows CMD: How to pipe running program output to FINDSTR and write to file

I am trying to filter the output of a running program (ping) and write the results to a file. In the following example the ping program runs until CTRL-C is pressed: ping www.google.com -t | findstr "Reply" >> file.txt the result of this is the…
jakob
  • 35
  • 1
  • 1
  • 5
3
votes
0 answers

Execute two commands as a single action in windows command prompt

We have a system where an application A starts the second application B to run in background (no gui or console window should be shown). However, the first application should be able to execute a command and continue working without waiting for the…
Diggy
  • 230
  • 2
  • 11
3
votes
2 answers

How to format text using std:out setfill std::setw std:right with one padding space

I just want to format a string and an integer value with right justify. There is no problem to do this without leading space before the integer value. bytes.....................123981 total bytes..............1030131 But it should look like…
seizu
  • 477
  • 4
  • 9
3
votes
2 answers

How to print first 5 lines of the file in windows cmd

How can I print first 5 lines of the file in windows CMD? There is a problem that I can't use PowerShell (spicific task) and batch scripts. Can you help me with this?
Jade
  • 283
  • 3
  • 9
  • 18
3
votes
4 answers

Clear screen with Windows "cls" command in Java console application

I am working on a game that involves clearing the screen after each turn for readability. The only problem is I cannot use the Windows command prompt-based "cls" command and it does not support ANSI escape characters. I used Dyndrilliac's solution…
3
votes
3 answers

How to Close Console Application Gracefully on Windows Shutdown

I am trying to close my vb.net console app gracefully when windows shutdown occurs. I have found examples that call the Win32 function SetConsoleCtrlHandler that all basically look like this: Module Module1 Public Enum ConsoleEvent …
Guy
  • 413
  • 6
  • 20
3
votes
1 answer

Adding scrollbar to console

How to add scroll bar to console using system function? I'm using system("MODE 100,50"); to set customize console window size.
sg552
  • 1,521
  • 6
  • 32
  • 59
3
votes
2 answers

Perl console window - how to make it non-closable?

I'd like to know if there's any way to hide the closing button or at least make it non-clickable when using Perl in console. I know it's possible when using GUI, but I need to make a console-based application and don't want the user to close it on…
Marek Lukinic
  • 87
  • 1
  • 1
  • 7
3
votes
4 answers

Getting rid of Python console in wxPython under Windows

Possible Duplicate: How can I hide the console window in a PyQt app running on Windows? How to get rid of the console that shows up as standard output when running wxPython programs in Windows?
Alex
  • 43,191
  • 44
  • 96
  • 127
3
votes
4 answers

i18n shell in windows

Is there an i18n shell in windows that supports a large character set? Testing my application in windows results in some math characters not being rendered correctly. The Lucida font in cmd.exe and powershell do not have a wide enough…
Juan
  • 3,667
  • 3
  • 28
  • 32
2
votes
2 answers

GotoXY implementation

This question is a follow-up one to my prior post entitled How to fix this procedure writing a string to the console screen buffer. I want to set the cursor to a given (x,y) position prior to writing an arbitrary string: GotoXY(x,y) SendLn('The…
menjaraz
  • 7,551
  • 4
  • 41
  • 81