This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Windows Vista and REPL caret disappearing

12 replies
pkolaczk
Joined: 2010-01-14,
User offline. Last seen 2 years 38 weeks ago.

Hi,

another strange problem. I've noticed the cursor disappears when I move
it in scala console and sbt console. I don't know how far I moved the
cursor - I must release the arrow key, wait half a second until the
cursor starts blinking and in 90% cases I can see I have it in a wrong
place... Very uncomfortable. In most text editors the behaviour is just
the opposite: the caret is shown permanently while moving (it doesn't
even blink).

However, in the standard windows command line window, before I launch
scala, the caret behaves like it should. Also in the standard command
line editor launched by "edit", the cursor behaves ok. So I think the
problem might be related to scala or some of the libraries it uses for
handling CLI.

Can you also see it, or is it something with my Windows configuration
(Vista Home Premium, Scala 2.8.0.RC6)?

Regards,
Piotr Kołaczkowski

Ruediger Keller
Joined: 2010-04-11,
User offline. Last seen 42 years 45 weeks ago.
Re: Windows Vista and REPL caret disappearing

I have exactly the same problem! I experience it on both WinXP and
Win7 x64. It seems all versions of windows are affected. Very annoying
and almost rendering the REPL useless.

Regrads,
Ruediger

2010/6/22 Piotr Kołaczkowski :
> Hi,
>
> another strange problem. I've noticed the cursor disappears when I move it
> in scala console and sbt console. I don't know how far I moved the cursor -
> I must release the arrow key, wait half a second until the cursor starts
> blinking and in 90% cases I can see I have it in a wrong place... Very
> uncomfortable. In most text editors the behaviour is just the opposite: the
> caret is shown permanently while moving (it doesn't even blink).
>
> However, in the standard windows command line window, before I launch scala,
> the caret behaves like it should. Also in the standard command line editor
> launched by "edit", the cursor behaves ok. So I think the problem might be
> related to scala or some of the libraries it uses for handling CLI.
>
> Can you also see it, or is it something with my Windows configuration (Vista
> Home Premium, Scala 2.8.0.RC6)?
>
> Regards,
> Piotr Kołaczkowski
>
>
>

nilskp
Joined: 2009-01-30,
User offline. Last seen 1 year 27 weeks ago.
Re: Windows Vista and REPL caret disappearing
2010/6/22 Ruediger Keller <ruediger [at] rk42 [dot] de>
I have exactly the same problem! I experience it on both WinXP and
Win7 x64. It seems all versions of windows are affected. Very annoying
and almost rendering the REPL useless.

I see it too, and it's annoying, but nowhere near rendering REPL useless.
Ruediger Keller
Joined: 2010-04-11,
User offline. Last seen 42 years 45 weeks ago.
Re: Windows Vista and REPL caret disappearing

Ok, maybe I was exaggerating, but IMHO it is extremely annoying and
significantly hinders REPL usage.

Regards,
Ruediger

2010/6/22 Nils Kilden-Pedersen :
> 2010/6/22 Ruediger Keller
>>
>> I have exactly the same problem! I experience it on both WinXP and
>> Win7 x64. It seems all versions of windows are affected. Very annoying
>> and almost rendering the REPL useless.
>
> I see it too, and it's annoying, but nowhere near rendering REPL useless.
>

Erik Engbrecht
Joined: 2008-12-19,
User offline. Last seen 3 years 18 weeks ago.
Re: Windows Vista and REPL caret disappearing
I have the exact same problem with every console-based REPL I use on Windows, not just the Scala REPL.

2010/6/22 Ruediger Keller <ruediger [at] rk42 [dot] de>
I have exactly the same problem! I experience it on both WinXP and
Win7 x64. It seems all versions of windows are affected. Very annoying
and almost rendering the REPL useless.

Regrads,
Ruediger


2010/6/22 Piotr Kołaczkowski <pkolaczk [at] elka [dot] pw [dot] edu [dot] pl>:
> Hi,
>
> another strange problem. I've noticed the cursor disappears when I move it
> in scala console and sbt console. I don't know how far I moved the cursor -
> I must release the arrow key, wait half a second until the cursor starts
> blinking and in 90% cases I can see I have it in a wrong place... Very
> uncomfortable. In most text editors the behaviour is just the opposite: the
> caret is shown permanently while moving (it doesn't even blink).
>
> However, in the standard windows command line window, before I launch scala,
> the caret behaves like it should. Also in the standard command line editor
> launched by "edit", the cursor behaves ok. So I think the problem might be
> related to scala or some of the libraries it uses for handling CLI.
>
> Can you also see it, or is it something with my Windows configuration (Vista
> Home Premium, Scala 2.8.0.RC6)?
>
> Regards,
> Piotr Kołaczkowski
>
>
>



--
http://erikengbrecht.blogspot.com/
pkolaczk
Joined: 2010-01-14,
User offline. Last seen 2 years 38 weeks ago.
Re: Windows Vista and REPL caret disappearing

W dniu 2010-06-22 19:27, Erik Engbrecht pisze:
> I have the exact same problem with every console-based REPL I use on
> Windows, not just the Scala REPL.

So perhaps it is a library issue?
The builtin windows or native software is not affected - shell works ok,
edit works ok, psql interactive shell works ok, git console works
correctly, too.

Regards,
Piotr Kołaczkowski

>
> 2010/6/22 Ruediger Keller >
>
> I have exactly the same problem! I experience it on both WinXP and
> Win7 x64. It seems all versions of windows are affected. Very annoying
> and almost rendering the REPL useless.
>
> Regrads,
> Ruediger
>
>
> 2010/6/22 Piotr Kołaczkowski
> >:
> > Hi,
> >
> > another strange problem. I've noticed the cursor disappears when
> I move it
> > in scala console and sbt console. I don't know how far I moved
> the cursor -
> > I must release the arrow key, wait half a second until the cursor
> starts
> > blinking and in 90% cases I can see I have it in a wrong place...
> Very
> > uncomfortable. In most text editors the behaviour is just the
> opposite: the
> > caret is shown permanently while moving (it doesn't even blink).
> >
> > However, in the standard windows command line window, before I
> launch scala,
> > the caret behaves like it should. Also in the standard command
> line editor
> > launched by "edit", the cursor behaves ok. So I think the problem
> might be
> > related to scala or some of the libraries it uses for handling CLI.
> >
> > Can you also see it, or is it something with my Windows
> configuration (Vista
> > Home Premium, Scala 2.8.0.RC6)?
> >
> > Regards,
> > Piotr Kołaczkowski
> >
> >
> >
>
>
>
>
> --
> http://erikengbrecht.blogspot.com/

pkolaczk
Joined: 2010-01-14,
User offline. Last seen 2 years 38 weeks ago.
Re: Windows Vista and REPL caret disappearing

W dniu 2010-06-22 19:27, Erik Engbrecht pisze:
> I have the exact same problem with every console-based REPL I use on
> Windows, not just the Scala REPL.

Hmm, I've just found an open ticket for it #2547.

------------------

On Windows, scala interpreter does not show caret(or cursor) during
left/right arrow keys are pressed.

Suppose I typing like below.

scala> println("Helo scala"

Caret is end of line. When I try to go back few chars to correct "Helo"
to "Hello", scala interpreter does not showing caret, during left arrow
key pressed down.

I can't see where I am now during move around in line. I hope this to be
fixed.

Environment:

-Windows XP SP3 -Scala 2.7.7 final (I tried with some build of 2.8,
but situation does not seems to fixed)

---------------------

Have anyone told the jline developers to fix this?

Regards,
Piotr Kołaczkowski

>
> 2010/6/22 Ruediger Keller >
>
> I have exactly the same problem! I experience it on both WinXP and
> Win7 x64. It seems all versions of windows are affected. Very annoying
> and almost rendering the REPL useless.
>
> Regrads,
> Ruediger
>
>
> 2010/6/22 Piotr Kołaczkowski
> >:
> > Hi,
> >
> > another strange problem. I've noticed the cursor disappears when
> I move it
> > in scala console and sbt console. I don't know how far I moved
> the cursor -
> > I must release the arrow key, wait half a second until the cursor
> starts
> > blinking and in 90% cases I can see I have it in a wrong place...
> Very
> > uncomfortable. In most text editors the behaviour is just the
> opposite: the
> > caret is shown permanently while moving (it doesn't even blink).
> >
> > However, in the standard windows command line window, before I
> launch scala,
> > the caret behaves like it should. Also in the standard command
> line editor
> > launched by "edit", the cursor behaves ok. So I think the problem
> might be
> > related to scala or some of the libraries it uses for handling CLI.
> >
> > Can you also see it, or is it something with my Windows
> configuration (Vista
> > Home Premium, Scala 2.8.0.RC6)?
> >
> > Regards,
> > Piotr Kołaczkowski
> >
> >
> >
>
>
>
>
> --
> http://erikengbrecht.blogspot.com/

pkolaczk
Joined: 2010-01-14,
User offline. Last seen 2 years 38 weeks ago.
Re: Windows Vista and REPL caret disappearing

W dniu 2010-06-22 21:42, Piotr Kołaczkowski pisze:
> W dniu 2010-06-22 19:27, Erik Engbrecht pisze:
>> I have the exact same problem with every console-based REPL I use on
>> Windows, not just the Scala REPL.
>
> Hmm, I've just found an open ticket for it #2547.

Ok, I have added an issue to the jline bugtracker:
3019805

http://sourceforge.net/tracker/?group_id=64033&atid=506056

I hope, they will fix it soon.

Regards,
Piotr Kołaczkowski

Lex
Joined: 2010-02-28,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: Windows Vista and REPL caret disappearing

Everything works on Linux. This seems to be Windows-only problem.

2010/6/22 Piotr Kołaczkowski :
> W dniu 2010-06-22 21:42, Piotr Kołaczkowski pisze:
>>
>> W dniu 2010-06-22 19:27, Erik Engbrecht pisze:
>>>
>>> I have the exact same problem with every console-based REPL I use on
>>> Windows, not just the Scala REPL.
>>
>> Hmm, I've just found an open ticket for it #2547.
>
>
> Ok, I have added an issue to the jline bugtracker:
> 3019805
>
> http://sourceforge.net/tracker/?group_id=64033&atid=506056
>
> I hope, they will fix it soon.
>
> Regards,
> Piotr Kołaczkowski
>
>

extempore
Joined: 2008-12-17,
User offline. Last seen 35 weeks 3 days ago.
Re: Re: Windows Vista and REPL caret disappearing

On Tue, Jun 22, 2010 at 09:42:38PM +0200, Piotr Kołaczkowski wrote:
> Have anyone told the jline developers to fix this?

Ha, ha. jline has been abandonware for a long time. Many people have
forked it in various directions, us included. Recently nutter from
jruby has made an effort to consolidate the various fixes which are
spread around town. I tried rolling that branch a few weeks ago but for
whatever reason it didn't work at all with scala trunk and that was the
extent of my interest.

http://sourceforge.net/mailarchive/message.php?msg_name=AANLkTildXcat29J...

Anyway, it's buggy, we know, and waiting around for someone to fix it
has not been the slam-dunk strategy I've have thought. Maybe it will
work out better for you than it has for me!

Erik Engbrecht
Joined: 2008-12-19,
User offline. Last seen 3 years 18 weeks ago.
Re: Re: Windows Vista and REPL caret disappearing
Well, I swear I've seen it with Python and Ruby repls under Windows XP.

2010/6/22 Piotr Kołaczkowski <pkolaczk [at] elka [dot] pw [dot] edu [dot] pl>
W dniu 2010-06-22 19:27, Erik Engbrecht pisze:
I have the exact same problem with every console-based REPL I use on
Windows, not just the Scala REPL.

So perhaps it is a library issue?
The builtin windows or native software is not affected - shell works ok, edit works ok, psql interactive shell works ok, git console works correctly, too.


Regards,
Piotr Kołaczkowski



2010/6/22 Ruediger Keller <ruediger [at] rk42 [dot] de
<mailto:ruediger [at] rk42 [dot] de>>

   I have exactly the same problem! I experience it on both WinXP and
   Win7 x64. It seems all versions of windows are affected. Very annoying
   and almost rendering the REPL useless.

   Regrads,
   Ruediger


   2010/6/22 Piotr Kołaczkowski
   <pkolaczk [at] elka [dot] pw [dot] edu [dot] pl
   <mailto:pkolaczk [at] elka [dot] pw [dot] edu [dot] pl>>:
    > Hi,
    >
    > another strange problem. I've noticed the cursor disappears when
   I move it
    > in scala console and sbt console. I don't know how far I moved
   the cursor -
    > I must release the arrow key, wait half a second until the cursor
   starts
    > blinking and in 90% cases I can see I have it in a wrong place...
   Very
    > uncomfortable. In most text editors the behaviour is just the
   opposite: the
    > caret is shown permanently while moving (it doesn't even blink).
    >
    > However, in the standard windows command line window, before I
   launch scala,
    > the caret behaves like it should. Also in the standard command
   line editor
    > launched by "edit", the cursor behaves ok. So I think the problem
   might be
    > related to scala or some of the libraries it uses for handling CLI.
    >
    > Can you also see it, or is it something with my Windows
   configuration (Vista
    > Home Premium, Scala 2.8.0.RC6)?
    >
    > Regards,
    > Piotr Kołaczkowski
    >
    >
    >




--
http://erikengbrecht.blogspot.com/





--
http://erikengbrecht.blogspot.com/
Michael Chambliss
Joined: 2010-06-23,
User offline. Last seen 42 years 45 weeks ago.
Re: Windows Vista and REPL caret disappearing
2010/6/21 Piotr Kołaczkowski <pkolaczk [at] elka [dot] pw [dot] edu [dot] pl>
Hi,

another strange problem. I've noticed the cursor disappears when I move it in scala console and sbt console.

FYI, I'm using Console2 on Windows 7 and am not having this issue:
http://sourceforge.net/projects/console/
Might be worth a shot.-Mike 
pkolaczk
Joined: 2010-01-14,
User offline. Last seen 2 years 38 weeks ago.
Re: Windows Vista and REPL caret disappearing

W dniu 2010-06-23 22:05, Michael Chambliss pisze:
> 2010/6/21 Piotr Kołaczkowski
> >
>
> Hi,
>
> another strange problem. I've noticed the cursor disappears when I
> move it in scala console and sbt console.
>
>
> FYI, I'm using Console2 on Windows 7 and am not having this issue:
>
> http://sourceforge.net/projects/console/
>
> Might be worth a shot.
> -Mike
>

It works for me too! It solves the problem completely and additionally
enables nicer fonts. Thank you very very very much. :)

Regards,
Piotr Kołaczkowski

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland