Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums
Members
Pages
Search
Help
Register
Login
Home
Home
»
Developing U++
»
U++ Developers corner
»
Console decoration for DOS (windows)
Show:
Today's Messages
::
Show Polls
::
Message Navigator
E-mail to friend
Re: Console decoration for DOS (windows)
[
message #36419
is a reply to
message #36418
]
Fri, 25 May 2012 17:31
ratah
Messages:
107
Registered:
July 2010
Experienced Member
Here is a sample test
Quote:
#include <Core/Core.h>
using namespace Upp;
COORD coord1, coord2;
Stream& s1 = Cout();
Stream& s2 = Cout();
StaticMutex mutex1, mutex2;
class multithread
{
public :
typedef multithread CLASSNAME;
Thread th1, th2;
void thr_1()
{
for(int i=0; i<=10; i++)
{
th2.Sleep(100);
s1.SetConsoleCursorPos(coord1);
s1 << i;
}
}
void thr_2()
{
for(int i=0; i<=15; i++)
{
th1.Sleep(100);
s2.SetConsoleCursorPos(coord2);
s2 << i;
}
}
void Test()
{
s1 << "\n\tTHREAD 1 ...";
s1.GetConsoleCursorPos(coord1);
s2 << "\n\tTHREAD 2 ...";
s2.GetConsoleCursorPos(coord2);
th1.Run(THISBACK(thr_1));
th2.Run(THISBACK(thr_2));
th1.Wait();
th2.Wait();
}
};
CONSOLE_APP_MAIN
{
Stream& s = Cout();
s.PutEol();
s.PutEol();
s << "\t";
s.Colorize(1,14);
s << " THIS IS A CONSOLE DECORATION TEST ";
s.Colorize();
s.PutEol();
s.PutEol();
multithread mt;
mt.Test();
s.PutEol();
s.PutEol();
}
and the result
Wish it will be usefull for you.
Ratah
Attachment:
console.jpg
(Size: 14.08KB, Downloaded 556 times)
[Updated on: Fri, 25 May 2012 17:33]
Report message to a moderator
[
Message index
]
Console decoration for DOS (windows)
By:
ratah
on Fri, 25 May 2012 17:28
Re: Console decoration for DOS (windows)
By:
ratah
on Fri, 25 May 2012 17:31
Re: Console decoration for DOS (windows)
By:
BioBytes
on Fri, 25 May 2012 21:46
Re: Console decoration for DOS (windows)
By:
lectus
on Sun, 01 July 2012 02:08
Previous Topic:
Web framework - Skylark - first taste
Next Topic:
CodeEditor with user-definable syntax highlighting
Goto Forum:
- Community
U++ community news and announcements
PR, media coverage, articles and documentation
U++ Webs: Functioning, Layout , Design, Features and Structure of these forums, homepage etc.
Coffee corner
Newbie corner
U++ based job offers
- Developing U++
U++ Developers corner
External resources
Releasing U++
UppHub
Bugs (& fixes)
Documentation
U++ TheIDE and Library: Releases and ChangeLogs
Mac OS
Android
- U++ Library support
U++ Library : Other (not classified elsewhere)
U++ Core
Look and Chameleon Technology
U++ Libraries and TheIDE: i18n, Unicode and Internationalization
U++ SQL
U++ MT-multithreading and servers
U++ Callbacks and Timers
U++ Widgets - General questions or Mixed problems
TopWindow&PopUp, TrayIcon
Menus&Toolbars
StatusBar&InfoCtrl
Splitter
TabCtrl
Slider&ProgressIndicator
ArrayCtrl, HeaderCtrl & GridCtrl
TreeCtrl
RichText,QTF,RTF...
LineEdit, EditFields, DocEdit
Draw, Display, Images, Bitmaps, Icons
FileSel&FileList, Path
CalendarCtrl
Skylark
ScatterDraw & ScatterCtrl
Archive
- U++ TheIDE
U++ TheIDE: Other Features Wishlist and/or Bugs
U++ TheIDE: Compiling, Linking, Debugging of your packages
U++ TheIDE: Installation, Compiling and Running of theide
U++ TheIDE: CodeEditor, Assist++, Topic++
U++ TheIDE: Packages
U++ TheIDE: Layout (Forms) Designer
U++ TheIDE: Icon designer
- Extra libraries, Code snippets, applications etc.
U++ users applications in progress and useful code snippets, including reference examples!
U++ Esc Interpreter, Esc Macros and templates
C++ language problems and code snippets
Applications created with U++
OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc
-=]
Back to Top
[=-
[
Syndicate this forum (XML)
] [
] [
]
Current Time:
Sun May 12 23:54:34 CEST 2024
Total time taken to generate the page: 0.02632 seconds