Menu

#7 Menu in ConsolePlayer

open
nobody
None
5
2012-12-12
2011-08-07
No

It would be nice if the menu in ConsolePlayer could work similar to the native C console player, i.e. display play time as it plays, update itself when switching tracks etc. I know this is pretty much impossible given the crappy java System.out/in functionality but it would be possible with for example some curses library like jcurses.

I tinkered a bit myself because the "Song Length :" in the menu would always say "UNKNOWN" (because at the time player.menu() is called player.open() hasn't been called yet and therefor no time information has been extracted from sldb). So what I did as a quick compromise was to move the player.menu() call down into the main_restart label just below the if(!player.open()) check. This means the menu is at least redrawn for every new subtune you play. It's not a real beauty but it works :)

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.