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.
Questions tagged [windows-console]
614 questions
0
votes
0 answers
Trouble using Eclipse IDE for C
This is my first time with Eclipse C/C++. I installed it 2 days ago and still trying to figure it out, by writing simple C Programs.
Here are 2 snapshots of the IDE:
Code Screenshot :
Console Screenshot :
My questions are :
No Command Prompt…

phougatv
- 881
- 2
- 12
- 29
0
votes
1 answer
How to stop executing a MPI program in windows command prompt after infinite loop
I'm new to MPI programming. I'm in basic stage. So I use this command to run the program
mpirun -np 4 try
And this executes my program. I'm using MPICH NT. When I miss something an infinite loop starts. Suppose
I fumbled with MPI_Send & MPI_Recv…

AtanuCSE
- 8,832
- 14
- 74
- 112
0
votes
2 answers
Custom "invalid input" error message in Text-Based Game
I'm new to stackoverflow and would like to thank any and all people who come across this post and gives any assistance. Sorry if this question/request seems noob-ish, I am a beginner-intermediate programmer in C++(closer to beginner I would say) but…

TDubs95
- 3
- 3
0
votes
1 answer
script like logging utility for windows
Linux systems provide a nice tool (script) that can log terminal stdout data in a file. It has the following format:
To turn on logging: script [options] [filename]
To turn off logging: exit
I'm looking for an identical utility for windows console…

Shakil
- 1,044
- 11
- 17
0
votes
2 answers
Class properties not holding values
im working in a text-based RPG game, but when I'm setting the values to X variable, when I access that propertie again, it is in its default value, am I doing something wrong?
class Game
{
private:
bool podeAndar;
bool estaBatalhando;
…

Kyore
- 388
- 2
- 7
- 29
0
votes
0 answers
Output redirection on Windows overwrites line endings
Sample C++ program:
#include
#include
int main(int argc, char* argv[]) {
if (argc > 1) {
std::ofstream output(argv[1]);
output << "Line 1\nLine 2\n" << std::flush;
} else {
std::cout << "Line…

chessbot
- 436
- 2
- 11
0
votes
4 answers
Class / Method not returning the correct value
Probably a pretty newb question but here we go.
I am quite new to this and right now i have reached my first logic problem i guess.
I've created a class + method which is supposed to return me a Int32 value and it returns something that is, atleast…

Goordon
- 13
- 2
0
votes
0 answers
Bat file is not running untill any key pressed from keyboard
My computer has a different problem.
Whatever the batch file i run, it won't starts its execution until i press any key from keyboard until that it holds the data without printing on console/command prompt.
once i press a key the execution…

Madhu
- 9
- 1
- 8
0
votes
0 answers
grunt.log doesn't render Arabic strings correctly
How can I make nodejs display correctly Arabic characters? I m outputting an arabic string that I read from a file using gruntjs's log utility;
grunt.log.ok('مرحبا = hello');
But instead displays it like
After some further verification, I narrowed…

numediaweb
- 16,362
- 12
- 74
- 110
0
votes
1 answer
Python script packed with cx_Freeze: how do I force windows to use an alternative console?
I'm a very unexperienced programmer who has just began studying Python. I managed to do some basic stuff and now I tried packing my .py files to .exe files that can be shared with friends who don't have Python installed. I'm using python 3.4 so I…

restonio
- 1
0
votes
0 answers
Display non standard characters in console window
I want to display non standard characters using the console window - anything similar to Japanese/Chinese/whatever will do. I tried using unicode characters, but the console window displays them as question marks.
Also tried setting the windows…

Mauvai
- 461
- 2
- 5
- 17
0
votes
1 answer
Rename Files Older Than 1 day
I want to rename all file in a specified folder ending with .txt to .csv that are older then 1 day. I have the following that will get me all files ending with .txt and rename them to .csv
For /R %1 %%G IN (*.txt) DO ren "%%G" "%%~nG.csv"
The part…

Kevin Kunderman
- 2,036
- 1
- 19
- 30
0
votes
2 answers
"Console Application Window" on Windows CE Platform
I have encountered a problem about the "Console Window" of the Windows CE Platform.
To simplify the question ,I wrote this HelloWorld sample application:
I wrote my code like this, build ,run .
The behavior is really wired. After "double-clicking…

Dongguo
- 379
- 2
- 4
- 14
0
votes
1 answer
How to return the exception stack trace to normal, when using win32console gem?
ruby 1.8.7 (2010-12-23 patchlevel 330) [i386-mingw32]
win32console (1.3.2 x86-mingw32)
wirble (0.1.3)
Windows 7
I've recently started using wirble to colorize my irb output and read that I needed to have the win32console gem to actually have…

Lifeweaver
- 986
- 8
- 29
0
votes
1 answer
Windows command: show command's file path
I want to find the file path of any command, for example:
C:\Users\trungdq3>show-command-path notepad
C:\Windows\notepad.exe
C:\Users\trungdq3>show-command-path java
C:\Java\jdk1.6\bin\java.exe
Of course show-command-path is not a valid command,…

Tony Dinh
- 6,668
- 5
- 39
- 58