From owner-freebsd-hackers@FreeBSD.ORG Sun May 22 12:05:36 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 A555016A41C for ; Sun, 22 May 2005 12:05:36 +0000 (GMT) (envelope-from arundel@h3c.de) Received: from enterprise4.noxa.de (enterprise.noxa.de [212.60.197.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA11443D1D for ; Sun, 22 May 2005 12:05:35 +0000 (GMT) (envelope-from arundel@h3c.de) Received: (qmail 14906 invoked from network); 22 May 2005 14:05:32 +0200 Received: from p508ff19f.dip.t-dialin.net (HELO localhost.skatecity) (80.143.241.159) by enterprise.noxa.de with AES256-SHA encrypted SMTP; 22 May 2005 14:05:32 +0200 Received: from localhost.skatecity (nobody@localhost.skatecity [127.0.0.1]) by localhost.skatecity (8.13.3/8.13.3) with ESMTP id j4MC5VD8014992 for ; Sun, 22 May 2005 14:05:31 +0200 (CEST) (envelope-from arundel@localhost.skatecity) Received: (from arundel@localhost) by localhost.skatecity (8.13.3/8.13.3/Submit) id j4MC5Uuf014991 for freebsd-hackers@freebsd.org; Sun, 22 May 2005 14:05:30 +0200 (CEST) (envelope-from arundel) From: alexander Date: Sun, 22 May 2005 14:05:30 +0200 To: freebsd-hackers@freebsd.org Message-ID: <20050522120530.GA14937@skatecity> Mail-Followup-To: freebsd-hackers@freebsd.org 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> <4290072F.1000101@bullseye.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4290072F.1000101@bullseye.apana.org.au> Subject: Re: Looking for ANSI/VT100 code replacement. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 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 12:05:36 -0000 On Sun May 22 05, Andrew MacIntyre wrote: > alexander wrote: > >However burncd being a C app uses fprintf. Can I replace > >the functionality of fprintf under x86asm by using only syscalls? > > fprintf(3) is most likely doing buffered I/O in the burncd case, which > for a tty defaults to line buffered. > > Your code is doing unbuffered I/O, which might explain some of the > discrepancies you see. > > Doing your own output buffering in assembly shouldn't be any big deal > that I can see. > > ------------------------------------------------------------------------- > Andrew I MacIntyre "These thoughts are mine alone..." > E-mail: andymac@bullseye.apana.org.au (pref) | Snail: PO Box 370 > andymac@pcug.org.au (alt) | Belconnen ACT 2616 > Web: http://www.andymac.org/ | Australia > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" OK. Thx a lot. Due to the incompatibility/bug issue of Eterm I've gotten rid of the entire VT100 sequence and am now using a CR. This works even under Eterm. So far I haven't discovered any slowdowns due to the fast that I'm now rewriting the whole line instead of just 5 ascii values (plus the VT100 stuff). I'm now trying to limit the output rate to correspond with the CRT refresh rate. Is 100 Hz the standard value to use in this case or are there monitors out there that use a higher refresh rate? Cheers.