liango2 / conque

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

bpython (curses app) uses graphica box characters, mapped to lqxk, etc. #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. pip install bpython
2. vim
3. ConqueTerm bpython
4. type, e.g. 'a' 

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

Bpython  display a pop-up box with completions (abs, all, etc.)
It tries to render the box using graphcs drawing characters, these get mapped 
to alpha characters as follows

>>> a 
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqk
xabs(   all(   and    any(   apply( as     assert                               
           x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqj

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

" FILE:     plugin/conque_term.vim {{{
" AUTHOR:   Nico Raffo <nicoraffo@gmail.com>
" MODIFIED: 2010-10-10
" VERSION:  1.2, for Vim 7.0

Ubuntu linux 10.10.
bpython 0.9.6.2

Please provide any additional information below.

Tried with term set to xterm and then it renders all the escapes from bpython's 
colour handling which is worse. 

Maybe there is a terminal emulator I can use that supports +------- type line 
drawing?

Original issue reported on code.google.com by bitter...@gmail.com on 30 Oct 2010 at 7:37

GoogleCodeExporter commented 8 years ago
I've held off on line drawing support so far due to the multi-byte characters 
required. It's on the roadmap, however.

I'm not sure why I never thought of using an ascii set instead, though. I'll 
definitely give this a try for the next release.

Original comment by nicora...@gmail.com on 30 Oct 2010 at 3:00

GoogleCodeExporter commented 8 years ago
I had a look to see if there was a flag I could give bpython to make it use 
+---- style drawing. Apparently such an option exists for ncurses. Couldnt find 
one, and tried a few $TERM settings but none of them hit it. Not sure if you 
need to map characters and cursor movements but runnign bpython in vim would be 
an awesome python tool. 

Original comment by bitter...@gmail.com on 4 Nov 2010 at 10:18

GoogleCodeExporter commented 8 years ago
I've added enough line drawing support to make bpython happy, at least in my 
tests. It will go out with the next release, as soon as I find time to finish 
testing the new features.

You can give it a try by going straight to the subversion checkout:

svn checkout http://conque.googlecode.com/svn/trunk/ conque-read-only

Or keep waiting for the optimized + tested 2.0 release.

Original comment by nicora...@gmail.com on 4 Nov 2010 at 10:32

GoogleCodeExporter commented 8 years ago
Cool, thanks, I might give the svn a spin when I Get back from Africa next week.

Thanks for making a very cool thing!

Mark

Original comment by bitter...@gmail.com on 4 Nov 2010 at 10:45

GoogleCodeExporter commented 8 years ago
2.0, just released, has some support for graphics charcters. At least with 
Unix-like systems with Python 2.x. (As opposed to Windows and/or Python 3)

Original comment by nicora...@gmail.com on 17 Nov 2010 at 5:10