?25
25h?1;
i?
25lim?
imp?2im
[?25limpo
mpo?i
25himpor?
mportimpor
i
import
?25limport s
himport sub?25
[?25l>import sub
?25limport subp
subp>>>import
t subproimpor
bprocimport su
himport subproce?25
import subproces
import subprocess
s?25import subproces
?25
25h?1;
e?
25lex?
exi?2ex
8Dexit
10exit()
On 5/21/26 3:10 PM, Roger Marsh wrote:
That looks like escape codes?
nwe wrote:
On 5/21/26 3:10 PM, Roger Marsh wrote:Yes. Roger's capture is unreadable unless you know or can guess
That looks like escape codes?
the exact terminal type he is using and can interpret those
codes.
It's the sort of thing which happens when there's a program
thinks that it is sending to a terminal but is actually sending
to a file.
And it's the sort of thing which everyone tends to do once, then
they realize their mistake and double-check in the future.
It's also likely that it has nothing much to do with the odd
behavior that he's trying to report, but it certainly obscures
whatever that is.
-dsr-
On 22/05/2026 11:18, Dan Ritter wrote:C
nwe wrote:
On 5/21/26 3:10 PM, Roger Marsh wrote:
4
That looks like escape codes?Yes. Roger's capture is unreadable unless you know or can guess
the exact terminal type he is using and can interpret those
codes.
Is this actually input to "script(1)"?
On Fri, May 22, 2026 at 12:28:29 +0100, Darac Marjal wrote:
On 22/05/2026 11:18, Dan Ritter wrote:
nwe wrote:
On 5/21/26 3:10 PM, Roger Marsh wrote:Yes. Roger's capture is unreadable unless you know or can guess
That looks like escape codes?
the exact terminal type he is using and can interpret those
codes.
Is this actually input to "script(1)"?
It's the *output* of script, though it could have been mangled during
email tranmission.
If the log hasn't been mangled, then simply "cat"ing it on a compatible terminal should leave the terminal in some sort of state resembling
what the OP saw on their terminal while recording the session. However, there's a non-zero security risk in doing this (some terminal emulators
may execute commands when given certain escape sequences), so I would
not advise it.
On Fri, 22 May 2026 10:12:40 -04004
Greg Wooledge <greg@wooledge.org> wrote:
On Fri, May 22, 2026 at 12:28:29 +0100, Darac Marjal wrote:
On 22/05/2026 11:18, Dan Ritter wrote:
nwe wrote:
On 5/21/26 3:10 PM, Roger Marsh wrote:
1;3
That looks like escape codes?Yes. Roger's capture is unreadable unless you know or can guess
the exact terminal type he is using and can interpret those
codes.
Is this actually input to "script(1)"?
It's the *output* of script, though it could have been mangled during
email tranmission.
If the log hasn't been mangled, then simply "cat"ing it on a compatible terminal should leave the terminal in some sort of state resembling
what the OP saw on their terminal while recording the session. However, there's a non-zero security risk in doing this (some terminal emulators
may execute commands when given certain escape sequences), so I would
not advise it.
The script *output* included in the body of the first email, wine-python-debian, is attached. It was collected with a
The script *output* attached as wine-python-openbsd-xserver shows what happens with the 'import subprocess' statement in
On Fri, 22 May 2026 10:12:40 -0400 Greg Wooledge wrote:When I read you first post, I copied the body to a file and edited all
It's the *output* of script, though it could have been mangled during
email tranmission.
If the log hasn't been mangled, then simply "cat"ing it on a compatible terminal should leave the terminal in some sort of state resembling
what the OP saw on their terminal while recording the session. However, there's a non-zero security risk in doing this (some terminal emulators
may execute commands when given certain escape sequences), so I would
not advise it.
The script *output* included in the body of the first email, wine-python-debian, is attached. It was collected with a monitor, keyboard, and trackball, connected to the Debian box and all input was via the keyboard with trackball focusing assistance. No ssh into the Debian box in other words. It seemed to me the 'cat' interpretation of the script output file did not accurately represent what was seen on the terminal as the characters were being typed. Specifically all of the '>>>' lines displayed except those terminated by a typed-in 'Enter' looked blank in part with the input cursor at an apparently random position on the latest line.Your output contains sporadic ^M (CR) characters, and I think all of
The script *output* attached as wine-python-openbsd-xserver shows what happens with the 'import subprocess' statement inYour first post starts: "The script shows, after preamble for
a Microsoft Windows 'py -3.14' session, a Debian 'wine python' session, and a Debian 'wine cmd python' session. The 'pythonw' command is accepted in wine but does nothing visible.
OpenBSD 'less' translates the 'square with four things in it' symbol as ESC in both attachments.
[19D>>> import subprocesi
im
impo
impor
import
import s
import su
import sub
mport subp
import subpr
import su
import subproce
roger@debian:~$ exite
ex
exit
exit(
exit()
axis 21:35:51 ~$ exitimport subprocess
exit()
0;AXIS /dev/pts/23 AXISaxis 21:35:51 ~$ exitimport subprocess
exit()
axis 21:35:51 ~$ exitimport subprocess
exit()
On Sat 23 May 2026 at 13:31:38 (+0000), Roger Marsh wrote:le
On Fri, 22 May 2026 10:12:40 -0400 Greg Wooledge wrote:
It's the *output* of script, though it could have been mangled during email tranmission.
If the log hasn't been mangled, then simply "cat"ing it on a compatib
er,terminal should leave the terminal in some sort of state resembling
what the OP saw on their terminal while recording the session. Howev
rsthere's a non-zero security risk in doing this (some terminal emulato
?[?25lú[?25hú[?25l aremay execute commands when given certain escape sequences), so I would
not advise it.
When I read you first post, I copied the body to a file and edited all
the Esc chars to ú so that the less output wasn't ablaze with inverse
video. I then edited some of the commonest escape sequences to tiny characters so that I could see the wood for the trees.
I don't know what terminal wine thinks you have, but it sure has fun. Sequences like ú[?25hú[?25lú[?25lú[?25hú[?25l?
VT220 commands to show and hide the cursor.
As you type the letters, the cursor is jumping back and forth between
the start and end of the line. There are many Clear-to-end-of-line occurrences, most of which are at the end of the typing so far.
There are many colour commands, required to keep the >>> prompt
magenta, import blue, and exit cyan.
Anyway, with zapping the sequences in turn, there was little enough
left to do any damage, so I've attached a pasted cat of your attached version, lacking the colours. (I've added a .txt.)
n-debian, is attached. It was collected with a monitor, keyboard, and trac kball, connected to the Debian box and all input was via the keyboard with trackball focusing assistance. No ssh into the Debian box in other words.The script *output* included in the body of the first email, wine-pytho
Your output contains sporadic ^M (CR) characters, and I think all ofhappens with the 'import subprocess' statement in
them cause a line feed, which means that you see the line printed
as far as you have typed at this point. (I haven't looked hard
enough to check whether your typing was perfect or included
corrections.)
Some of the ^M chars cause the Esc to be missing from the following
escape sequence, which is why there are fragments of them printed at
the start of five lines. I don't know why this should be happening.
Just to check my copy is good, here's its MD5 digest: 52bd7b55a5d579ae6b9dfee8d3e52fd8 /tmp/wine-python-debian
The script *output* attached as wine-python-openbsd-xserver shows what
and a Debian 'wine cmd python' session. The 'pythonw' command is accepteda Microsoft Windows 'py -3.14' session, a Debian 'wine python' session,
ESC in both attachments.OpenBSD 'less' translates the 'square with four things in it' symbol as
Your first post starts: "The script shows, after preamble fort you
Debian and Wine versions, what happens on typing ? ?", bu
don't actually state what you observed when you were originally
typing the commands yourself, after typing the script command.
Did the output look normal as you typed it?
insertion point for next character typed is immediately after last of same line and next line '...' unless stated otherwise.' always magenta
I don't use wine, but here's a run from my system: a cut-and-paste
of the original typing, the typescript, and the replay from cat.
(Note that my bash prompt updates xterm's window title with the
hostname and pseudoTTY number.)
Cheers,
David.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 4 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 495147:47:56 |
| Calls: | 165 |
| Files: | 574 |
| D/L today: |
29 files (9,998K bytes) |
| Messages: | 78,235 |