Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Marquee implementation in C

Thread Tools

Marquee implementation in C

David Thompson
Posts: n/a
On Sun, 07 Oct 2007 02:08:15 -0700, Keith Thompson <(E-Mail Removed)>

> santosh <(E-Mail Removed)> writes:
> > Ian Collins wrote:
> >> Ian Collins wrote:
> >>> praveen wrote:
> >>>> I want to scroll the text horizontally up to maximum of 50
> >>>> characters without using widgets.
> >>>
> >>> This isn't the place to ask, try a group dedicated to your operating
> >>> system.
> >>>
> >> Although I guess you could simply use puts in a loop.

> >
> > I don't think it's possible without some dependence on implementation
> > defined behaviour. The easiest solution would be use some similar to
> > curses.

> It can be done if the carriage return character behaves as specified.
> But I'm unwilling to do the OP's homework for him.

If CR behaves as sortof-almost-specified, AND 'overwriting' a line
works as you apparently expect but which is not even suggested by the
Standard. On some, formerly common, devices it can't. On modern
bitmapped displays it would be reasonable to ior the bitmaps to
simulate traditional over_printing_. It would be legal to xor the
bitmaps, and I think I might even come up with a plausible rationale
to do so. It would even be legal to combine the two character _codes_
and use the result as a single new extended code, probably
Unicode/10646 assuming the narrow codes are ASCII or ASCII-like.

And if one doesn't want 'continous' aka 'gradual' scrolling, nor
scrolling at a rate (or rates) more precise than the
implementation-dependent approximation of time() et al.

And if the output (device) supports sufficiently long lines, here 50
characters, which similarly is only sortof-almost-specified.

- formerly david.thompson1 || achar(64) ||
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transparent items marquee? UJ ASP .Net 0 04-25-2006 05:47 PM
MARQUEE =?Utf-8?B?TWFyZWsgRw==?= ASP .Net 1 02-20-2006 04:18 PM
how to use marquee in =?Utf-8?B?RGFuaWVs?= ASP .Net 3 10-06-2005 08:28 PM
Marquee from database =?Utf-8?B?QWxp?= ASP .Net 1 04-06-2005 11:14 AM
Marquee with a dataset? et ASP .Net 1 10-17-2004 04:11 PM