Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I didn't know this text editor..
Thanks for your hint, I'll have to try it, although I'm used to vim.

About my problems with Curses::UI
I wasn't able to clear keybindings like documented in Curses::UI::Widget.
Instead of e.g., as documented,
$w->set_binding( \&myfunc, "\cF" ); $w->clear_binding( \&myfunc );
you'll have to call  $w->clear_binding( '__routine_'.\&myfunc ); In order to clear the binding to myfunc.

I had to look into the sources to figure this out, and I'd consider this a bug.. It should be at least documented in the pod.

I've mailed the maintainer, but didn't get an answer yet.

Next problem I had: the texteditor isn't searchable.
I tried to set some bindings to the according search functions,
but ended in a mess.
This time I wasn't able to figure out howto make the texteditor searchable within some hours, I gave up.

I'd like to say that Curses::UI are great modules as long as you don't want something too complex.

I personally also hate to do workarounds (which drives me crazy if I've to code some javascript..),
so I concluded that I'd be better with writing my own ui than using Curses::UI.

It's not the way I have fun, and I'd also like to say you'll end up in a mess.
Furthermore I believe such workarounds would become too dependent on the internals of Curses::UI. If anything changes in these modules, the workarounds could easily break.

Update: My feelings about getting into trouble with Curses::UI have been confirmed.
I just found this node: Re: text mode screen-oriented application development]
To quote Withigo: Debugging little quirks in Curses::UI which required custom overrides with Curses code was an especially painful.

In reply to Re^2: console editor by misc
in thread console editor by misc

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-19 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found