On Friday, October 18, 2013 12:46:19 PM UTC-4, Steven D'Aprano wrote:
> xterms used to have a feature where they would write the title back to
> standard input. Unfortunately, it has been disabled for security reasons,
> so I haven't been able to get this to work (not that I tried very
> hard..
On Fri, 21 Aug 2009, Iñigo Serna wrote:
2009/8/21 Thomas Dickey :
On Aug 20, 6:12 pm, Iñigo Serna wrote:
c = win.getch()
You're using "getch", not "get_wch" (Python's ncurses binding may/may
not have the latter).
curses getch returns 8-bit values, get
On Aug 20, 6:12 pm, Iñigo Serna wrote:
> Hi again,
>
> 2009/8/20 Iñigo Serna
> > I have the same problem mentioned
> > inhttp://groups.google.com/group/comp.lang.python/browse_thread/thread/...some
> > months ago.
>
> > Python 2.6 program which usesncursesmodule in a terminal configured to use
Miki <[EMAIL PROTECTED]> wrote:
> (You can find lynx at http://lynx.browser.org/)
not exactly -
The current version of lynx is 2.8.6
It's available at
http://lynx.isc.org/lynx2.8.6/
2.8.7 Development & patches:
http://lynx.isc.org/current/index.html
--
Tho
ef main(stdscr):
> """just repeatedly redraw a long string to reveal the window
> boundaries"""
> while 1:
> stdscr.insstr(0,0,"abcd"*40)
> time.sleep(1)
> if __name__=='__main__':
> if len(sys.ar
ot;ncursesw" then python
can use ncursesw without further change. There are a few patches to the
configuration that I've seen mentioned in the bug reports to enable
python to do this. Those are patches to python of course...
(this was a topic of discussion on this newsgroup about a year
x27;s the 8-bit flavor of ncurses, but the limitation is definitely
in the python configuration.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
it sounded like a good idea ;-)
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
"seems to require" if you're installing some package.
dialog builds/works against either ncurses/ncursesw
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
and installed ncurses 5.5, both using default
> settings and using --with-shared. When the curses module is linked against
for Solaris, you also should add --enable-rpath
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
sion" of ncurses has supported UTF-8 for the past few
years. You may perhaps mean "default configuration", which has a
different connotation.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
iety
> of terminals, and it links agains ncurses, not ncursesw... Interesting.
It's probably using termcap (and the wide-character functions declared
in wchar.h).
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
Ian Ward <[EMAIL PROTECTED]> wrote:
> Thomas Dickey wrote:
>> hmm - I've read Urwid, and most of the comments I've read in that regard
>> reflect problems in Urwid. Perhaps it's time for you to do a little
>> analysis.
>>
>> (looking for
ursor
> - a way to detect when the terminal is resized
> - a way to query the terminal size
...and send UTF-8 text, keeping track of where you really are on the screen.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
f course he's welcome to show the code ;-)
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
ER A WITH RING ABOVE
> +00F5 LATIN SMALL LETTER O WITH TILDE
> so, the UTF-8 characters didn't appear and the " U" at the beginning
> became just " ".
well - running in uxterm I see the second line properly. But some more
tinkering is needed to make python work properly.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
script I would write).
> to make it change the compiler/linker settings, or even edit the
> compiler/linker line manually at first.
that works
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
ooking forward to bug reports, rather than line noise)
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
uses more than
one byte per cell, normal curses uses one byte per cell. To handle UTF-8,
you need ncursesw.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> Thomas Dickey wrote:
>>>ncurses expects byte strings (although I'm uncertain as to what
>>>impact multi-byte encodings have in ncurses).
>>
>>
>> It depends on whether python's curses
normal one. If it's linked with ncursesw, strings are
interpreted according to the locale settings.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
did none of the work.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
w, try w3m or links. Both do a better
> job of rendering anyway.
They lay out tables more/less as expected (though navigation in tables
for links seems to be an afterthought).
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
http://mail.python.org/mailman/listinfo/python-list
23 matches
Mail list logo