Discussion:
Linux NEdit cursor problem
(too old to reply)
g***@hotmail.com
2004-11-05 18:12:08 UTC
Permalink
Hi all,

I'm running Nedit v5.4.1 on Red Hat v2.4.21, running KDE and have just
started getting very strange cursor behaviour. When I open a file I
don't get a cursor at all. When I click in the file I get a solid (ie.
not blinking) cursor. After a while (and seemingly for no reason,
although it could be to do with the window being refreshed) this cursor
changes to the cursor normally used when the window is inactive (a
vertical row of three dots) and is practically invisible.


I've tried changing the values of nedit*text.blinkRate and
nedit*text.heavyCursor in my $HOME/app-defaults/NEdit file, but neither
of them make any difference. If I set "nedit*text.cursorForeground:
red" in this file the cursor changes colour so this file is definitely
being read.

I've tried removing this file completely. I don't have a system NEdit
file, nor are there any nedit resources in either .Xresources or
.Xdefaults, so as far as I can see I should now have the default
behaviour, but it's still the same. I've also tried removing the
$HOME/.nedit file. I've even tried uninstalling and reinstalling
nedit.

It was working fine this morning and has been fine for weeks. Today I
rebooted the machine and this strange behavious started happening after
I restarted.

Please help! Nedit becomes unusable when the cursor changes to it's
invisible inactive cursor! I've been fiddling with it all afternoon
and it's driving me mad!

Cheers,
Giles
g***@hotmail.com
2004-11-05 19:42:27 UTC
Permalink
Whoops! Its actually Red Hat Enterprise v3. The kernel is v2.4.21!
Norm Dresner
2004-11-06 17:37:01 UTC
Permalink
Post by g***@hotmail.com
Hi all,
I'm running Nedit v5.4.1 on Red Hat v2.4.21, running KDE and have just
started getting very strange cursor behaviour. When I open a file I
don't get a cursor at all. When I click in the file I get a solid (ie.
not blinking) cursor. After a while (and seemingly for no reason,
although it could be to do with the window being refreshed) this cursor
changes to the cursor normally used when the window is inactive (a
vertical row of three dots) and is practically invisible.
I've tried changing the values of nedit*text.blinkRate and
nedit*text.heavyCursor in my $HOME/app-defaults/NEdit file, but neither
red" in this file the cursor changes colour so this file is definitely
being read.
I've tried removing this file completely. I don't have a system NEdit
file, nor are there any nedit resources in either .Xresources or
.Xdefaults, so as far as I can see I should now have the default
behaviour, but it's still the same. I've also tried removing the
$HOME/.nedit file. I've even tried uninstalling and reinstalling
nedit.
It was working fine this morning and has been fine for weeks. Today I
rebooted the machine and this strange behavious started happening after
I restarted.
Please help! Nedit becomes unusable when the cursor changes to it's
invisible inactive cursor! I've been fiddling with it all afternoon
and it's driving me mad!
Cheers,
Giles
This is a guess, but it's what I'd do first

If this is the only problem that it's happening with, I'd try the following:
1. A full power-down shutdown for at least 15 - 20 seconds to give
everything time to reset
if that doesn't help
2. Reinstall NEdit.

If it's happening with other programs too, you probably have a problem with
XFree86.

Norm
g***@hotmail.com
2004-11-08 09:44:35 UTC
Permalink
Thanks for the reply.

the shutdown had no effect. I've already tried reinstalling NEdit and
it didn't help.

I've also just realised something else I did before this happened,
which was to run "gedit" for the first time. Could this have done
something to any system or ini file which could affect nedit?
Cheers,
Giles
g***@hotmail.com
2004-11-08 12:51:24 UTC
Permalink
I've now downloaded and compiled the nedit source code and (with the
help of a couple of printfs) I've sort of worked out what's going on,
but not why. In my user account nedit never gets focusin events and
only the occasional focusout event. Because it doesn't get focusin
events the cursor never starts flashing. When it eventually gets a
focusout event (and this isn't every time it loses the focus) the
cursor changes to the inactive (practically invisible) cursor. Because
it doesn't get a focusin event it never changes back.

If I log out and log in as another user (including root) nedit works
fine. I've been pulling my hair out trying to work out the difference
between my user and these other users but to no avail.

I would guess that something overrides the focusin resource for my user
but have no idea what. Can anyone please help? I'm so close here!
Cheers,
Giles
Norm Dresner
2004-11-08 14:52:46 UTC
Permalink
Post by g***@hotmail.com
I've now downloaded and compiled the nedit source code and (with the
help of a couple of printfs) I've sort of worked out what's going on,
but not why. In my user account nedit never gets focusin events and
only the occasional focusout event. Because it doesn't get focusin
events the cursor never starts flashing. When it eventually gets a
focusout event (and this isn't every time it loses the focus) the
cursor changes to the inactive (practically invisible) cursor. Because
it doesn't get a focusin event it never changes back.
If I log out and log in as another user (including root) nedit works
fine. I've been pulling my hair out trying to work out the difference
between my user and these other users but to no avail.
I would guess that something overrides the focusin resource for my user
but have no idea what. Can anyone please help? I'm so close here!
Cheers,
Giles
In your home directory are two files -- .nedit and .neditdb (IIRC) -- which
may be what's giving you the difference between your login and another use.
Try renaming these and copying the ones from the other user and see if that
works. ISTR that at least the .nedit file is a text file so you may be able
to run diff on yours and the one from the other account and see the
difference.

Norm

Loading...