Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  ncurses-alike for pluginlib?
« previous next »
  • Print
Pages: [1]

Author Topic: ncurses-alike for pluginlib?  (Read 1359 times)

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
ncurses-alike for pluginlib?
« on: July 01, 2009, 12:26:09 PM »
I'm developing a Frotz port at the moment and the port includes a text buffering system for Rockbox that allows things like partial screen scrolling and re-printing the screen contents after popping up fullscreen menus or the virtual keyboard. It's not very advanced yet but Frotz will ultimately need many (n)curses-like capabilities from it.

I'm wondering if it would be useful to pull this code out and put it in pluginlib, to provide a generic interface for treating the LCD like a monospaced text console. It might be useful when porting other text console applications, though some thought is still needed to work out how to do input nicely. However, the Frotz port is ultimately likely to evolve beyond the need for it at some future point (using proportional text and other niceties that GUI ports of Frotz have), so I'd only really want to put the effort in to make it a useful library if people were likely to use it for other plugins :)

Opinions, anyone? Would such a thing be useful? Also, if you think it would be useful, would you prefer if it replicated the API of (n)curses as much as possible, or is it not important? (or do you actively dislike curses? *grin*)
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: ncurses-alike for pluginlib?
« Reply #1 on: July 01, 2009, 08:58:48 PM »
definetly put it in a seperate lib... it might even be useful enough to put in the core
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: ncurses-alike for pluginlib?
« Reply #2 on: July 02, 2009, 09:17:11 AM »
Quote from: JdGordon on July 01, 2009, 08:58:48 PM
definetly put it in a seperate lib... it might even be useful enough to put in the core
So what would you port using it? :)
It's unlikely that it'd want to go in the core, it requires a reasonable amount of memory for text buffering, more if scrollback is wanted. In pluginlib it will only bloat the memory usage of plugins that want it :)

Any opinion on curses-like API or not?
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: ncurses-alike for pluginlib?
« Reply #3 on: July 02, 2009, 11:47:59 AM »
I wouldnt port anything, ut I'm sure someone might...

and I havnt used the curses API so I cant comment
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  ncurses-alike for pluginlib?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.066 seconds with 15 queries.