http://bugs.winehq.org/show_bug.cgi?id=20842
Summary: Python: Arrow navigation in python shell does not work [dogfood] Product: Wine Version: 1.1.33 Platform: PC URL: http://python.org/ OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: adys.wh@gmail.com
In the python shell... * Arrow UP is supposed to scroll back in the history * Arrow DOWN is supposed to scroll forward in the history * Arrow LEFT/RIGHT are supposed to navigate in the command line.
None of those work. Instead, the characters ^[[A ^[[B ^[[D ^[[C are output (respectively). Tested with Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 on gnome-terminal, konsole and xterm.
http://bugs.winehq.org/show_bug.cgi?id=20842
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
http://bugs.winehq.org/show_bug.cgi?id=20842
--- Comment #1 from Vitaliy Margolen vitaliy@kievinfo.com 2009-11-27 16:51:22 --- Did you used user backend (ran with wineconsole)?
http://bugs.winehq.org/show_bug.cgi?id=20842
--- Comment #2 from Jerome Leclanche adys.wh@gmail.com 2009-11-27 18:46:37 --- With wineconsole, arrow keys work. However, neither ctrl-c nor ctrl-d does.
http://bugs.winehq.org/show_bug.cgi?id=20842
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |programs Summary|Python: Arrow navigation in |Python: ctrl-c and ctrl-d |python shell does not work |do not work in wineconsole |[dogfood] |[dogfood]
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2009-11-27 23:00:05 --- Regular terminal won't ever function the same as windows' console. That's Wine has the wineconsole.
http://bugs.winehq.org/show_bug.cgi?id=20842
--- Comment #4 from Jerome Leclanche adys.wh@gmail.com 2009-11-28 05:13:20 --- (In reply to comment #3)
Regular terminal won't ever function the same as windows' console. That's Wine has the wineconsole.
Ok.
http://bugs.winehq.org/show_bug.cgi?id=20842
Peter Dons Tychsen donpedro@tdcadsl.dk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |donpedro@tdcadsl.dk
--- Comment #5 from Peter Dons Tychsen donpedro@tdcadsl.dk 2009-11-29 14:40:05 --- What is the setup for this bug?
Please describe exactly what you are doing when the bug appears. You wrote that you have tested with Python. Are you running a script that does not break when you do ctrl-c? Can you post a script that shows the problem?
http://bugs.winehq.org/show_bug.cgi?id=20842
--- Comment #6 from Peter Dons Tychsen donpedro@tdcadsl.dk 2009-11-29 14:43:32 --- Ah, OK now i see the problem. You are just running python from the prompt and using stdin. OK.
http://bugs.winehq.org/show_bug.cgi?id=20842
--- Comment #7 from Jerome Leclanche adys.wh@gmail.com 2009-11-29 14:57:36 --- (In reply to comment #6)
Ah, OK now i see the problem. You are just running python from the prompt and using stdin. OK.
The bug title was changed by Vitaliy for easyness. Annoying you can't edit descriptions on bugzilla...
Ctrl-C and Ctrl-D do not do anything on wineconsole, that's about it.
http://bugs.winehq.org/show_bug.cgi?id=20842
Jörg Höhle hoehle@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hoehle@users.sourceforge.ne | |t
--- Comment #8 from Jörg Höhle hoehle@users.sourceforge.net 2010-04-28 15:28:23 --- I'd expect Ctrl-Z to work in wineconsole (short of Ctrl-D) but it doesn't. Neither does Ctrl-D. Ctrl-Z is DOS' End of File marker and it works in MS' cmd and DOS windows.
Unfortunately, some programs expect to detect end of (interactive) input this way and cannot be told to exit without it (well, ctrl-C works), e.g. my interactive MCI shell wintest.exe that serves to explore the MCI.
"wine winedbg wintest.exe mcishell" causes a wineconsole to be created whereas "wine wintest.exe mcishell" works fine: it uses the gnome/kde /MacOS terminal.
How to reproduce: Use wintest.exe from bug #20232, comment #10. It does something as simple as + HANDLE hin = GetStdHandle(STD_INPUT_HANDLE); + ret = ReadFile(hin, inbuf, sizeof ..., &received, NULL); Source is at bug #20232, comment #9.
BTW, History works (in wine-1.1.43 and 1.0.1) with the arrow keys in wineconsole. Nice!
http://bugs.winehq.org/show_bug.cgi?id=20842
--- Comment #9 from Jörg Höhle hoehle@users.sourceforge.net 2010-12-03 16:24:54 CST --- I believe this may be fixed by Eric Pouech's commit ead4712606307bf92525e9aad1374a2cc0bc8fc0 + ^C and ^D (EOF) work. + line editing and history work using the arrow keys. Excellent job!
- Esc does not work to erase the current line. It prints a white square.
Note: I've not used Python but rather my mcishell as per comment #8: wine wineconsole wintest.exe mcishell
Commit 9c577630d11cd19273b93eeb6295c0b2b75fa42b seems questionable to me, as I've never seen control characters (e.g. like ctrl-A) echoed back. In wineconsole, they now print white squares. Please see bug #24306 about how this affects a Gnome terminal instead of wineconsole's window.
http://bugs.winehq.org/show_bug.cgi?id=20842
--- Comment #10 from Jerome Leclanche adys.wh@gmail.com 2010-12-03 23:40:41 CST --- Ctrl-C indeed works on current operations in wineconsole for python, but Ctrl-D and Ctrl-Z both print white squares.
As for curses interface: Arrow down/up/left/right go completely CRAZY on the screen. Ctrl-D exits python but only after hitting enter.
http://bugs.winehq.org/show_bug.cgi?id=20842
--- Comment #11 from Jerome Leclanche adys.wh@gmail.com 2010-12-14 17:57:15 CST --- Original bug has been fixed. Ctrl-c and ctrl-d work in wineconsole python.
http://bugs.winehq.org/show_bug.cgi?id=20842
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #12 from Jerome Leclanche adys.wh@gmail.com 2010-12-14 17:57:22 CST --- Fixed.
http://bugs.winehq.org/show_bug.cgi?id=20842
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org 2010-12-24 13:13:26 CST --- Closing bugs fixed in 1.3.10.
http://bugs.winehq.org/show_bug.cgi?id=20842
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |ead4712606307bf92525e9aad13 | |74a2cc0bc8fc0