You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the great advantages of asciinema playbacks is that text can be selected. However, when one wants to copy commands it is undesirable to also copy e.g. the prompt. This means that one has to copy each command individually, or manually remove the prompt when selecting a whole range of commands.
ANSI allows private mode controls of which we could use a few to signal the start/end of a section which should not be selectable when rendered as HTML (using the user-select CSS property). The simplest solution would be to declare a sequence which starts such a block and one to end such a block (though a more powerful solution might declare different modes for prompts, user written commands, and normal program output).
These escape codes could then outputted be shell prompts before and after printing the prompt.
The text was updated successfully, but these errors were encountered:
One of the great advantages of asciinema playbacks is that text can be selected. However, when one wants to copy commands it is undesirable to also copy e.g. the prompt. This means that one has to copy each command individually, or manually remove the prompt when selecting a whole range of commands.
ANSI allows private mode controls of which we could use a few to signal the start/end of a section which should not be selectable when rendered as HTML (using the
user-select
CSS property). The simplest solution would be to declare a sequence which starts such a block and one to end such a block (though a more powerful solution might declare different modes for prompts, user written commands, and normal program output).These escape codes could then outputted be shell prompts before and after printing the prompt.
The text was updated successfully, but these errors were encountered: