pyreadline/readline differences
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GLiPy |
Fix Committed
|
High
|
Unassigned |
Bug Description
the readline package is not available under windows, instead pyreadline must be used ... and it differs slightly from readline.
i don't know if you want to branch form a windows version, or maybe refactor out the readline stuff?
anyway,here's a patch that shows some of the differences ... there are still more ... but this will get it up and running and in a sort of usable state under windows...
-----start patch
--- glipy\terminal\
+++ build\lib\
@@ -22,6 +22,7 @@
from console import Console
import time
import shell
+from pyreadline.
# -------
@@ -185,13 +186,13 @@
def history_add(self, item):
''' '''
if len(item):
- readline.
+ readline.
# _______
def history_
''' '''
- self.history_index = readline.
+ self.history_index = readline.
# _______
def on_close(self):
@@ -214,10 +215,10 @@
''' '''
h = ''
- if self.history_index <= readline.
+ if self.history_index <= readline.
h = '' or readline.
else:
- self.history_index = readline.
+ self.history_index = readline.
# _______
The readline package is only used to handle history. I modified code to handle history manually when readline is absent. I did not test it under windows.