From owner-freebsd-hackers@FreeBSD.ORG Sat May 21 14:58:11 2005 Return-Path: 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 8426916A4CE for ; Sat, 21 May 2005 14:58:11 +0000 (GMT) Received: from enterprise4.noxa.de (enterprise.noxa.de [212.60.197.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60E6743D8A for ; Sat, 21 May 2005 14:58:10 +0000 (GMT) (envelope-from arundel@h3c.de) Received: (qmail 11928 invoked from network); 21 May 2005 16:58:08 +0200 Received: from p508fd4bd.dip.t-dialin.net (HELO localhost.skatecity) (80.143.212.189) by enterprise.noxa.de with AES256-SHA encrypted SMTP; 21 May 2005 16:58:08 +0200 Received: from localhost.skatecity (nobody@localhost.skatecity [127.0.0.1]) by localhost.skatecity (8.13.3/8.13.3) with ESMTP id j4LEw794051379 for ; Sat, 21 May 2005 16:58:07 +0200 (CEST) (envelope-from arundel@localhost.skatecity) Received: (from arundel@localhost) by localhost.skatecity (8.13.3/8.13.3/Submit) id j4LEw7Tg051378; Sat, 21 May 2005 16:58:07 +0200 (CEST) (envelope-from arundel) From: alexander Date: Sat, 21 May 2005 16:58:07 +0200 To: freebsd-hackers@freebsd.org, freebsd-hackers@freebsd.org Message-ID: <20050521145807.GA51141@skatecity> References: <20050520224726.GA7951@skatecity> <20050520230845.GC51092@dan.emsphone.com> <20050521015105.GA9063@skatecity> <20050521080723.GN2129@cirb503493.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050521080723.GN2129@cirb503493.alcatel.com.au> 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: Sat, 21 May 2005 14:58:11 -0000 On Sat May 21 05, Peter Jeremy wrote: > > I think you need to give us more details and preferably some sample code > to simulate the problem. What is the hardware you are running on? What > version of FreeBSD, X11 and xterm/Eterm. > > -- > Peter Jeremy Here's the code that is using the VT100 stuff: ############################################################################## %define stdout 1 MainDataSend db 0Ah,"Sending main data..." MaxUnits db 0 dd 0 MainDataSlash db "/" CurrentUnit db "0" dd "0000" lMainDataSend equ $-MainDataSend lCurrentUnit equ $-CurrentUnit updateMainUnit db 27,91,53,68,27,91,75 lupdateMainUnit equ $-updateMainUnit ;... mov [MaxUnits+1], dword ebx mov [MaxUnits], byte bl push dword lMainDataSend push dword MainDataSend push dword stdout mov eax, 4 call _syscall add esp, byte 12 ;THE FOLLOWING CODE IS EMBEDDED INTO A LOOP push dword lupdateMainUnit push dword updateMainUnit push dword stdout mov eax, 4 call _syscall add esp, byte 12 ;... mov [CurrentUnit+1], dword ebx mov [CurrentUnit], byte bl ;... push dword lCurrentUnit push dword CurrentUnit push dword stdout mov eax, 4 call _syscall add esp, byte 12 ############################################################################## The Problem is defenately not the speed of my system: 1.3 Ghz && 512 MB !!! If you want to have a look at the entire sourcecode please visit my blog at http://arundel.blog.de I also took 2 videos with my digicam that show you how stdout behaves under the console and using Eterm. The files are encoded with XVID (no sound): http://520061600655-0001.bei.t-online.de/gbacopy/console.avi http://520061600655-0001.bei.t-online.de/gbacopy/eterm.avi Cheers.