[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiline text input possible at all using ncurses?
From: |
Harishankar |
Subject: |
Re: Multiline text input possible at all using ncurses? |
Date: |
Sun, 28 Mar 2010 14:56:02 +0000 (UTC) |
User-agent: |
Pan/0.133 (House of Butterflies) |
On Sun, 28 Mar 2010 14:08:00 +0000, Harishankar wrote:
> On Sun, 28 Mar 2010 09:05:46 -0400, Thomas Dickey wrote:
>
>> On Sat, 27 Mar 2010, Harishankar wrote:
>>
>>> My apologies if this is not the right group to post this question, but
>>> I couldn't find any other ncurses group that was active and didn't
>>> have spam.
>>>
>>> Is it at all possible to get multiline text input in a scrollable
>>> widget in ncurses without using a third party library?
>>
>> From python, I'd assume you'd have to build it up (using ncurses calls
>> of course). The form library provides multiline input, and I see that
>> it mentions scrolling. I don't recall if the python bindings cover
>> that.
>>
>>
> Thanks for the reply. I will take a look at the C API for ncurses,
> because Python's curses module doesn't have a scrollable text view
> (though it has a curses.textpad which allows multiline text input in the
> visible window only).
>
> The Python curses interface appears to be much more limited than the C
> API which is understandable. Once again thanks for the reply. I will
> look at the C API and see what is possible.
I found an interesting project on sourceforge for the Curses Development
Kit as a python module:
http://pycdk.sourceforge.net/
I have no idea whether it is usable currently or not, and is described as
"alpha". However, it appears to be a good starting point for further
researches.
I tried looking at an alternative to ncurses, which is newt based on s-
lang, but it is very poorly documented and doesn't appear to be really
flexible enough for my needs.
--
Harishankar (http://harishankar.org http://literaryforums.org)