Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2005 11:49:59 +1000
From:      Peter Jeremy <PeterJeremy@optushome.com.au>
To:        alexander <arundel@h3c.de>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Looking for ANSI/VT100 code replacement.
Message-ID:  <20050522014959.GP2129@cirb503493.alcatel.com.au>
In-Reply-To: <20050521220935.GA884@skatecity>
References:  <20050520224726.GA7951@skatecity> <20050520230845.GC51092@dan.emsphone.com> <20050521015105.GA9063@skatecity> <20050521080723.GN2129@cirb503493.alcatel.com.au> <20050521145807.GA51141@skatecity> <20050521204719.GO2129@cirb503493.alcatel.com.au> <20050521220935.GA884@skatecity>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2005-May-22 00:09:35 +0200, alexander wrote:
>On Sun May 22 05, Peter Jeremy wrote:
>> 
>> Can you please confirm that you also see the problem when you are using
>> xterm (not Eterm).  Can you also please advise what versions of FreeBSD,
>> X11 and xterm/Eterm you are using.
>
>OK. Seems like you somehow knew what was going on here. The problem has now
>clearly shifted towards the Eterm code. Xterm display the VT100 codes
>correctly.

The AVI you posted showed that Eterm was not updating the display for
partial lines.  I tried Eterm myself and found that it needs a newline
(or maybe CR) to make it display anything.  You must be able to change
this behaviour, since otherwise curses would not work at all, but it's
not clear how to do it from a quick look at the man page.

>However I'm still thinking of replacing the whole VT100 stuff with a set
>of syscalls. So...is there a way to reposition the cursor inside the
>sdtout stream just by using syscalls? Can I use lseek() or some other
>syscall to change the current FD position?

No.  You can't seek within a TTY.  The only way to re-position the
cursor is to write magic character sequences that are recognized as
re-position requests by code that implements the TTY (eg xterm/Eterm).

>I had a look at the 'burncd' code and the code works brilliantly even
>under Eterm.

Burncd is sending CR characters and re-writing the entire line, rather
than re-positioning the cursor within the line.

-- 
Peter Jeremy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050522014959.GP2129>