3

I am trying to get tabs in my screen using .screenrc, but while sourcing, it says command not found. It is on ubuntu14.04. I have screen installed. I can create screen but just unable to get tabs details using screenrc.

machine:~$ cat .screenrc
caption always caption string "test caption"
hardstatus string "%{= g} %{= w}%-Lw%{=r}%n%f* %t%{-}%+LW"

machine:~$ source .screenrc
caption: command not found 
hardstatus: command not found

Can someone let me know how to resolve this?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
  • 1
    `.screenrc` is not a shell script; it's a configuration file for the `screen` program. – chepner Sep 29 '16 at 20:49
  • Yes, but to get its effect, we need to source it. Without that when you create screen, you won't see tabs or screen configurations taking effect. –  Sep 29 '16 at 21:15
  • 1
    This Q is not about programming as defined for StackOverflow. It **may** be more appropriate on the S.E. related sites superuser.com OR unix.stackexchange.com (Unix & Linux). Consider using the `flag` link at the bottom of your Q and ask the moderator to move it. Please don't post the same Q on 2 different sites. Thanks and Good Luck. – shellter Sep 29 '16 at 22:33
  • ^^^ Number 1 search result for this question - an answer would have been nice – Jeff Young Oct 13 '17 at 13:46
  • This question is answered here https://stackoverflow.com/questions/31538367/gnu-screen-command-not-showing-status-bar You need to start new screen session with another session name. – user13107 Apr 16 '18 at 07:21

1 Answers1

2

You do not need to source .screenrc

The modified settings will be applied to any new screen sessions you start. They will not be applied to existing screen sessions.

Daniel D.
  • 41
  • 2