From owner-freebsd-questions@FreeBSD.ORG Tue Feb 12 11:54:38 2008 Return-Path: Delivered-To: FreeBSD-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D86416A418 for ; Tue, 12 Feb 2008 11:54:38 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id 14CEC13C4DD for ; Tue, 12 Feb 2008 11:54:35 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.12.11) with ESMTP id m1CBsY5w025064 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 12 Feb 2008 18:54:34 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.6/8.12.11) id m1CBsY3m012717; Tue, 12 Feb 2008 18:54:34 +0700 (ICT) Date: Tue, 12 Feb 2008 18:54:34 +0700 (ICT) Message-Id: <200802121154.m1CBsY3m012717@banyan.cs.ait.ac.th> From: Olivier Nicole To: FreeBSD-questions@freebsd.org X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Cc: Subject: Console escape code X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2008 11:54:38 -0000 Hi, I am upgrading an application that was runinng on 4.11, and I try to port it to 6.3. The application is using a couple of escape control sequences to modify the cursor on the console. On 4.11 it was OK, but on 6.3 the cursor changed from block type to overscore (? same as underscore but abov ethe character). This is not a big issue, but I am failling to remember where I get these escape control sequences in the first time. printf(" ESC[7mESC[1m string1 ESC[0m"); This one is OK, reverse and bold printf("ESC[=2CESC[=18;20C string2"); It prints OK, but the cursor is overscore instead of block readline("ESC[=2;0C string 3"); It prints OK. Thanks in advance, Olivier