Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
169b5467
Commit
169b5467
authored
Nov 01, 1993
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in backup inside esc sequence.
parent
f802e14a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Demo/cwilib/vt100.py
Demo/cwilib/vt100.py
+3
-1
No files found.
Demo/cwilib/vt100.py
View file @
169b5467
...
@@ -82,6 +82,8 @@ class VT100:
...
@@ -82,6 +82,8 @@ class VT100:
self
.
fill_top
()
self
.
fill_top
()
def
send
(
self
,
buffer
):
def
send
(
self
,
buffer
):
self
.
msg
(
'send: unfinished=%s, buffer=%s'
,
`self.unfinished`
,
`buffer`
)
self
.
unfinished
=
self
.
unfinished
+
buffer
self
.
unfinished
=
self
.
unfinished
+
buffer
i
=
0
i
=
0
n
=
len
(
self
.
unfinished
)
n
=
len
(
self
.
unfinished
)
...
@@ -110,7 +112,7 @@ class VT100:
...
@@ -110,7 +112,7 @@ class VT100:
break
break
argstr
=
argstr
+
c
argstr
=
argstr
+
c
else
:
else
:
i
=
i
-
len
(
argstr
)
i
=
i
-
len
(
argstr
)
-
2
break
break
## self.msg('found ESC [ %s %s' % (`argstr`, `c`))
## self.msg('found ESC [ %s %s' % (`argstr`, `c`))
args
=
string
.
splitfields
(
argstr
,
';'
)
args
=
string
.
splitfields
(
argstr
,
';'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment