For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > February 2006 > curses ???









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author curses ???
alexxx.magni@gmail.com

2006-02-08, 6:59 pm

Hello everybody, I hope someone can help me.
I am having troubles trying to display some text (in a Perl/Tk program)
using curses characters screen handling, inside Tk widgets.
It exists some way to do it?

I am really at a loss...

thanks


Alessandro Magni

alexxx.magni@gmail.com

2006-02-08, 6:59 pm

I'll answer myself for the sake of future souls having the same problem
- thanks to a PerlMonk:

> by zentara on Feb 07, 2006 at 12:40 UTC
> If you just want to run a curses app embedded in a Tk window, you should be able to
>do it by embedding an xterm with the -e option, to execute the curses app. That should
>take care of all the keys working in the curses app. See embedding xterm into a Tk app > => http://www.perlmonks.org/?node_id=359764
>In that script, if you change it to
> system("xterm -into $xtId -e /usr/bin/mc &");
> It will run midnight commander in the Tk window.
> If you are trying to mix Tk and Curses code, in the same window, it will be a tough
>thing to do. Actually it would be easier to define what the curses application is doing,
>then port it to Tk code.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com