Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to skip first line in rec and 2 options to set custom bg and text color for export #3

Merged
merged 3 commits into from
Dec 8, 2023

Conversation

chiefMarlin
Copy link
Contributor

Hi,
This pull request has 2 feature additions.

  1. Added a parameter to rec command
    -s, --skip-first-line"
    This allows to skip the first line of recording
    Purpose of this is to allow user to set custom environment variables or change PS1 terminal variable before recording.
    Typical usage would be to set api key variables for the demo and to change usr@host PS1 variable.
    First line delimiter is set to \n and recording starts after [enter] is pressed
    Example:
    export API_KEY=test; PS1="user@host:"; some other command [enter]
  • Recording starts
  1. Added 2 parameters to export to allow setting custom background and text color for exported svg.
    -b, --background-color=STRING background color in hexadecimal format (e.g. #FFFFFF)
    -t, --text-color=STRING text color in hexadecimal format (e.g. #000000)
    This one is self explanatory, i find it very usefull to be able to customize what the svg will look like.

Thanks

@chiefMarlin
Copy link
Contributor Author

Can we push this through @MrMarble

@MrMarble MrMarble merged commit 1aebbfe into MrMarble:master Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants