Page MenuHomeFreeBSD

Optional screenrc with nice status bar and switch to @sample.
ClosedPublic

Authored by alfred on Nov 24 2014, 1:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 21, 11:07 PM
Unknown Object (File)
Tue, Dec 9, 2:21 AM
Unknown Object (File)
Nov 24 2025, 10:52 PM
Unknown Object (File)
Nov 24 2025, 5:08 PM
Unknown Object (File)
Nov 18 2025, 12:14 AM
Unknown Object (File)
Nov 13 2025, 10:39 PM
Unknown Object (File)
Oct 14 2025, 2:47 PM
Unknown Object (File)
Oct 14 2025, 2:47 PM
Subscribers
None

Details

Summary

This sample screenrc gives a very nice status bar.

Submitted by: kris@pcbsd.org

fixup sample usage.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

alfred retitled this revision from to Optional screenrc with nice status bar and switch to @sample..
alfred updated this object.
alfred edited the test plan for this revision. (Show Details)
sysutils/screen/Makefile
98–99

If you install to $PREFIX/etc/screenrc.sample ,
how does this become the default screenrc
for someone?

sysutils/screen/pkg-plist
2–3

Wow, the old pkg-plist logic was really convoluted.
Thanks for deleting it.

But how does the screenrc.sample that you install become the default?

I'd prefer the following. The only difference is that the hardstatus line doesn't display seconds (it's the hardstatus line I use). I don't have a problem making the proposed hardstatus a comment in the new file to allow the user to choose.

startup_message off
defscrollback 5000
termcapinfo xterm ti@:te@
termcapinfo xterm-color ti@:te@
hardstatus alwayslastline
hardstatus string '%{gk}[%{G}%H%{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}]%{=b C}[%m/%d/%y %C %A]%{W}'
vbell off
shell -$SHELL
logtstamp on
logtstamp after 1
logfile flush

I

alfred edited edge metadata.
  • don't put seconds into title bar
In D1216#5, @cy wrote:

I'd prefer the following. The only difference is that the hardstatus line doesn't display seconds (it's the hardstatus line I use). I don't have a problem making the proposed hardstatus a comment in the new file to allow the user to choose.

OK that is committed, should I push this change now?

sysutils/screen/Makefile
98–99

This the magic of @sample in the pkg-plist.

It will install $file.sample AND $file.

on port remove, if the files differ, it leaves the modified file in place.

sysutils/screen/pkg-plist
2–3

@sample does it for you. See prev comment reply I made.

This revision is now accepted and ready to land.Nov 24 2014, 6:08 AM

Committed. Is there any value to having both samples by default? We can always change it later.

In D1216#12, @cy wrote:

Committed. Is there any value to having both samples by default? We can always change it later.

How would we do that? Not sure I understand.

We can have both by naming the files screenrc.sample-1 and screenrc.sample-2.

That would be good, might want to put those under LOCALBASE/share/examples/screen/sample{1,2} or LOCALBASE/etc/screen/sample{1,2} as opposed to at the top level of LOCALBASE/etc/sample{1,2} to keep the top level etc dir tidy?