Add ignore line and skip line, more name checks

lines starting with ";" are skipped, empty lines are ignored
if the first line is empty (no name set) an error is thrown
check that title is alphanumeric only

Add a config folder for the config files (ignored)

update readme file
This commit is contained in:
2025-05-30 09:29:06 +09:00
parent 3771fd987c
commit ff9e95ff9a
3 changed files with 27 additions and 4 deletions

View File

@@ -8,9 +8,14 @@ Init screens from config files
```txt
<screen session name>
<window name>#<command>
<window name>#<command>;<command>;
#
;<ignored line>
```
`screen session name` is the name you use for gstting the screen session name, see `screen -ls`. Must be Alphanumeric without spaces.
`window name` is the name for this window
`command` can be any comamnd sequence separated by `;`. If nothing given default `^C` shell is used
- `screen session name` is the name you use for gstting the screen session name, see `screen -ls`. Must be Alphanumeric without spaces and cannot be empty
- `window name` is the name for this window
- `command` can be any comamnd sequence separated by `;`. If nothing given default `^C` shell is used
- If there is only a `#` an empty unnamed window is opened
- if a line starts with `;` it is skipped
- empty lines are ignored