T
Thomas Dickey
There are embedded Linux systems without curses.
Which are the ones running a widely-used non-vt100-compatible terminal?
There are embedded Linux systems without curses.
Which are the ones running a widely-used non-vt100-compatible terminal?
[/QUOTE]Tak-Shing Chan said:Which are the ones running a widely-used non-vt100-compatible terminal?
Widely-used? I don't know. But there exists systems where
you can access the console thru the serial port---I've seen a
few of those.
Tak-Shing Chan said:[...]
Most terminals, particularly modern ones, will clear the screen if
you simply send them a formfeed. It's not guaranteed, but it's a
similar kind of assumption to backspace will move the cursor left
which seems pretty much standard these days.
I haven't found that to be the case for any of the terminal emulators
I use. I've just tried xterm, dtterm, gnome-terminal, a Windows
command window, the GNU "screen" program, and rxvt; none of them clear
the screen in response to a formfeed character.
I have just posted a long list elsethread.
You posted a long list which has no obvious relevance to the point in
question. The list is a long way from "most terminals" and few of the
ones listed count as modern (one was recently sold as a rare antique
computer, many are archaic museum pieces).
A serial port is a data connection (a wire)
It doesn't present data (a terminal).
Again, unless it's widely used, it doesn't add to the "most" category.
OK. Let me trim it down to just one item: the Sun console.
It is certainly still in use today, and it does clear the screen
with '\f'. But you are absolutely right, this has little
relevance to ``most terminals''. Perhaps I should s/most/some/g.
Getting rather off topic....Tak-Shing Chan said:The serial driver doesn't, but the console driver does.
Fair enough.
Getting rather off topic....
Tak-Shing Chan said:What about ISO 9899:1990, 5.2.2, where escape sequences for
display devices (such as '\f', '\b' and '\r') are defined? The
only problem with these are quality of implementation issues.
It says that \f (form feed) "moves the active position to the initial
position at the start of the next logical page."
I don't see anything there about clearing the screen.
I think we all know by now that *some* terminals and terminal
emulators will clear the screen in response to a formfeed characters,
and some will not. (It happens that most of the ones I use or have
access to don't. I suspect my experience in this case is typical; I
certainly don't claim that it's universal.)
In my opinion, the statement in question 19.4 of the FAQ that clearing
the display by printing a formfeed character is "halfway portable" is
incorrect, or at least over-stated.
> 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.
For some reason, no one liked this suggestion of mine when I
brought it during the last discussion of this issue:
for (;
putchar('\n');
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.