From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3347 invoked by alias); 27 May 2005 19:02:38 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 3331 invoked by uid 22791); 27 May 2005 19:02:32 -0000 Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.193) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 27 May 2005 19:02:32 +0000 Received: by rproxy.gmail.com with SMTP id y7so362103rne for ; Fri, 27 May 2005 12:02:30 -0700 (PDT) Received: by 10.11.116.57 with SMTP id o57mr12493cwc; Fri, 27 May 2005 12:02:30 -0700 (PDT) Received: by 10.11.99.15 with HTTP; Fri, 27 May 2005 12:02:30 -0700 (PDT) Message-ID: <7f45d9390505271202e8db5bf@mail.gmail.com> Date: Fri, 27 May 2005 19:02:00 -0000 From: Shaun Jackman Reply-To: Shaun Jackman To: gdb@sources.redhat.com Subject: arm-elf-run and ANSI escape sequences Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-SW-Source: 2005-05/txt/msg00351.txt.bz2 First off, let me just say how impressed I am with the ARM simulator! It astounds me that I can run a binary intended for my embedded platform with no modification on my development machine. I'm running an ARM binary using arm-elf-run that makes use of ANSI escape sequences to control the terminal emulator (konsole in my case). Clear screen, "\33[2J", works fine. But the combination of save cursor, "\33[s", and restore cursor, "\33[u" does not. If the answer is "That does not work." that'd be fine. I'm just a little curious where it's gone wrong. I figured the escape sequences would be passed right on through to the terminal emulator, and no-one would ever know the binary's being run by an ARM simulator. If I compile the application natively (using gcc instead of arm-elf-gcc) and run it, save cursor and restore cursor work as expected. I no very little (ok, nothing) about the internals of gdb, but if gdb sets up a pseudo-teletype for the child process, perhaps the save-cursor function does not work with this pseudo-teletype? Thanks, Shaun arm-elf-run 6.3 newlib 1.13.0 arm-elf-gcc 3.4.3 konsole 1.4.2 KDE 3.3.2 Linux 2.6.11