thaolt / qscite

Automatically exported from code.google.com/p/qscite
GNU General Public License v2.0
0 stars 0 forks source link

Support some escape sequences for common IO functionality. #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I added support for using up and down arrows in QTerminal (implemented
specifically for Bash command history support) in SVN r62.  We should act
like other terminals and simply pass any non-printable character input
directly as it's control sequence to the pty.  The following link has a
document describing the different sequences...

http://www.xfree.org/current/ctlseqs.html

Some don't seem to interact properly yet when implemented in the same way
as up/down, such as left/right arrows.  Left arrow seems to erase
characters in our QTextEdit object while seemingly acting correctly on the
pty itself.  The right arrow causes the entire line to be reprinted in the
QTextEdit object.

Original issue reported on code.google.com by jpsut...@gmail.com on 19 Feb 2008 at 10:21

GoogleCodeExporter commented 8 years ago
I added initial code for intercepting control sequences and OS commands.  The 
code
does not attempt to interpret them, but at least they don't end up as garbage 
in the
terminal.

Original comment by jpsut...@gmail.com on 20 Feb 2008 at 11:52

GoogleCodeExporter commented 8 years ago
A regression showed up after my last commit.  bash history didn't function 
properly.
 I added code to implement a few of the control sequences used to render the history,
and committed that as well.  This should give a good idea on how to implement 
other
sequences.

Original comment by jpsut...@gmail.com on 21 Feb 2008 at 2:57

GoogleCodeExporter commented 8 years ago
I think we can safely close this bug for the time being.  We only need support 
escape
sequences that affect the functionality of our terminal (we don't need to 
support
window title and icon, for example).  If new needed support for other escape
sequences becomes apparent, another bug can be opened.

Original comment by jpsut...@gmail.com on 21 Feb 2008 at 11:47