[aclug-L] Re: C question..Another one...
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
I don't know a whole lot about programming with special terminal graphics.
A lot of people just use a system call for clearing the screen (which
really just finds out how many lines are in the window and prints that many
blank lines). I believe there is something called curses that is used to
program things, such as the tetris you can play in a telnet window.
A trick I've used before is to use the backslash b character ('\b') in C
programs. It is the same effect as deleting the last character printed. If
you output the date, then print an equal number of '\b' characters, you
will erase what you just printed. It does flicker a little bit, but will do
the job. I can't remember if there is another character for line feed or
negative (upward) line feed.
HTH,
John
>Does ANSI C++ offer an include file which includes cursor placement (i.e.
>locate) and a clear screen. All the books I have just show old /n /f /t
>stuff I put the slashes backwards as not to mess with the mail programs.
>
>I am writing one of the programs in a linux environment, but I must be
>able to put the current time on the bottom left corner of the screen, with
>out it blinking! Linux won out, as it has to be able to be depended on!
>reliable.
>
>Also, to write data out the /dev/ttyS1 in the program you just use
>fopen(/dev/ttyS1) ? Right?
>It has been a few years since I have had to sit down and use the comm
>port. I need to set it up at 11k to a Windoz box, and it will send data
>packets to the windoz box.
>
>Mike
-- This is the discussion@xxxxxxxxx list. To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
|
|