AshokEmrys / conque

code.google.com/p/conque
0 stars 0 forks source link

conque does not display ghci prompt #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. :ConqueTerm ghci

What is the expected output? What do you see instead?

expected output is:

GHCi, version 6.12.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude>  

but conque does not display "Prelude>" prompt.

What version of the product are you using? On what operating system?

revision 332, linux amd64

Please provide any additional information below.

Attached file is conque DEBUG log outputs.

It's seems that conque treat string '\x1b=Prelude> ' as unknown escape sequence 
and ignore this.

Original issue reported on code.google.com by arumaka...@gmail.com on 21 Sep 2010 at 4:12

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the report. I don't have GHCi installed on this machine, but r333 
should fix it.

Original comment by nicora...@gmail.com on 21 Sep 2010 at 5:05

GoogleCodeExporter commented 8 years ago
I update to r333, but this time conque displays escape sequence "\x1b=" too.

So I tried to write patch to fix this issue.
Attached patch make CONQUE_SEQ_REGEX to match "\x1b=" and "\x1b>", so they will 
be treated as escape sequence.

Could you review this patch? Thanks.

Original comment by arumaka...@gmail.com on 21 Sep 2010 at 6:23

Attachments:

GoogleCodeExporter commented 8 years ago
Try r334. It should be the equivalent of your patch.

Original comment by nicora...@gmail.com on 21 Sep 2010 at 8:25

GoogleCodeExporter commented 8 years ago
r334 fix the problem. Thanks!

Original comment by arumaka...@gmail.com on 21 Sep 2010 at 10:26