public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Kevin Ingwersen <ingwie2000@googlemail.com>
To: Tim Prince <n8tm@aol.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Looking for an ANSI Control Character header
Date: Mon, 30 Dec 2013 02:11:00 -0000	[thread overview]
Message-ID: <9A32A050-8342-45D2-B00F-41D4BEDE6EF8@googlemail.com> (raw)
In-Reply-To: <8487D432-2245-4CE1-BBBB-B372EF5C7802@googlemail.com>

Termcap looks interesting, but I can not find anything about the control characters I would like to use.
I am trying to find a library that’d give me the right escape sequence - or a function - to do certain things. Such as
- Deleting everything from the left/right of the curser
- Erasing a whole line, setting the cursor to the beginning of the line
- Starting / ending a color sequence
i know that ncurses can do the color part, but I couldn’t find any way to make it print soemthing like "\x1b[1K“ for me. I know, that on some terminals, the \x expects an octal value rather than a hexadecimal value. (i.e. \x033 vs. \x1b). So the library I am looking for just needs to give me the right sequence to use o.o
Do you know any?

Am Mo. Dez. 30 2013 01:28:53 schrieb Tim Prince:
> 
> On 12/29/2013 04:58 PM, Kevin Ingwersen wrote:
>>  due to different terminals, and the fact that Win32 doesnt perfectly support ANSI control characters, I wanted to ask if there is somewhere a way one can archive this.
>> 
> Do you mean termcap?
> http://www.gnu.org/software/termutils/manual/termcap-1.3/html_mono/termcap.html
> 
> "win32" is far too vague a heading.  How about using one of the current widely used Windows ports of termcap or ncurses (cygwin, MinGW, ....)


  parent reply	other threads:[~2013-12-30  2:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-29 21:59 Kevin Ingwersen
2013-12-30  0:29 ` Tim Prince
     [not found]   ` <8487D432-2245-4CE1-BBBB-B372EF5C7802@googlemail.com>
2013-12-30  2:11     ` Kevin Ingwersen [this message]
2013-12-30  7:16       ` Václav Zeman
2013-12-30 17:31         ` Ángel González

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9A32A050-8342-45D2-B00F-41D4BEDE6EF8@googlemail.com \
    --to=ingwie2000@googlemail.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=n8tm@aol.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).