From owner-freebsd-hackers@FreeBSD.ORG Sun May 22 01:50:03 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F9E716A41C for ; Sun, 22 May 2005 01:50:03 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail18.syd.optusnet.com.au (mail18.syd.optusnet.com.au [211.29.132.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id D926343D49 for ; Sun, 22 May 2005 01:50:02 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) j4M1nxYj032413 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 22 May 2005 11:50:00 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])j4M1nxRx010839; Sun, 22 May 2005 11:49:59 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost)j4M1nxUe010838; Sun, 22 May 2005 11:49:59 +1000 (EST) (envelope-from pjeremy) Date: Sun, 22 May 2005 11:49:59 +1000 From: Peter Jeremy To: alexander Message-ID: <20050522014959.GP2129@cirb503493.alcatel.com.au> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050521220935.GA884@skatecity> User-Agent: Mutt/1.4.2i cc: freebsd-hackers@freebsd.org Subject: Re: Looking for ANSI/VT100 code replacement. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2005 01:50:03 -0000 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