gvSIG bugs #4357
The Jython scriptiong console allows to remove the prompt using backspace
Status: | Closed | % Done: | 0% | |
---|---|---|---|---|
Priority: | Normal | Spent time: | - | |
Assignee: | Joaquín del Cerro Murciano | |||
Category: | Scripting | |||
Target version: | 2.3.0-2445 (rev. org.gvsig.desktop-2.0.152) | |||
Severity: | Minor | Add-on version: | ||
gvSIG version: | 2.3.0 | Add-on build: | ||
gvSIG build: | Add-on resolve version: | |||
Operative System: | Add-on resolve build: | |||
Keywords: | Proyecto: | |||
Has patch: | Yes | Hito: | ||
Add-on name: | Unknown |
Description
The jython scripting console allows to remove the prompt and previous lines, which is an weird behaviour and leaves the console on a error-prone status.
I have prepared a patch that corrects this behaviour and some other problematic ones:
- Backspace no longer allows to remove the prompt or previous lines
- Allow using backspace to delete selection (it was only possible to do so using delete button till now)
- When a selection includes the prompt (or previous lines) and then del or backspace is pressed, only the text after the prompt is removed. I think this is a more natural behaviour
- When the cursor is the history area (above the prompt) and some text is inputted or some key is pressed, move the cursor to the last line (the editable area). Previously, nothing happened when a key was pressed
- Printing a unicode text variable no longer produces an exception
Associated revisions
refs #4357, correccion en la consola de jython para que gestione adecuadamente el prompt. Patch gracias a Cesar Martinez.
History
#1 Updated by Cesar Martinez Izquierdo over 7 years ago
- Has patch set to Yes
- File console.py added
- File jython-console.diff added
I attach the patch and also the full modified console.py file for reference.
#2 Updated by Álvaro Anguix over 7 years ago
- Assignee set to Joaquín del Cerro Murciano
- Category set to Scripting
#3 Updated by Joaquín del Cerro Murciano over 7 years ago
- Target version set to 2.3.0-2445 (rev. org.gvsig.desktop-2.0.152)
#4 Updated by Joaquín del Cerro Murciano over 7 years ago
- Status changed from New to Fixed
#5 Updated by Álvaro Anguix over 7 years ago
- Status changed from Fixed to Closed