Discussion:
[OmniOS-discuss] screnrc or terminfo/termcap definitions changed in 151026
PÁSZTOR György
2018-09-11 15:47:48 UTC
Permalink
Hi!

Can someone tell me, what changed in screenrc or termcap between 151022 and
151026?
When I pressed the usual ^a d to detach from my screen session, on the '22
it clears the screen before screen command would exit while on the '26 it
leaves garbage on my terminal.
Terminal type: xterm (linux, mate-terminal)

I don't even have an idea where to check for differences? The terminfo db,
or in /etc/screenrc?

If it helps, some comparation between '22 and '26:
[***@nuc ~]$ diff -u <(ssh endor cat /etc/screenrc | grep -vE '^(#.*|)$' | sort ) <(ssh iroh cat /etc/screenrc | grep -vE '^(#.*|)$' | sort )
--- /dev/fd/63 2018-09-11 17:30:58.174232095 +0200
+++ /dev/fd/62 2018-09-11 17:30:58.177565428 +0200
@@ -1,36 +1,31 @@
autodetach on
bind ^\
-bind .
-bind \\
-bind h
-bind ^h
-bind '}' history
-bind 'I' login on
-bind k
+bind } history
+bind I login on
bind ^k
-bind 'K' kill
-bind 'O' login off
-bind ^] paste [.]
+bind K kill
+bind O login off
+bind \\ quit
+deflogin on
defscrollback 1000
-pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
-register ] "\033:se ai\015a"
-register [ "\033:se noai\015a"
startup_message off
-termcapinfo hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@'
-termcapinfo linux C8
-termcapinfo wy75-42 xo:hs@
-termcapinfo wy* CS=\E[?1h:CE=\E[?1l:vi=\E[?25l:ve=\E[?25h:VR=\E[?5h:VN=\E[?5l:cb=\E[1K:CD=\E[1J
-termcapinfo xterm* be
-termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
-termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
-termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
-termcapinfo xterm* OL=100
-termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
-termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
-termcapinfo xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
-termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
-termcap vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC
-termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
-terminfo vt100* ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC
-terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
+termcap facit al=\E[L\E[K:AL@:dl@:DL@:cs=\E[%i%d;%dr:ic@
+termcap facit|vt100|xterm LP:G0
+termcap hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@'
+termcap sun 'up=^K:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:IC=\E[%d@:WS=1000\E[8;%d;%dt'
+termcap vt100 dl=5\E[M
+termcap wy75-42 nx:xo:Z0=\E[?3h\E[31h:Z1=\E[?3l\E[31h
+termcap xterm|fptwist hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
+termcap xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
+termcap xterm|xterms|xs ti=\E7\E[?47l
+terminfo facit al=\E[L\E[K:AL@:dl@:DL@:cs=\E[%i%p1%d;%p2%dr:ic@
+terminfo facit|vt100|xterm LP:G0
+terminfo hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@'
+terminfo sun 'up=^K:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC:IC=\E[%p1%d@:WS=\E[8;%p1%d;%p2%dt$<1000>'
+terminfo vt100 dl=5\E[M
+terminfo wy75-42 nx:xo:Z0=\E[?3h\E[31h:Z1=\E[?3l\E[31h
+terminfo xterm|fptwist hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
+terminfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
+terminfo xterm|xterms|xs ti=\E7\E[?47l
+vbell_msg " Wuff ---- Wuff!! "
vbell on


If it would not be clear: endor is the '22, and iroh is the '26.
I tried to add these to the end of my screenrc:
$ tail -15 /etc/screenrc
# ---
pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
register ] "\033:se ai\015a"
register [ "\033:se noai\015a"
termcapinfo xterm* be
termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
termcapinfo xterm* OL=100
termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
termcapinfo xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l

But this also not helped to solve the problem.

Any ideas?

Regards,
Gyu
Bob Friesenhahn
2018-09-11 16:17:43 UTC
Permalink
Post by PÁSZTOR György
Can someone tell me, what changed in screenrc or termcap between 151022 and
151026?
I have seen strange issues with recent 151022 when editing a file
using vim. WYSIWYG definitely did not apply. There does appear to be
strangeness with terminal codes or even in vim/curses itself.

Bob
--
Bob Friesenhahn
***@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Andy Fiddaman
2018-09-11 22:16:46 UTC
Permalink
On Tue, 11 Sep 2018, P?SZTOR Gy?rgy wrote:

; Hi!
;
; Can someone tell me, what changed in screenrc or termcap between 151022 and
; 151026?

According to the release notes at https://omniosce.org/releasenotes

o The /etc/screenrc file delivered by the screen package is now based on the
recommended global template as delivered by the authors; you may wish to check
that it still meets your needs. If you have previously customised this file
then it will not be updated but the new template file will be installed as
/etc/screenrc.new.

o screen is now linked against ncurses in order to support more terminal
types (e.g. iterm)

Andy
--
Citrus IT Limited | +44 (0)333 0124 007 | ***@citrus-it.co.uk
Rock House Farm | Green Moor | Wortley | Sheffield | S35 7DQ
Registered in England and Wales | Company number 4899123
PÁSZTOR György
2018-09-12 21:05:42 UTC
Permalink
Hi,
Post by Andy Fiddaman
; Can someone tell me, what changed in screenrc or termcap between 151022 and
; 151026?
According to the release notes at https://omniosce.org/releasenotes
o The /etc/screenrc file delivered by the screen package is now based on the
recommended global template as delivered by the authors; you may wish to check
that it still meets your needs. If you have previously customised this file
then it will not be updated but the new template file will be installed as
/etc/screenrc.new.
Ok, maybe It was not obvious from my e-mail: I used screen with default
settings. No local change were made originally.
Post by Andy Fiddaman
o screen is now linked against ncurses in order to support more terminal
types (e.g. iterm)
This may explain why screen broke. At least the way it exits and cleans the
screen. It still jumps back to the right upper corner, just leave the
garbage on your terminal.

Regards,
Gyu
PÁSZTOR György
2018-09-22 14:52:03 UTC
Permalink
Hi,
Post by Andy Fiddaman
According to the release notes at https://omniosce.org/releasenotes
Well, it's not a solution, but finally I "solved" the problem with a
workaround: I started to learn tmux instead.
It seams tmux works more flawless in 026.
I added some entry to my .tmux.conf to make my most often used keys
similar to the original screen behaviour:
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
bind ' ' next-window
bind n next-layout
bind BSpace previous-window

Cheers,
Gyu

Loading...