B
bashcommando
Guest
How do I clear all the lines I made in X11 so I can make a new screen.
Are you referring to a bash screen? (Console, or terminal?)How do I clear all the lines I made in X11 so I can make a new screen.
$ clear
[Ctrl]-l (Control + Lowercase 'L')
How did you create the window? QT, GTK+, some other windowing software/language? You have not provided enough information.No, I am referring to the fact that I made a window and created a bunch on lines, then I want to clear it. The window is 480x360.
I am just using the X11 libraries in C.How did you create the window? QT, GTK+, some other windowing software/language? You have not provided enough information.
Perhaps this will help:I am just using the X11 libraries in C.
Edit: I don't really want to set up a for loop just drawing background colored lines all over the screen but if you don't reply with a better answer then that would have to be it.
Beautiful! How do I have a wait of 100 milliseconds in C so my program doesn't hog resources? I don't want to use sleep as it prevents my program from opening a X11 window entirely.
I confess I don't do X11 windows programming.Beautiful! How do I have a wait of 100 milliseconds in C so my program doesn't hog resources? I don't want to use sleep as it prevents my program from opening a X11 window entirely.
You are missing something then.I have to admit, it has been quite some time since I did any X11 programming too. But I don't see how sleeping for 100ms is going to stop your program from opening a window.... I mean, sure - the window won't open during the 100ms that the program is sleeping. But other than that, it should have no adverse effect! After the program 'wakes' again, it should continue from the statement following the call to sleep. Unless I am missing something?!