[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] programming with readline without terminal

From: Chet Ramey
Subject: Re: [Bug-readline] programming with readline without terminal
Date: Sun, 20 Jan 2008 18:49:49 -0500
User-agent: Thunderbird (Macintosh/20071031)

AL13N wrote:

This is not a bug, but i couldn't find any other relevant mailing-list.

I 've made a small 3D game, and i have some console support on it, but i'd like to use readline; i'm wondering what the best approach should be.

Since i don't have a 'terminal' as such; i have functions that read a char and print a char on screen depending on several things; how would i set it up using readline? do i need SIGWINCH or it's callback functions? should i set the input/output FILE* ?

Or should i make a fake terminal?

Look at the readline callback interface.  It's minimal, but fairly
powerful.  There are also hooks that let you do your own redisplay,
input, and output.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]