9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.62k stars 320 forks source link

`9 man -P man` displays a blank window, then refuses to terminate #545

Open permezel opened 2 years ago

permezel commented 2 years ago

Fresh (virgin) install on macOS 12.2 on macBookPro (intel). Tried to use the -P option. A window displaying a blank (all white) page results. CMD-Q did close the window, but the shell was wedged.

sloth% 9 man -P
Usage: man [-hnpPtw] [-s sec] [0-9] [0-9] ... [--] name1 name2 ...
sloth% 9 man -P man
reading through postscript...
2022-03-08 17:22:22.993 devdraw[51748:3116577] TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit

^C^C^Z^Z
load: 2.45  cmd: rc 51694 running 0.00u 0.00s
load: 2.26  cmd: rc 51694 running 0.00u 0.00s
load: 2.26  cmd: rc 51694 running 0.00u 0.00s
load: 2.26  cmd: rc 51694 running 0.00u 0.00s

^D
^C^C^C^C^C^\^\^\^\

While entering this, it did actually come back:

^D
^C^C^C^C^C^\^\^\^\
postnote 51734: alarm
sloth% 

It ignored all the CTL- chars I was sending, except for CTL-T.

Untitled

It is reproducible.

sloth% 9 man -P man
reading through postscript...
^A^B^C^D
^E^F^G^H    
^K^L
^N^O^R
^D
^E^F^G^H    
^K^L
^N^P^R
^D
^E^F^G^H    
^K^L
^N^Pload: 2.45  cmd: rc 52849 running 0.00u 0.00s
^U
^X^X^Y^Y^Z^Z^\^\^\

I tried ctl-x for x in [a-z\\].

sloth% 9 man -P man
reading through postscript...
2022-03-08 17:38:42.316 devdraw[53498:3135298] TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit
load: 1.97  cmd: rc 53444 running 0.00u 0.00s

ps extract:

 1027 53444 51426   0  31  0 34143396   1148 -      S+   s007    0:00.01 /usr/local/plan9/bin/rc /usr/local/plan9/bin/man -P man
 1027 53484 53444   0  31  0 35080252   3196 -      S    s007    0:00.01 page
 1027 53496 53484   0  31  0 35797280  18848 -      S    s007    0:00.14 gs -dNOPAUSE -dNOPROMPT -dDELAYSAFER -dQUIET -sDEVICE=bmp16m -sOutputFile=/dev/fd/3 -r100 -dTextAlphaBits=4 -dGraphicsAlphaBits=4
 1027 53498 53484   0   0  0        0      0 -      Z    s007    0:00.00 (devdraw)