Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Console app: Pressing any key does not close window!
Console app: Pressing any key does not close window! [message #49129] Sun, 24 December 2017 06:28 Go to next message
ptkacz is currently offline  ptkacz
Messages: 84
Registered: March 2017
Member
Not sure if any one logged the following U++ feature. When a U++ console app has finished processing, one is prompted to close the window by pressing "any key". Unfortunately this doesn't work with the exception of pressing the enter key. Maybe this message should be updated, or the code for exiting the console app updated? Anyways, here's the code followed by a screen shot.

Code:
#include <iostream>
#include <iostream> 

int main(int argc, const char *argv[])
{
	std::cout << "Go ahead and press any key!" << std::endl;
	return 0;
}


Screen Shot
index.php?t=getfile&id=5464&private=0
Re: Console app: Pressing any key does not close window! [message #49134 is a reply to message #49129] Sun, 24 December 2017 14:20 Go to previous message
Klugier is currently offline  Klugier
Messages: 614
Registered: September 2012
Location: Poland, Kraków
Contributor
Hello,

Just press enter for some reasons the letters doesn't work for this certain terminal. I noticed that the KDE terminal works exactly the same way, so maybe on the POSIX operating system we should inform user to press "Enter" instead of any button.

Can you verify the behavior on Windows?

I verify the information is presented only on POSIX, so I decided to change the message after verify it on various terminal (Gnome, KDE and xterm):
<--- Finished, press enter to close the window --->


Thanks for spotting this. You can try new version tomorrow.

Sincerely,
Klugier


Ultimate++ - one framework to rule them all.

[Updated on: Sun, 24 December 2017 14:52]

Report message to a moderator

Previous Topic: Link Libraries
Next Topic: How to change shortcut in TheIDE?
Goto Forum:
  


Current Time: Thu Apr 18 12:24:39 CEST 2019

Total time taken to generate the page: 0.00581 seconds