471,092 Members | 1,051 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

Screen Editing

I was just wondering if there is any way of editing anything already
printed on the screen with out using the system("cls") command.

Aug 17 '06
51 3628
In article <Pi*******************************@scorpio.gold.ac .ukTak-Shing Chan <t.****@gold.ac.ukwrites:
I agree with you vis-a-vis '\f', but my reply above was an
attempt to paint a larger picture---that it is indeed possible to
``edit'' something that is already written on the screen, if not
by '\f', then by '\r' or '\b' on the current line.
An interesting discussion. But when I go back to what the OP posted
it has gone a bit off-topic. And to get more off-topic, I have used
a full-screen editor that worked across half-duplex lines, so it was
only when you entered a CR that the base system knew what you had been
doing. (FSE under NOS/VE on CDC Cybers.)
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Aug 18 '06 #51
Ben Pfaff <bl*@cs.stanford.eduwrote:

(WRT clearing the "screen")
For some reason, no one liked this suggestion of mine when I
brought it during the last discussion of this issue:
for (;;)
How about

int idx, times=1;
while( 1 ) {
for( idx=0; idx < times; idx++ ) {
putchar( '\n' );
printf( "Was that enough?\n" );
if( getc(stdin) == 'n' ) {

? This way the programmer can decide when the screen is clear enough,
assuming of course I haven't made any silly mistakes.

C. Benson Manica | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com | don't, I need to know. Flames welcome.
Aug 18 '06 #52

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by news.microsoft.com | last post: by
3 posts views Thread by Simon East | last post: by
1 post views Thread by Patrick.O.Ige | last post: by
65 posts views Thread by Leslie Kis-Adam | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.