[MPlayer-dev-eng] [PATCH] hide cursor on terminal

Diego Biurrun diego at biurrun.de
Wed Nov 13 02:44:50 CET 2002


D Richard Felker III writes:
 > On Mon, Oct 14, 2002 at 02:11:13AM +0200, Arpi wrote:
 > > > On Fri, Oct 11, 2002 at 10:26:15PM -0400, D Richard Felker III wrote:
 > > > > Hey. I would just commit this directly, but I'm not too familiar with
 > > > > getch2.c so I'd like to run it by everyone first. This patch hides the
 > > > > cursor when getch2 is enabled, which is needed when using the bes on
 > > > > some cards, since the annoying flashing cursor appears over top of the
 > > > > overlay. The old TOOLS/mpconsole script I wrote works around this, but
 > > > > since it's mostly obsolete already I'd like to go ahead and make it
 > > > > entirely obsolete. If no one objects I'll commit this patch soon.
 > > > 
 > > > Could you explain shortly how this is suppoesed to work?  I applied your
 > > > patch and rebuilt, but I can still the cursor with commands like
 > > > 
 > > >   clear && mplayer -vo mga /var/tmp/FinalFantasy.avi > /dev/null
 > > 
 > > hehe :)
 > > as you sent the disable cursor ANSi codes to /dev/null :)
 > 
 > Haha, 10l to me. I should be using fd 0, not 1. :)

OK, here is a working version of the patch, now all it lacks is
clearing the screen with -fs.

Diego


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nocursor.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021113/0aed7ee6/attachment.txt>


More information about the MPlayer-dev-eng mailing list