summaryrefslogtreecommitdiffstats
path: root/results/classifier/zero-shot/118/graphic/1857449
blob: 0cccd0393c4a2f5acc9c3f2cf3c65c2ec064ab8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
graphic: 0.872
x86: 0.867
semantic: 0.788
user-level: 0.759
kernel: 0.736
device: 0.733
ppc: 0.687
performance: 0.682
architecture: 0.670
mistranslation: 0.651
VMM: 0.579
risc-v: 0.566
socket: 0.564
vnc: 0.542
register: 0.539
boot: 0.532
debug: 0.517
PID: 0.517
arm: 0.509
network: 0.497
TCG: 0.476
hypervisor: 0.471
permissions: 0.469
i386: 0.465
files: 0.461
virtual: 0.456
peripherals: 0.347
assembly: 0.337
KVM: 0.239

QEMU x86_64 -nographic full system breaks host Bash terminal line wrapping state after simulation ends, requires reset or "tput smam" to fix it

QEMU 4.2.0 compiled from source, Ubuntu 19.10, open a fresh new gnome terminal.

If you print 1000 = chars on the host terminal, then they do wrap around the end of the terminal:

printf "=%.0s" {0..1000}

However, if you first run QEMU:

x86_64-softmmu/qemu-system-x86_64 -nographic

and then quit it in any way, e.g. with Ctrl + A, and then re-run on the host terminal:

printf "=%.0s" {0..1000}

then the signs don't wrap around anymore, they just go "off the terminal to the right".

This can be fixed with either:

reset
tpam smam

but unfortunately those don't work in tmux for some reason: https://github.com/tmux/tmux/issues/969

I consider this buggy behavior, QEMU should restore the original terminal state if possible.

Related: https://github.com/cirosantilli/linux-kernel-module-cheat/issues/110

Apparently the code you run (BIOS?) is sending the DECRST control sequence to the terminal, which disable the auto-wrap mode flag.
Looking at the detailed explanations on https://github.com/mattiase/wraptest I'm not sure how QEMU can save/restore this flag.


Ah, thanks for looking into this and identifying it to guest code Philippe. I don't know much about terminals, but yes, they are such archaic interfaces, maybe there is no API for it :-(


The QEMU project is currently considering to move its bug tracking to
another system. For this we need to know which bugs are still valid
and which could be closed already. Thus we are setting older bugs to
"Incomplete" now.

If you still think this bug report here is valid, then please switch
the state back to "New" within the next 60 days, otherwise this report
will be marked as "Expired". Or please mark it as "Fix Released" if
the problem has been solved with a newer version of QEMU already.

Thank you and sorry for the inconvenience.


[Expired for QEMU because there has been no activity for 60 days.]